Compare commits
No commits in common. "4d10a958d24b61c5636e72ab0f0b386a72ed334f" and "05ad0d4c364d1a98084170951d180a9b44637c62" have entirely different histories.
4d10a958d2
...
05ad0d4c36
@ -48,14 +48,6 @@
|
|||||||
- name: Ensure service facts are available
|
- name: Ensure service facts are available
|
||||||
ansible.builtin.service_facts:
|
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
|
- name: Restore Docker service to its pre-Bigboot state
|
||||||
ansible.builtin.service:
|
ansible.builtin.service:
|
||||||
name: "{{ bigboot_docker_service }}"
|
name: "{{ bigboot_docker_service }}"
|
||||||
|
@ -15,9 +15,6 @@
|
|||||||
- name: Stop and disable the Docker service if present and running
|
- name: Stop and disable the Docker service if present and running
|
||||||
ansible.builtin.import_tasks: tasks/disable_docker_service.yml
|
ansible.builtin.import_tasks: tasks/disable_docker_service.yml
|
||||||
|
|
||||||
- name: Stop and disable the named-chroot service if present and running
|
|
||||||
ansible.builtin.import_tasks: tasks/disable_named_chroot_service.yml
|
|
||||||
|
|
||||||
- name: Set boot device details
|
- name: Set boot device details
|
||||||
ansible.builtin.import_tasks: tasks/capture_boot_device_details.yml
|
ansible.builtin.import_tasks: tasks/capture_boot_device_details.yml
|
||||||
|
|
||||||
@ -38,8 +35,6 @@
|
|||||||
'bigboot_size': bigboot_size,
|
'bigboot_size': bigboot_size,
|
||||||
'bigboot_docker_running': bigboot_docker_running,
|
'bigboot_docker_running': bigboot_docker_running,
|
||||||
'bigboot_docker_enabled': bigboot_docker_enabled,
|
'bigboot_docker_enabled': bigboot_docker_enabled,
|
||||||
'bigboot_named_chroot_running': bigboot_named_chroot_running,
|
|
||||||
'bigboot_named_chroot_enabled': bigboot_named_chroot_enabled,
|
|
||||||
'ip_addresses': ansible_all_ipv4_addresses,
|
'ip_addresses': ansible_all_ipv4_addresses,
|
||||||
'server_hostname': ansible_hostname
|
'server_hostname': ansible_hostname
|
||||||
}
|
}
|
||||||
|
@ -1,25 +0,0 @@
|
|||||||
---
|
|
||||||
- name: Ensure service facts are available
|
|
||||||
ansible.builtin.service_facts:
|
|
||||||
|
|
||||||
- name: Set named-chroot state
|
|
||||||
when:
|
|
||||||
- ansible_facts['services'][bigboot_named_chroot_service] is defined
|
|
||||||
block:
|
|
||||||
- name: Set named-chroot running state
|
|
||||||
ansible.builtin.set_fact:
|
|
||||||
bigboot_named_chroot_running: started
|
|
||||||
when:
|
|
||||||
- ansible_facts['services'][bigboot_named_chroot_service]['state'] == "running"
|
|
||||||
|
|
||||||
- name: Set named-chroot enabled state
|
|
||||||
ansible.builtin.set_fact:
|
|
||||||
bigboot_named_chroot_enabled: true
|
|
||||||
when:
|
|
||||||
- ansible_facts['services'][bigboot_named_chroot_service]['status'] == "enabled"
|
|
||||||
|
|
||||||
- name: Ensure named-chroot service is stopped and disabled
|
|
||||||
ansible.builtin.service:
|
|
||||||
name: "{{ bigboot_named_chroot_service }}"
|
|
||||||
state: stopped
|
|
||||||
enabled: false
|
|
@ -12,10 +12,6 @@ bigboot_docker_service: docker.service
|
|||||||
bigboot_docker_running: stopped
|
bigboot_docker_running: stopped
|
||||||
bigboot_docker_enabled: false
|
bigboot_docker_enabled: false
|
||||||
|
|
||||||
bigboot_named_chroot_service: named-chroot.service
|
|
||||||
bigboot_named_chroot_running: stopped
|
|
||||||
bigboot_named_chroot_enabled: false
|
|
||||||
|
|
||||||
# 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
|
||||||
|
|
||||||
@ -28,7 +24,6 @@ bigboot_protected_services:
|
|||||||
- rhnsd.service
|
- rhnsd.service
|
||||||
- rhnsd
|
- rhnsd
|
||||||
- boksm.service
|
- boksm.service
|
||||||
# - <add splunk service on wells>
|
|
||||||
|
|
||||||
# Filename of disabled services log:
|
# Filename of disabled services log:
|
||||||
bigboot_disabled_services_log: /var/ipe/ipu/el7to8/bigboot_disabled_services.log
|
bigboot_disabled_services_log: /root/bigboot_disabled_services.log
|
||||||
|
Loading…
x
Reference in New Issue
Block a user