named-chroot initial fix

This commit is contained in:
2024-08-02 21:08:12 -04:00
parent 51402c1189
commit 6f6050cf77
4 changed files with 42 additions and 0 deletions

View File

@ -48,6 +48,14 @@
- name: Ensure service facts are available
ansible.builtin.service_facts:
- name: Restore named-chroot service to its pre-Bigboot state
ansible.builtin.service:
name: "{{ bigboot_named_chroot_service }}"
state: "{{ bigboot_data[inventory_hostname]['bigboot_named_chroot_running'] }}"
enabled: "{{ bigboot_data[inventory_hostname]['bigboot_named_chroot_enabled'] }}"
when:
- ansible_facts['services'][bigboot_named_chroot_service] is defined
- name: Restore Docker service to its pre-Bigboot state
ansible.builtin.service:
name: "{{ bigboot_docker_service }}"