create directories and link
This commit is contained in:
@@ -1,7 +1,16 @@
|
|||||||
- name: backup | system setup | create backup config directory
|
- name: backup | system setup | create backup config directory
|
||||||
file:
|
file:
|
||||||
path: "/opt/backup/"
|
path: "{{ item }}"
|
||||||
state: directory
|
state: directory
|
||||||
|
loop:
|
||||||
|
- "/opt/backup"
|
||||||
|
- "/opt/backup/bin"
|
||||||
|
|
||||||
|
- name: backup | system setup | create a link to backup script
|
||||||
|
file:
|
||||||
|
path: "/opt/backup/bin/backup_remote.bash"
|
||||||
|
state: link
|
||||||
|
src: "{{ ansible_user_id }}/bin/backup_remote.bash"
|
||||||
|
|
||||||
- name: backup | system setup | copy backup config files
|
- name: backup | system setup | copy backup config files
|
||||||
copy:
|
copy:
|
||||||
|
|||||||
Reference in New Issue
Block a user