Skip to content

Commit

Permalink
Automatic regen with all existing roles
Browse files Browse the repository at this point in the history
Signed-off-by: Fabian Arrotin <[email protected]>
  • Loading branch information
arrfab committed Mar 5, 2021
1 parent a73e694 commit 0fe81b9
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 0 deletions.
3 changes: 3 additions & 0 deletions requirements-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
- src: https://github.com/CentOS/ansible-role-distgit-lookaside
name: distgit-lookaside
version: staging
- src: https://github.com/CentOS/ansible-role-fedmsg
name: fedmsg
version: staging
- src: https://github.com/CentOS/ansible-role-fedora-messaging-client
name: fedora-messaging-client
version: staging
Expand Down
2 changes: 2 additions & 0 deletions requirements-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
name: certbot
- src: https://github.com/CentOS/ansible-role-distgit-lookaside
name: distgit-lookaside
- src: https://github.com/CentOS/ansible-role-fedmsg
name: fedmsg
- src: https://github.com/CentOS/ansible-role-fedora-messaging-client
name: fedora-messaging-client
- src: https://github.com/CentOS/ansible-role-geoip2
Expand Down
3 changes: 3 additions & 0 deletions requirements-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
- src: https://github.com/CentOS/ansible-role-distgit-lookaside
name: distgit-lookaside
version: staging
- src: https://github.com/CentOS/ansible-role-fedmsg
name: fedmsg
version: staging
- src: https://github.com/CentOS/ansible-role-fedora-messaging-client
name: fedora-messaging-client
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 @@ -6,6 +6,7 @@
- import_playbook: role-centos-backup.yml
- import_playbook: role-certbot.yml
- import_playbook: role-distgit-lookaside.yml
- import_playbook: role-fedmsg.yml
- import_playbook: role-fedora-messaging-client.yml
- import_playbook: role-geoip2.yml
- import_playbook: role-gitea.yml
Expand Down
24 changes: 24 additions & 0 deletions role-fedmsg.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
- hosts: hostgroup-role-fedmsg
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:
- fedmsg

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

0 comments on commit 0fe81b9

Please sign in to comment.