Skip to content

Commit

Permalink
chore: update logic to be inline with latest round of testing
Browse files Browse the repository at this point in the history
  • Loading branch information
O1ahmad committed Jan 6, 2025
1 parent 09cb308 commit 055fafd
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 14 deletions.
13 changes: 9 additions & 4 deletions tasks/common/preflight.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
---
- name: Check for uninstall signal
ansible.builtin.command: /bin/true
notify: Uninstall units
when: perform_uninstall|bool
changed_when: false
when: perform_uninstall | bool
tags:
- preflight
block:
- name: Broadcast uninstall signal
ansible.builtin.command: /bin/true
notify: Uninstall units
changed_when: true

- name: Flush handlers to ensure uninstall is completed
ansible.builtin.meta: flush_handlers
21 changes: 11 additions & 10 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,15 @@
tags:
- preflight

- name: Include common config tasks
ansible.builtin.include_tasks: "common/config.yml"
when: not perform_uninstall|bool
tags:
- config
- name: Perform setup tasks
when: not perform_uninstall | bool
block:
- name: Include common config tasks
ansible.builtin.include_tasks: "common/config.yml"
tags:
- config

- name: Include common launch tasks
ansible.builtin.include_tasks: "common/launch.yml"
when: not perform_uninstall|bool
tags:
- launch
- name: Include common launch tasks
ansible.builtin.include_tasks: "common/launch.yml"
tags:
- launch

0 comments on commit 055fafd

Please # to comment.