Skip to content

Commit

Permalink
ansible: backup curvetab if exist
Browse files Browse the repository at this point in the history
  • Loading branch information
SeanHai authored and ilixiaocui committed Aug 6, 2021
1 parent 1e7eddd commit 510ffbc
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,17 @@
local_file_path: "{{ local_nbd_package_path }}/bin/"
file_mode: 0755
include_tasks: copy_file_to_remote.yml
- name: install curvetab
- name: check curvetab exist
stat:
path: "{{ curvetab_path }}/curvetab"
register: file_status
- name: install curvetab if not exist
vars:
remote_dir_name: "{{ curvetab_path }}"
local_file_path: "{{ local_nbd_package_path }}/etc/"
file_mode: 0755
include_tasks: copy_file_to_remote.yml
when: not file_status.stat.exists
- name: add nbd auto start at boot
block:
- name: get distro name
Expand Down

0 comments on commit 510ffbc

Please sign in to comment.