Skip to content

Commit

Permalink
Automatic regen of all role playbooks
Browse files Browse the repository at this point in the history
Signed-off-by: Fabian Arrotin <[email protected]>
  • Loading branch information
arrfab committed Sep 21, 2023
1 parent ab87a9f commit 3cdc112
Show file tree
Hide file tree
Showing 6 changed files with 37 additions and 0 deletions.
3 changes: 3 additions & 0 deletions requirements-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,9 @@ roles:
- src: https://github.com/CentOS/ansible-role-tinyproxy
name: tinyproxy
version: master
- src: https://github.com/CentOS/ansible-role-ucarp
name: ucarp
version: master
- src: https://github.com/CentOS/ansible-role-unbound
name: unbound
version: master
Expand Down
3 changes: 3 additions & 0 deletions requirements-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,9 @@ roles:
- src: https://github.com/CentOS/ansible-role-tinyproxy
name: tinyproxy
version: staging
- src: https://github.com/CentOS/ansible-role-ucarp
name: ucarp
version: staging
- src: https://github.com/CentOS/ansible-role-unbound
name: unbound
version: staging
Expand Down
3 changes: 3 additions & 0 deletions requirements-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,9 @@ roles:
- src: https://github.com/CentOS/ansible-role-tinyproxy
name: tinyproxy
version: master
- src: https://github.com/CentOS/ansible-role-ucarp
name: ucarp
version: master
- src: https://github.com/CentOS/ansible-role-unbound
name: unbound
version: master
Expand Down
3 changes: 3 additions & 0 deletions requirements-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,9 @@ roles:
- src: https://github.com/CentOS/ansible-role-tinyproxy
name: tinyproxy
version: staging
- src: https://github.com/CentOS/ansible-role-ucarp
name: ucarp
version: staging
- src: https://github.com/CentOS/ansible-role-unbound
name: unbound
version: staging
Expand Down
1 change: 1 addition & 0 deletions role-all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@
- import_playbook: role-sync2git.yml
- import_playbook: role-sync2s3.yml
- import_playbook: role-tinyproxy.yml
- import_playbook: role-ucarp.yml
- import_playbook: role-unbound.yml
- import_playbook: role-vbox-host.yml
- import_playbook: role-vsftpd.yml
Expand Down
24 changes: 24 additions & 0 deletions role-ucarp.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
- hosts: hostgroup-role-ucarp
become: True
pre_tasks:
- name: Checking if no-ansible file is there
stat:
path: /etc/no-ansible
register: no_ansible

- name: Verifying if we can run ansible or not
assert:
that:
- "not no_ansible.stat.exists"
msg: "/etc/no-ansible file exists so skipping ansible run on this node"

roles:
- ucarp

post_tasks:
- name: Touching ansible-run (monitored by Zabbix)
file:
path: /var/log/ansible.run
state: touch

0 comments on commit 3cdc112

Please sign in to comment.