Skip to content

Commit

Permalink
Fix reboot handler calls (#239)
Browse files Browse the repository at this point in the history
Signed-off-by: Derek Nola <[email protected]>
  • Loading branch information
dereknola authored Nov 9, 2023
1 parent 45289ba commit bb55bcf
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion roles/raspberrypi/handlers/main.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
---
- name: Reboot Pis
- name: Reboot Pi
ansible.builtin.reboot:
2 changes: 1 addition & 1 deletion roles/raspberrypi/tasks/prereq/Archlinux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@
ansible.builtin.command: ./mkscr
args:
chdir: /boot
notify: reboot
notify: Reboot Pi
changed_when: false
when: kernel_cmdline_cgroup.changed # noqa: no-handler
2 changes: 1 addition & 1 deletion roles/raspberrypi/tasks/prereq/CentOS.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
backrefs: yes
regexp: '^((?!.*\bcgroup_enable=cpuset cgroup_memory=1 cgroup_enable=memory\b).*)$'
line: '\1 cgroup_enable=cpuset cgroup_memory=1 cgroup_enable=memory'
notify: reboot
notify: Reboot Pi
2 changes: 1 addition & 1 deletion roles/raspberrypi/tasks/prereq/Debian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,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
notify: reboot
notify: Reboot Pi

- name: Install iptables
ansible.builtin.apt:
Expand Down
2 changes: 1 addition & 1 deletion roles/raspberrypi/tasks/prereq/Raspbian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,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
notify: reboot
notify: Reboot Pi

- name: Flush iptables before changing to iptables-legacy
ansible.builtin.iptables:
Expand Down
2 changes: 1 addition & 1 deletion roles/raspberrypi/tasks/prereq/Ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
backrefs: yes
regexp: '^((?!.*\bcgroup_enable=cpuset cgroup_memory=1 cgroup_enable=memory\b).*)$'
line: '\1 cgroup_enable=cpuset cgroup_memory=1 cgroup_enable=memory'
notify: reboot
notify: Reboot Pi
- name: Install Ubuntu Raspi Extra Packages
ansible.builtin.apt:
# Fixes issues in newer Ubuntu where VXLan isn't setup right.
Expand Down

0 comments on commit bb55bcf

Please sign in to comment.