From f8f8c0d622658273d224799cb4ea3465597d8c6c Mon Sep 17 00:00:00 2001 From: Maciej Kwiek Date: Mon, 22 Feb 2016 10:16:04 +0100 Subject: [PATCH] Change sudo to become in bootstrap playbooks As we are using ansible 2.0, we should move from sudo to become to avoid deprecation. Change-Id: I7a99df005dcdcd12e9a2afdeb0c908fe2069cc57 Related-bug: 1547430 --- bootstrap/build-image.yaml | 2 +- bootstrap/packer.yaml | 2 +- bootstrap/playbooks/build-main.yaml | 2 +- bootstrap/playbooks/pxe.yaml | 2 +- bootstrap/playbooks/solar-agent.yaml | 2 +- bootstrap/playbooks/solar.yaml | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/bootstrap/build-image.yaml b/bootstrap/build-image.yaml index ed70438c..799c0c9f 100644 --- a/bootstrap/build-image.yaml +++ b/bootstrap/build-image.yaml @@ -1,7 +1,7 @@ --- - hosts: all - sudo: yes + become: yes tasks: #- shell: vagrant init ubuntu/trusty64 - shell: /usr/local/bin/packer build -only=qemu solar-master.json -var 'is_master=true' diff --git a/bootstrap/packer.yaml b/bootstrap/packer.yaml index e5c81d4f..8861ccab 100644 --- a/bootstrap/packer.yaml +++ b/bootstrap/packer.yaml @@ -1,7 +1,7 @@ --- - hosts: all - sudo: yes + become: yes tasks: - shell: wget 'https://dl.bintray.com/mitchellh/packer/packer_0.8.2_linux_amd64.zip' -O /tmp/packer-0.8.2.zip args: diff --git a/bootstrap/playbooks/build-main.yaml b/bootstrap/playbooks/build-main.yaml index feffd58a..5f4abff9 100644 --- a/bootstrap/playbooks/build-main.yaml +++ b/bootstrap/playbooks/build-main.yaml @@ -2,7 +2,7 @@ - name: Main build script hosts: all - sudo: yes + become: yes vars: ssh_ip_mask: "10.*.*.*" tasks: diff --git a/bootstrap/playbooks/pxe.yaml b/bootstrap/playbooks/pxe.yaml index bd7ebf5b..26f0318f 100644 --- a/bootstrap/playbooks/pxe.yaml +++ b/bootstrap/playbooks/pxe.yaml @@ -2,7 +2,7 @@ - name: Setup dhcp server with bootstrap image hosts: all - sudo: yes + become: yes vars: tftp_root: /var/lib/tftp dhcp_range_start: 10.0.0.42 diff --git a/bootstrap/playbooks/solar-agent.yaml b/bootstrap/playbooks/solar-agent.yaml index fb280ed5..c9832a0e 100644 --- a/bootstrap/playbooks/solar-agent.yaml +++ b/bootstrap/playbooks/solar-agent.yaml @@ -1,7 +1,7 @@ --- - hosts: all - sudo: yes + become: yes vars: ssh_ip_mask: "10.*.*.*" tasks: diff --git a/bootstrap/playbooks/solar.yaml b/bootstrap/playbooks/solar.yaml index 3bd25e71..afaf1b66 100644 --- a/bootstrap/playbooks/solar.yaml +++ b/bootstrap/playbooks/solar.yaml @@ -1,7 +1,7 @@ --- - hosts: localhost - sudo: yes + become: yes vars: ssh_ip_mask: "10.*.*.*" tasks: