21 lines
815 B
YAML
21 lines
815 B
YAML
#!/usr/bin/env ansible-playbook
|
|
# vim:ft=ansible:
|
|
- name: configure ansible-pull
|
|
block:
|
|
- name: assure vault password file
|
|
copy: src=vaultpass dest="~/ansiblevaultpass" mode="0600"
|
|
become: yes
|
|
become_user: ansible
|
|
- name: install ansible
|
|
pip: name=ansible,ansible-base,ansible-lint state=latest
|
|
- name: configure systemd service
|
|
template: src=ansible-pull.service dest=/etc/systemd/system/ansible-pull.service
|
|
notify: restart ansiblepull timer
|
|
- name: configure systemd timer
|
|
template: src=ansible-pull.timer dest=/etc/systemd/system/ansible-pull.timer
|
|
notify: restart ansiblepull timer
|
|
- name: enable timer
|
|
systemd: daemon_reload=yes name=ansible-pull.timer enabled=yes state=started
|
|
notify: restart ansiblepull timer
|
|
become: yes
|