Compare commits
2 Commits
32061deac2
...
fb006b0cd3
Author | SHA1 | Date | |
---|---|---|---|
fb006b0cd3 | |||
41d9157971 |
7
playbooks/tags_ansible.yml
Executable file
7
playbooks/tags_ansible.yml
Executable file
@ -0,0 +1,7 @@
|
|||||||
|
#!/usr/bin/env ansible-playbook
|
||||||
|
# vim:ft=ansible:
|
||||||
|
---
|
||||||
|
- hosts: tags_ansible
|
||||||
|
roles:
|
||||||
|
- role: ansible
|
||||||
|
tags: [ ansible ]
|
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"
|
1
site.yml
1
site.yml
@ -20,6 +20,7 @@
|
|||||||
- import_playbook: playbooks/prod_web.yml
|
- import_playbook: playbooks/prod_web.yml
|
||||||
- import_playbook: playbooks/prod_game.yml
|
- import_playbook: playbooks/prod_game.yml
|
||||||
# Supplementary tags
|
# Supplementary tags
|
||||||
|
- import_playbook: playbooks/tags_ansible.yml
|
||||||
- import_playbook: playbooks/tags_ansible-pull.yml
|
- import_playbook: playbooks/tags_ansible-pull.yml
|
||||||
# Housekeeping tags for one-off tasks
|
# Housekeeping tags for one-off tasks
|
||||||
- import_playbook: playbooks/tags_docker-prune.yml
|
- import_playbook: playbooks/tags_docker-prune.yml
|
||||||
|
Loading…
Reference in New Issue
Block a user