ansible: use ansible_become instead of ansible_sudo
authorGregory Szorc <gps@mozilla.com>
Fri, 02 Nov 2018 13:27:17 -0700
changeset 6681 d3d184961f09c625f180de631be848347be7881a
parent 6680 a3d756fd35b082c16af6841924f03d0457a3f764
child 6682 e44c2edea27ed2af96ed796b31db5bc23f195ced
push id3307
push usergszorc@mozilla.com
push dateFri, 02 Nov 2018 20:27:27 +0000
treeherderversion-control-tools@d3d184961f09 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
ansible: use ansible_become instead of ansible_sudo This is needed in order for Ansible to run tasks as root.
ansible/hosts
--- a/ansible/hosts
+++ b/ansible/hosts
@@ -1,18 +1,18 @@
 [hgweb-prod]
-hgweb[1:4].dmz.mdc1.mozilla.com ansible_sudo=yes
+hgweb[1:4].dmz.mdc1.mozilla.com ansible_become=yes
 
 [hgssh-prod]
-hgssh[1:3].dmz.mdc1.mozilla.com ansible_sudo=yes
+hgssh[1:3].dmz.mdc1.mozilla.com ansible_become=yes
 
 [hgssh-prod-master]
-hgssh1.dmz.mdc1.mozilla.com
+hgssh1.dmz.mdc1.mozilla.com ansible_become=yes
 
 [hgmo:children]
 hgssh-prod
 hgweb-prod
 
 [reviewbot]
-54.244.13.202 ansible_ssh_user=ubuntu ansible_sudo=yes ansible_python_interpreter=/usr/bin/python2.7
+54.244.13.202 ansible_ssh_user=ubuntu ansible_become=yes ansible_python_interpreter=/usr/bin/python2.7
 
 [servovcssync]
 servo-vcs-sync.mozops.net ansible_ssh_user=centos ansible_become=yes