turned reboot into a handler

This commit is contained in:
John committed 2020-07-30 13:33:53 -02:30
1 parent 01de3488a2
commit 022bf9440f
2 files changed
+5 -8

No files matched your search

+2 -8
View File
@@ -14,7 +14,7 @@
regexp: '^((?!.*\bcgroup_enable=cpuset cgroup_memory=1 cgroup_enable=memory\b).*)$'
line: '\1 cgroup_enable=cpuset cgroup_memory=1 cgroup_enable=memory'
backrefs: true
register: cgroup
notify: reboot
when:
- raspbian is true
@@ -22,6 +22,7 @@
iptables:
flush: true
when: raspbian
changed_when: false # iptables flush always returns changed
- name: Changing to iptables-legacy
alternatives:
@@ -36,10 +37,3 @@
name: ip6tables
register: ip6_legacy
when: raspbian
- name: Rebooting
reboot:
when:
- cgroup.changed
tags:
- skip_ansible_lint