ansible: declare `ansible_{sudo,become}` as hostgroup variables
authorConnor Sheehan <sheehan@mozilla.com>
Wed, 15 May 2019 12:49:29 -0400
changeset 7028 eedbbe05155708abf018c7ecabaf6c91dfafa4c6
parent 7027 57918871a6c0d67801c537772d6afb1bc37f550a
child 7029 fdb441baf69aa69512336fbf50d243962242e7e4
push id3497
push usercosheehan@mozilla.com
push dateWed, 15 May 2019 17:08:31 +0000
treeherderversion-control-tools@fdb441baf69a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
ansible: declare `ansible_{sudo,become}` as hostgroup variables
ansible/hosts
--- a/ansible/hosts
+++ b/ansible/hosts
@@ -3,37 +3,41 @@ hgweb[1:4].dmz.mdc1.mozilla.com ansible_
 
 [hgssh-prod]
 hgssh[1:3].dmz.mdc1.mozilla.com ansible_become=yes
 
 [hgssh-prod-master]
 hgssh1.dmz.mdc1.mozilla.com ansible_become=yes
 
 [ci-uw2]
-10.191.5.126 ansible_sudo=yes ansible_become=yes
-10.191.5.137 ansible_sudo=yes ansible_become=yes
+10.191.5.126
+10.191.5.137
 
 [ci-uw1]
-10.191.11.157 ansible_sudo=yes ansible_become=yes
-10.191.11.121 ansible_sudo=yes ansible_become=yes
+10.191.11.157
+10.191.11.121
 
 [ci-ue1]
-10.191.12.152 ansible_sudo=yes ansible_become=yes
-10.191.12.125 ansible_sudo=yes ansible_become=yes
+10.191.12.152
+10.191.12.125
 
 [ci-ue2]
-10.191.13.121 ansible_sudo=yes ansible_become=yes
-10.191.13.150 ansible_sudo=yes ansible_become=yes
+10.191.13.121
+10.191.13.150
 
 [hgweb-mirrors:children]
 ci-uw1
 ci-uw2
 ci-ue1
 ci-ue2
 
+[hgweb-mirrors:vars]
+ansible_sudo=yes
+ansible_become=yes
+
 [hgmo:children]
 hgssh-prod
 hgweb-prod
 hgweb-mirrors
 bootstrap
 
 [reviewbot]
 54.244.13.202 ansible_ssh_user=ubuntu ansible_become=yes ansible_python_interpreter=/usr/bin/python2.7