17 lines
446 B
YAML
17 lines
446 B
YAML
|
---
|
||
|
- name: Set backup.d path
|
||
|
ansible.builtin.set_fact:
|
||
|
backup_d_path: "{{ (service_path, 'backup.d') | path_join }}"
|
||
|
- name: Create backup.d directory
|
||
|
ansible.builtin.file:
|
||
|
path: "{{ backup_d_path }}"
|
||
|
state: directory
|
||
|
mode: "0755"
|
||
|
- name: Copy the additional backup scripts
|
||
|
ansible.builtin.copy:
|
||
|
src: "{{ item }}"
|
||
|
dest: "{{ backup_d_path }}"
|
||
|
mode: "0755"
|
||
|
with_fileglob:
|
||
|
- "{{ ansible_facts.hostname }}/*"
|