mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-03-20 03:57:02 +08:00
In ansible 2.2 always_run is depreciated. Switch to check_mode.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user