Separate Ansible installation out into its own role
This commit is contained in:
parent
32061deac2
commit
41d9157971
5
roles/ansible-pull/meta/main.yml
Normal file
5
roles/ansible-pull/meta/main.yml
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
#!/usr/bin/env ansible-playbook
|
||||||
|
# vim:ft=ansible:
|
||||||
|
---
|
||||||
|
dependencies:
|
||||||
|
role: ansible
|
3
roles/ansible/README.md
Normal file
3
roles/ansible/README.md
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
# ansible-pull
|
||||||
|
|
||||||
|
This role configures and enables a period `ansible-pull` task through systemd, allowing for machines to ensure proper configuration periodically and of their own volition.
|
5
roles/ansible/tasks/main.yml
Normal file
5
roles/ansible/tasks/main.yml
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
#!/usr/bin/env ansible-playbook
|
||||||
|
# vim:ft=ansible:
|
||||||
|
- name: install ansible
|
||||||
|
pip: name=ansible<5,ansible-lint state=latest
|
||||||
|
when: ansible_os_family != "Gentoo"
|
Loading…
Reference in New Issue
Block a user