From 86c9f96b6b68356d79a0079c4844f60903c60cd6 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Thu, 6 Nov 2014 17:26:51 +0100 Subject: [PATCH] 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 @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) --- playbooks/run_fasClient.yml | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/playbooks/run_fasClient.yml b/playbooks/run_fasClient.yml index 06604167cf..c5f8ecf1b5 100644 --- a/playbooks/run_fasClient.yml +++ b/playbooks/run_fasClient.yml @@ -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')