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:
parent
e26f0083bb
commit
f8f8c0d622
@ -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'
|
||||
|
@ -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:
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
- name: Main build script
|
||||
hosts: all
|
||||
sudo: yes
|
||||
become: yes
|
||||
vars:
|
||||
ssh_ip_mask: "10.*.*.*"
|
||||
tasks:
|
||||
|
@ -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
|
||||
|
@ -1,7 +1,7 @@
|
||||
---
|
||||
|
||||
- hosts: all
|
||||
sudo: yes
|
||||
become: yes
|
||||
vars:
|
||||
ssh_ip_mask: "10.*.*.*"
|
||||
tasks:
|
||||
|
@ -1,7 +1,7 @@
|
||||
---
|
||||
|
||||
- hosts: localhost
|
||||
sudo: yes
|
||||
become: yes
|
||||
vars:
|
||||
ssh_ip_mask: "10.*.*.*"
|
||||
tasks:
|
||||
|
Loading…
Reference in New Issue
Block a user