create directories and link

This commit is contained in:
2022-11-22 17:06:32 +01:00
parent 1b2ce07149
commit c4f2016bab

View File

@@ -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: