@@ -25,9 +25,7 @@ def set_enabled(enabled): | |||
cmd = 'ufw --force enable' if enabled else 'ufw disable' | |||
__salt__['cmd.run'](cmd) | |||
def add_rule(rule): | |||
cmd = "ufw " + rule | |||
out = __salt__['cmd.run'](cmd, python_shell=True) | |||
# __salt__['cmd.run']("ufw reload") # why reload after adding a rule? :/ | |||
return out |
@@ -154,7 +154,6 @@ disable-logging: | |||
- name: ufw logging off | |||
- unless: "grep 'LOGLEVEL=off' /etc/ufw/ufw.conf" | |||
{% else %} | |||
#ufw: | |||
#ufw: |