fix docker service management
This commit is contained in:
parent
427e817ba6
commit
6a0b9ff2ba
@ -15,13 +15,13 @@
|
|||||||
- name: Get the list of services on the host
|
- name: Get the list of services on the host
|
||||||
ansible.builtin.service_facts:
|
ansible.builtin.service_facts:
|
||||||
|
|
||||||
- name: Disable Docker service due to incompatibility
|
- name: Stop Docker service due to incompatibility
|
||||||
ansible.builtin.service:
|
ansible.builtin.service:
|
||||||
name: docker.service
|
name: docker.service
|
||||||
state: stopped
|
state: stopped
|
||||||
enabled: false
|
|
||||||
when:
|
when:
|
||||||
- "'docker.service' in ansible_facts['services']"
|
- ansible_facts['services'][bigboot_docker_service] is defined
|
||||||
|
- ansible_facts['services'][bigboot_docker_service]['state'] == "running"
|
||||||
|
|
||||||
- name: Capture boot device details
|
- name: Capture boot device details
|
||||||
ansible.builtin.import_tasks: tasks/capture_boot_device_details.yml
|
ansible.builtin.import_tasks: tasks/capture_boot_device_details.yml
|
||||||
@ -29,10 +29,6 @@
|
|||||||
- name: Capture logical volume information
|
- name: Capture logical volume information
|
||||||
ansible.builtin.import_tasks: tasks/capture_lv_device_details.yml
|
ansible.builtin.import_tasks: tasks/capture_lv_device_details.yml
|
||||||
|
|
||||||
- name: Set ReaR backup flag
|
|
||||||
ansible.builtin.set_fact:
|
|
||||||
bigboot_rear_backup_skip:
|
|
||||||
|
|
||||||
- name: Set environment for subsequent workflow nodes
|
- name: Set environment for subsequent workflow nodes
|
||||||
ansible.builtin.set_stats:
|
ansible.builtin.set_stats:
|
||||||
aggregate: true
|
aggregate: true
|
||||||
@ -48,6 +44,15 @@
|
|||||||
}
|
}
|
||||||
}) }}"
|
}) }}"
|
||||||
|
|
||||||
|
- name: Restore Docker service to its previous running state
|
||||||
|
ansible.builtin.service:
|
||||||
|
name: docker.service
|
||||||
|
state: started
|
||||||
|
when:
|
||||||
|
- ansible_facts['services'][bigboot_docker_service] is defined
|
||||||
|
- ansible_facts['services'][bigboot_docker_service]['state'] == "running"
|
||||||
|
|
||||||
|
|
||||||
- name: Perform a ReaR backup if any disk modifications are to be made
|
- name: Perform a ReaR backup if any disk modifications are to be made
|
||||||
ansible.builtin.import_playbook: rhc.rear.rear_backup
|
ansible.builtin.import_playbook: rhc.rear.rear_backup
|
||||||
when:
|
when:
|
||||||
|
@ -8,6 +8,8 @@ bigboot_reboot_timeout: 1800
|
|||||||
|
|
||||||
bigboot_skip_rear_backup: false
|
bigboot_skip_rear_backup: false
|
||||||
|
|
||||||
|
bigboot_docker_service: docker.service
|
||||||
|
|
||||||
# Max value in minutes for the timeout threshold:
|
# Max value in minutes for the timeout threshold:
|
||||||
bigboot_service_max_timeout: 5
|
bigboot_service_max_timeout: 5
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user