34 lines
729 B
YAML
34 lines
729 B
YAML
|
---
|
||
|
# tasks file for deploy_all
|
||
|
- name: sync services dirs
|
||
|
ansible.posix.synchronize:
|
||
|
src: ../services/
|
||
|
dest: /docker/
|
||
|
delete: true
|
||
|
archive: false
|
||
|
recursive: true
|
||
|
|
||
|
- name: Add binaries
|
||
|
ansible.posix.synchronize:
|
||
|
src: "{{ role_path }}/files/bin/"
|
||
|
dest: "/usr/local/bin"
|
||
|
|
||
|
- name: Add bind conf
|
||
|
ansible.posix.synchronize:
|
||
|
src: "{{ role_path }}/files/bind/"
|
||
|
dest: "/etc/bind/"
|
||
|
|
||
|
- name: make sure bind9 is started
|
||
|
ansible.builtin.service:
|
||
|
name: bind9
|
||
|
state: started
|
||
|
- name: Reload service bind9, in all cases
|
||
|
ansible.builtin.service:
|
||
|
name: bind9
|
||
|
state: reloaded
|
||
|
|
||
|
#- name: Start the deployer
|
||
|
# ansible.builtin.command:
|
||
|
# command: /docker/_deployer/main.sh
|
||
|
|