In ansible 2.2 always_run is depreciated. Switch to check_mode.

This commit is contained in:
Kevin Fenzi 2016-11-01 16:29:49 +00:00
parent 1fe7e9264d
commit b1a2d105c9
67 changed files with 124 additions and 124 deletions

View file

@ -12,7 +12,7 @@
- name: growpart the second partition (/) to full size
command: growpart /dev/vda 2
register: growpart
always_run: true
check_mode: no
changed_when: "growpart.rc != 1"
#failed_when: growpart.rc == 2
ignore_errors: true

View file

@ -12,7 +12,7 @@
- name: growpart the first partition (/) to full size
command: growpart /dev/vda 1
register: growpart
always_run: true
check_mode: no
changed_when: "growpart.rc != 1"
failed_when: growpart.rc == 2

View file

@ -5,7 +5,7 @@
register: host_is_up
ignore_errors: true
changed_when: false
always_run: true
check_mode: no
- name: clean out old known_hosts (name based entries)
local_action: known_hosts path={{item}} host={{inventory_hostname}} state=absent
@ -56,7 +56,7 @@
changed_when: volume_available.rc == 0
ignore_errors: True
when: volumes is defined
always_run: True
check_mode: no
#
# If it is attach it.
@ -97,7 +97,7 @@
- name: gather facts
setup:
always_run: True
check_mode: no
ignore_errors: True
register: facts

View file

@ -6,7 +6,7 @@
delegate_to: "{{ vmhost }}"
virt: command=list_vms
register: result
always_run: yes
check_mode: no
- name: ensure the lv for the guest is made
lvol: lv={{ inventory_hostname }} vg={{ volgroup }} size={{ lvm_size }} state=present