diff options
| author | Ahmed Abdelhalim <[email protected]> | 2026-02-12 23:14:26 +0100 |
|---|---|---|
| committer | Ahmed Abdelhalim <[email protected]> | 2026-02-12 23:14:26 +0100 |
| commit | e807a5b9e0bc3f2b96282d41807610656fa7874b (patch) | |
| tree | af0a7f5926d6e276dc1f66e4c73f7b4e2214864a /roles/ddcutil | |
| parent | 20cd9cd0983f4efe038cb486aa649e7dd8ea7366 (diff) | |
Add reboot to the playbook as post_task (controlled by flag)
Diffstat (limited to 'roles/ddcutil')
| -rw-r--r-- | roles/ddcutil/handlers/main.yml | 5 | ||||
| -rw-r--r-- | roles/ddcutil/tasks/main.yml | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/roles/ddcutil/handlers/main.yml b/roles/ddcutil/handlers/main.yml index ed0ffa85..dfc50931 100644 --- a/roles/ddcutil/handlers/main.yml +++ b/roles/ddcutil/handlers/main.yml @@ -4,3 +4,8 @@ ansible.builtin.command: cmd: "udevadm control --reload-rules" changed_when: true + +- name: "Require reboot" + ansible.builtin.set_fact: + # This flag is used to trigger a post_task of rebooting after the playbook finishes + reboot_required: true diff --git a/roles/ddcutil/tasks/main.yml b/roles/ddcutil/tasks/main.yml index ed4dc845..5b97b5e1 100644 --- a/roles/ddcutil/tasks/main.yml +++ b/roles/ddcutil/tasks/main.yml @@ -12,6 +12,7 @@ mode: "0644" content: | i2c-dev + notify: "Require reboot" - name: "Ensure i2c group is created" become: true @@ -35,3 +36,4 @@ KERNEL=="i2c-[0-9]*", GROUP="i2c", MODE="0660" notify: - "Reload rules" + - "Require reboot" |
