Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

chore: update logic to be inline with latest round of testing #71

Merged
merged 1 commit into from
Jan 6, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading