1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
- name: configure asterisk pbx hosts: asterisk_servers tags: asterisk roles: - role: common tags: common - role: asterisk - role: archive_job archive_name: asterisk archive_user: asterisk archive_shell: >- TIMESTAMP=$(date +%Y%m%d%H%M%S); tar czf "asterisk-${TIMESTAMP}.tar.gz" --transform "s|^\.|asterisk-${TIMESTAMP}|" -C {{ asterisk_data_dir }} . tags: archive