Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

[tripleo_cleanup] Add daemon-reload and reset-failed as last step #855

Merged
Merged
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
15 changes: 15 additions & 0 deletions roles/edpm_tripleo_cleanup/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,3 +99,18 @@
ansible.builtin.include_role:
name: edpm_install_certs
tasks_from: adoption

- name: Cleanup tripleo services from the systemd
become: true
tags:
- adoption
when: edpm_remove_tripleo_unit_files
block:
- name: Reload units
ansible.builtin.systemd_service:
daemon_reload: true
- name: Reset state of failed systemd units
ansible.builtin.command:
cmd: /usr/bin/systemctl reset-failed {{ item }} # noqa: command-instead-of-module no-changed-when
loop: "{{ tripleo_services }}"
failed_when: false
Loading