Run fasClient -a before fasClient -i

fasClient -a is faster and it concerns only a couple of hosts and for FMN
integration where we need the user to have the alias <fasuser>@fp.o we need
the aliases to be generated as quickly as possible when the user is joining the
packager group (especially if it is the first non-cla group that user is
joining)
This commit is contained in:
Pierre-Yves Chibon
2014-11-06 17:26:51 +01:00
parent a19fb5a71b
commit 86c9f96b6b

View File

@@ -3,6 +3,16 @@
# We exclude builders, persistent-cloud and jenkins-cloud as they don't have fasclient
#
- name: run fasClient -a
hosts: bastion01.phx2.fedoraproject.org:bastion02.phx2.fedoraproject.org
user: root
gather_facts: False
tasks:
- name: actually run fasClient -a
command: fasClient -a
when: inventory_hostname_short.startswith('bastion0')
- name: run fasClient -i
hosts: all:!builders:!persistent-cloud:!jenkins-cloud:!bkernel:!*composer*
user: root
@@ -13,12 +23,3 @@
- name: actually run fasClient -i
command: fasClient -i
- name: run fasClient -a
hosts: bastion01.phx2.fedoraproject.org:bastion02.phx2.fedoraproject.org
user: root
gather_facts: False
tasks:
- name: actually run fasClient -a
command: fasClient -a
when: inventory_hostname_short.startswith('bastion0')