Don't use {{ in when, variables are bare there.
This commit is contained in:
parent
f7d56ff2b1
commit
2fe69599f5
3 changed files with 7 additions and 7 deletions
|
@ -36,11 +36,11 @@
|
|||
|
||||
- name: resize the /dev/vda 1 fs
|
||||
action: command resize2fs /dev/vda1
|
||||
when: "{{ growpart.rc }} == 0"
|
||||
when: growpart.rc == 0
|
||||
|
||||
- name: put the mbr back - b/c the resize breaks booting otherwise
|
||||
action: shell cat /usr/share/syslinux/mbr.bin > /dev/vda
|
||||
when: "{{ growpart.rc }} == 0"
|
||||
when: growpart.rc == 0
|
||||
|
||||
|
||||
- include: "{{ tasks }}/cloud_setup_basic.yml"
|
||||
|
|
|
@ -26,13 +26,13 @@
|
|||
yum: state=installed name=collectd-apache
|
||||
notify:
|
||||
- restart collectd
|
||||
when_set: {{ collectd_apache }}
|
||||
when_set: collectd_apache
|
||||
|
||||
- name: /etc/collectd/apache.conf
|
||||
copy: src="{{ files }}/collectd/apache.conf" dest=/etc/collectd.d/apache.conf
|
||||
notify:
|
||||
- restart collectd
|
||||
when_set: {{ collectd_apache }}
|
||||
when_set: collectd_apache
|
||||
|
||||
|
||||
# each of the below should move to a separate task list
|
||||
|
|
|
@ -17,13 +17,13 @@
|
|||
|
||||
- name: reboot the box
|
||||
action: command /sbin/reboot
|
||||
when: "{{ growpart.rc }} == 0"
|
||||
when: growpart.rc == 0
|
||||
ignore_errors: true
|
||||
|
||||
- name: wait for it to come back (should be quick)
|
||||
local_action: wait_for host={{ inventory_hostname }} port=22 delay=10 timeout=120
|
||||
when: "{{ growpart.rc }} == 0"
|
||||
when: growpart.rc == 0
|
||||
|
||||
- name: resize the /dev/vda 2 fs
|
||||
action: command resize2fs /dev/vda2
|
||||
when: "{{ growpart.rc }} == 0"
|
||||
when: growpart.rc == 0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue