Compare commits

...

2 Commits

5 changed files with 21 additions and 0 deletions

7
playbooks/tags_ansible.yml Executable file
View File

@ -0,0 +1,7 @@
#!/usr/bin/env ansible-playbook
# vim:ft=ansible:
---
- hosts: tags_ansible
roles:
- role: ansible
tags: [ ansible ]

View File

@ -0,0 +1,5 @@
#!/usr/bin/env ansible-playbook
# vim:ft=ansible:
---
dependencies:
role: ansible

3
roles/ansible/README.md Normal file
View 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.

View 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"

View File

@ -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