summaryrefslogtreecommitdiffstats
path: root/tasks
diff options
context:
space:
mode:
authorKevin Fenzi <kevin@scrye.com>2016-11-01 16:29:49 +0000
committerKevin Fenzi <kevin@scrye.com>2016-11-01 16:29:49 +0000
commitb1a2d105c9727e9713ec0b00c1b04fcac77fcddc (patch)
treedf88db8f22498635499b75bc1db895a6921db712 /tasks
parent1fe7e9264d2e7fdc45e97060dc04d9e5867a50e3 (diff)
In ansible 2.2 always_run is depreciated. Switch to check_mode.
Diffstat (limited to 'tasks')
-rw-r--r--tasks/growroot_cloud.yml2
-rw-r--r--tasks/growroot_cloud_el7.yml2
-rw-r--r--tasks/persistent_cloud.yml6
-rw-r--r--tasks/virt_instance_create.yml2
4 files changed, 6 insertions, 6 deletions
diff --git a/tasks/growroot_cloud.yml b/tasks/growroot_cloud.yml
index 35f493eb5..630c91957 100644
--- a/tasks/growroot_cloud.yml
+++ b/tasks/growroot_cloud.yml
@@ -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
diff --git a/tasks/growroot_cloud_el7.yml b/tasks/growroot_cloud_el7.yml
index 986d6bff2..0803064e7 100644
--- a/tasks/growroot_cloud_el7.yml
+++ b/tasks/growroot_cloud_el7.yml
@@ -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
diff --git a/tasks/persistent_cloud.yml b/tasks/persistent_cloud.yml
index a0e6a0299..c43ce8cbc 100644
--- a/tasks/persistent_cloud.yml
+++ b/tasks/persistent_cloud.yml
@@ -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
diff --git a/tasks/virt_instance_create.yml b/tasks/virt_instance_create.yml
index 358e29d54..fa0b53ebc 100644
--- a/tasks/virt_instance_create.yml
+++ b/tasks/virt_instance_create.yml
@@ -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