Unverified Commit 179828da authored by Mike Green's avatar Mike Green
Browse files

Added 'when' for package state in removal of incompatible packages; added line breaks elsewhere

parent 6b156284
......@@ -17,8 +17,9 @@
name: "{{ item }}"
state: absent
with_items: shorewall_incompatible_packages
when: (shorewall_package_state != "absent")
- include: shorewall.yml
- include: shorewall6.yml
when: "'scope' in ansible_default_ipv6 and ansible_default_ipv6.scope == 'global'"
\ No newline at end of file
when: "'scope' in ansible_default_ipv6 and ansible_default_ipv6.scope == 'global'"
......@@ -54,4 +54,5 @@
- restart shorewall
tags:
- configuration
when: (shorewall_package_state != "absent")
\ No newline at end of file
when: (shorewall_package_state != "absent")
\ No newline at end of file
......@@ -16,7 +16,7 @@
- packages
- block:
- name: Shorewall6 configuration files
- name: Generate Shorewall6 configuration files
template:
dest: "/etc/shorewall6/{{ item }}"
src: "shorewall6/{{ item }}.j2"
......@@ -54,4 +54,5 @@
- restart shorewall6
tags:
- configuration
when: (shorewall6_package_state != "absent")
\ No newline at end of file
when: (shorewall6_package_state != "absent")
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment