summaryrefslogtreecommitdiffstats
path: root/roles/contiv_facts/tasks
diff options
context:
space:
mode:
authorMark Chappell <mchappel@redhat.com>2017-06-23 14:31:08 +0200
committerMark Chappell <mchappel@redhat.com>2017-06-23 14:32:03 +0200
commit9e2db2bb18b2446dfd603b097936a21686d5b020 (patch)
tree90f408a57ecd3a39db5be340d284d6a536af4331 /roles/contiv_facts/tasks
parent0371aff5b86302d4786a87c0fe6f52b32a2952c9 (diff)
downloadopenshift-9e2db2bb18b2446dfd603b097936a21686d5b020.tar.gz
openshift-9e2db2bb18b2446dfd603b097936a21686d5b020.tar.bz2
openshift-9e2db2bb18b2446dfd603b097936a21686d5b020.tar.xz
openshift-9e2db2bb18b2446dfd603b097936a21686d5b020.zip
replace deprecated always_run with check_mode: no
Prior to Ansible 2.2 only the the equivalent of check_mode: no existed. The notation for that was always_run: yes. always_run now generates a deprecation warning: [DEPRECATION WARNING]: always_run is deprecated. Use check_mode = no instead.. This feature will be removed in version 2.4. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.
Diffstat (limited to 'roles/contiv_facts/tasks')
-rw-r--r--roles/contiv_facts/tasks/main.yml6
-rw-r--r--roles/contiv_facts/tasks/rpm.yml4
2 files changed, 5 insertions, 5 deletions
diff --git a/roles/contiv_facts/tasks/main.yml b/roles/contiv_facts/tasks/main.yml
index 926e0e0be..7a4972fca 100644
--- a/roles/contiv_facts/tasks/main.yml
+++ b/roles/contiv_facts/tasks/main.yml
@@ -3,7 +3,7 @@
stat: path=/run/ostree-booted
register: s
changed_when: false
- always_run: yes
+ check_mode: no
- name: Init the is_atomic fact
set_fact:
@@ -17,7 +17,7 @@
- name: Determine if CoreOS
raw: "grep '^NAME=' /etc/os-release | sed s'/NAME=//'"
register: distro
- always_run: yes
+ check_mode: no
- name: Init the is_coreos fact
set_fact:
@@ -61,7 +61,7 @@
stat: path=/usr/bin/rpm
register: s
changed_when: false
- always_run: yes
+ check_mode: no
- name: Init the has_rpm fact
set_fact:
diff --git a/roles/contiv_facts/tasks/rpm.yml b/roles/contiv_facts/tasks/rpm.yml
index d2f66dac5..07401a6dd 100644
--- a/roles/contiv_facts/tasks/rpm.yml
+++ b/roles/contiv_facts/tasks/rpm.yml
@@ -4,7 +4,7 @@
register: s
changed_when: false
failed_when: false
- always_run: yes
+ check_mode: no
- name: Set the has_firewalld fact
set_fact:
@@ -16,7 +16,7 @@
register: s
changed_when: false
failed_when: false
- always_run: yes
+ check_mode: no
- name: Set the has_iptables fact
set_fact: