Skip to content

Commit

Permalink
Fixy fixy.
Browse files Browse the repository at this point in the history
  • Loading branch information
robertdebock committed Oct 7, 2018
1 parent d588bbb commit b25c87a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
3 changes: 2 additions & 1 deletion tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
- name: install required software
package:
name: "{{ firewall_packages['required'][ansible_distribution]
| default(firewall_packages['required']['default']) }}"
| default(firewall_packages['required'][ansible_distribution ~ '-' ~ ansible_distribution_major_version]
| default(firewall_packages['required']['default'])) }}"
state: "{{ firewall_package_state }}"
when:
- firewall_packages.required is defined
Expand Down
7 changes: 3 additions & 4 deletions vars/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ firewall_packages:
CentOS-6:
- iptables
CentOS-7:
- firewalld
- iptables
- iptables-services
Fedora:
- firewalld
openSUSE Leap:
Expand All @@ -22,11 +23,9 @@ firewall_packages:
Alpine:
- firewalld
- ufw
CentOS-6:
CentOS:
- firewalld
- ufw
CentOS-7:
- ufw
Fedora:
- ufw
openSUSE Leap:
Expand Down

0 comments on commit b25c87a

Please sign in to comment.