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
|
- hosts: all
|
||||||
sudo: yes
|
become: yes
|
||||||
tasks:
|
tasks:
|
||||||
#- shell: vagrant init ubuntu/trusty64
|
#- shell: vagrant init ubuntu/trusty64
|
||||||
- shell: /usr/local/bin/packer build -only=qemu solar-master.json -var 'is_master=true'
|
- shell: /usr/local/bin/packer build -only=qemu solar-master.json -var 'is_master=true'
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- hosts: all
|
- hosts: all
|
||||||
sudo: yes
|
become: yes
|
||||||
tasks:
|
tasks:
|
||||||
- shell: wget 'https://dl.bintray.com/mitchellh/packer/packer_0.8.2_linux_amd64.zip' -O /tmp/packer-0.8.2.zip
|
- shell: wget 'https://dl.bintray.com/mitchellh/packer/packer_0.8.2_linux_amd64.zip' -O /tmp/packer-0.8.2.zip
|
||||||
args:
|
args:
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
- name: Main build script
|
- name: Main build script
|
||||||
hosts: all
|
hosts: all
|
||||||
sudo: yes
|
become: yes
|
||||||
vars:
|
vars:
|
||||||
ssh_ip_mask: "10.*.*.*"
|
ssh_ip_mask: "10.*.*.*"
|
||||||
tasks:
|
tasks:
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
- name: Setup dhcp server with bootstrap image
|
- name: Setup dhcp server with bootstrap image
|
||||||
hosts: all
|
hosts: all
|
||||||
sudo: yes
|
become: yes
|
||||||
vars:
|
vars:
|
||||||
tftp_root: /var/lib/tftp
|
tftp_root: /var/lib/tftp
|
||||||
dhcp_range_start: 10.0.0.42
|
dhcp_range_start: 10.0.0.42
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- hosts: all
|
- hosts: all
|
||||||
sudo: yes
|
become: yes
|
||||||
vars:
|
vars:
|
||||||
ssh_ip_mask: "10.*.*.*"
|
ssh_ip_mask: "10.*.*.*"
|
||||||
tasks:
|
tasks:
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- hosts: localhost
|
- hosts: localhost
|
||||||
sudo: yes
|
become: yes
|
||||||
vars:
|
vars:
|
||||||
ssh_ip_mask: "10.*.*.*"
|
ssh_ip_mask: "10.*.*.*"
|
||||||
tasks:
|
tasks:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user