ansible/playbooks/run_fasClient.yml
Kevin Fenzi 7984b46eb7 The great phx2 pruning run (1st cut).
Since we no longer have any machines in phx2, I have tried to remove
them from ansible. Note that there are still some places where we need
to remove them still: nagios, dhcp, named were not touched, and in cases
where it wasn't pretty clear what a conditional was doing I left it to
be cleaned up later.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2020-06-14 14:14:31 -07:00

35 lines
1.2 KiB
YAML

# Run `fasClient` on all hosts, N hosts at a time
#
# We exclude builders and persistent-cloud as they don't have fasclient
#
- name: run fasClient -a to make email aliases on bastion
hosts: bastion01.iad2.fedoraproject.org:bastion02.iad2.fedoraproject.org:bastion01.iad2.fedoraproject.org:bastion02.iad2.fedoraproject.org
user: root
gather_facts: False
tasks:
- name: actually run fasClient -a
command: fasClient -a
ignore_errors: true
when: inventory_hostname_short.startswith('bastion0')
- name: run fasClient on people and pkgs first as these are the ones most people want updated
hosts: people02.fedoraproject.org:pkgs01.iad2.fedoraproject.org
user: root
gather_facts: False
tasks:
- name: actually run fasClient -i
command: fasClient -i
ignore_errors: true
- name: run fasClient -i on the rest of hosts which only affects sysadmins
hosts: all:!builders:!*cloud*:!*composer*:!people*:!pkgs01*:!*.stg.*:!twisted*:!*.fedorainfracloud.org:!bkernel*:!autosign*:!*.app.os.fedoraproject.org:!*.app.os.stg.fedoraproject.org
user: root
gather_facts: False
tasks:
- name: actually run fasClient -i
command: fasClient -i
ignore_errors: true