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
This commit is contained in:
Maciej Kwiek 2016-02-22 10:16:04 +01:00
parent e26f0083bb
commit f8f8c0d622
6 changed files with 6 additions and 6 deletions

View File

@ -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'

View File

@ -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:

View File

@ -2,7 +2,7 @@
- name: Main build script
hosts: all
sudo: yes
become: yes
vars:
ssh_ip_mask: "10.*.*.*"
tasks:

View File

@ -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

View File

@ -1,7 +1,7 @@
---
- hosts: all
sudo: yes
become: yes
vars:
ssh_ip_mask: "10.*.*.*"
tasks:

View File

@ -1,7 +1,7 @@
---
- hosts: localhost
sudo: yes
become: yes
vars:
ssh_ip_mask: "10.*.*.*"
tasks: