Permalink
Browse files

Switched to 'package' module instead of distro specific module.

Also added a few 'become: yes' where necessary.
  • Loading branch information...
Frzk committed Feb 8, 2019
1 parent 3f5ab92 commit b7358376bea3dcebd70bff41fbe8d5a45e2df5c5
Showing with 9 additions and 16 deletions.
  1. +1 −0 handlers/main.yml
  2. +8 −1 tasks/main.yml
  3. +0 −5 tasks/setup-Archlinux.yml
  4. +0 −5 tasks/setup-Debian.yml
  5. +0 −5 tasks/setup-RedHat.yml
@@ -1,5 +1,6 @@
---
- name: Reload nftables
become: yes
service:
name: nftables
state: reloaded
@@ -11,9 +11,13 @@
skip: yes

- name: Install
include_tasks: "setup-{{ ansible_os_family }}.yml"
become: yes
package:
name: nftables
state: present

- name: Set up configuration file
become: yes
template:
src: templates/nftables.rules.j2
dest: "{{ nftables_config_file }}"
@@ -25,6 +29,7 @@
notify: Reload nftables

- name: Disable conflicting services
become: yes
service:
name: "{{ item }}"
state: stopped
@@ -36,11 +41,13 @@
- iptables

- name: Start service
become: yes
service:
name: nftables
state: started

- name: Enable service
become: yes
service:
name: nftables
enabled: yes

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.

0 comments on commit b735837

Please sign in to comment.