Skip to content

Commit

Permalink
Resolve deprecation warnings in Contiv roles
Browse files Browse the repository at this point in the history
  • Loading branch information
mtnbikenc committed Jun 16, 2017
1 parent 7889412 commit 9aa34a0
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion roles/contiv/tasks/netmaster_iptables.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
- name: Netmaster IPtables | Get iptables rules
command: iptables -L --wait
register: iptablesrules
always_run: yes
checkmode: no

- name: Netmaster IPtables | Enable iptables at boot
service:
Expand Down
2 changes: 1 addition & 1 deletion roles/contiv/tasks/netplugin_iptables.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
- name: Netplugin IPtables | Get iptables rules
command: iptables -L --wait
register: iptablesrules
always_run: yes
checkmode: no

- name: Netplugin IPtables | Enable iptables at boot
service:
Expand Down
6 changes: 3 additions & 3 deletions roles/contiv_facts/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
stat: path=/run/ostree-booted
register: s
changed_when: false
always_run: yes
checkmode: no

- name: Init the is_atomic fact
set_fact:
Expand All @@ -17,7 +17,7 @@
- name: Determine if CoreOS
raw: "grep '^NAME=' /etc/os-release | sed s'/NAME=//'"
register: distro
always_run: yes
checkmode: no

- name: Init the is_coreos fact
set_fact:
Expand Down Expand Up @@ -61,7 +61,7 @@
stat: path=/usr/bin/rpm
register: s
changed_when: false
always_run: yes
checkmode: no

- name: Init the has_rpm fact
set_fact:
Expand Down
4 changes: 2 additions & 2 deletions roles/contiv_facts/tasks/rpm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
register: s
changed_when: false
failed_when: false
always_run: yes
checkmode: no

- name: Set the has_firewalld fact
set_fact:
Expand All @@ -16,7 +16,7 @@
register: s
changed_when: false
failed_when: false
always_run: yes
checkmode: no

- name: Set the has_iptables fact
set_fact:
Expand Down

0 comments on commit 9aa34a0

Please sign in to comment.