Merge "nova-compute: Replacing yes/no with boolean values" into stable/wallaby
This commit is contained in:
commit
f87dc3cd85
|
@ -1469,8 +1469,8 @@ outputs:
|
|||
- name: libvirt-guests enable VM shutdown on compute reboot/shutdown
|
||||
systemd:
|
||||
name: libvirt-guests
|
||||
enabled: yes
|
||||
daemon_reload: yes
|
||||
enabled: true
|
||||
daemon_reload: true
|
||||
- name: install tripleo_nova_libvirt_guests systemd unit file (podman)
|
||||
when:
|
||||
- resume_guests_state_on_host_boot_enabled|bool
|
||||
|
@ -1510,8 +1510,8 @@ outputs:
|
|||
- name: tripleo_nova_libvirt_guests enable VM shutdown on compute reboot/shutdown
|
||||
systemd:
|
||||
name: tripleo_nova_libvirt_guests
|
||||
enabled: yes
|
||||
daemon_reload: yes
|
||||
enabled: true
|
||||
daemon_reload: true
|
||||
- name: ensure ceph configurations exist
|
||||
file:
|
||||
path: {get_param: CephConfigPath}
|
||||
|
@ -1522,8 +1522,8 @@ outputs:
|
|||
- name: enable virt_sandbox_use_netlink for healthcheck
|
||||
seboolean:
|
||||
name: virt_sandbox_use_netlink
|
||||
persistent: yes
|
||||
state: yes
|
||||
persistent: true
|
||||
state: true
|
||||
- name: install Instance HA recovery script
|
||||
when: instance_ha_enabled|bool
|
||||
block:
|
||||
|
@ -1604,7 +1604,7 @@ outputs:
|
|||
service:
|
||||
name: "{{ item }}"
|
||||
state: stopped
|
||||
enabled: no
|
||||
enabled: false
|
||||
with_items:
|
||||
- ksm.service
|
||||
- ksmtuned.service
|
||||
|
@ -1634,7 +1634,7 @@ outputs:
|
|||
service:
|
||||
name: "{{ item }}"
|
||||
state: started
|
||||
enabled: yes
|
||||
enabled: true
|
||||
with_items:
|
||||
- ksm.service
|
||||
- ksmtuned.service
|
||||
|
@ -1671,7 +1671,7 @@ outputs:
|
|||
command: openstack compute service list --service nova-compute --column ID --column Host --format yaml
|
||||
register: nova_compute_service_result
|
||||
delegate_to: localhost
|
||||
check_mode: no
|
||||
check_mode: false
|
||||
changed_when: false
|
||||
- name: is additional Cell?
|
||||
set_fact:
|
||||
|
@ -1680,7 +1680,7 @@ outputs:
|
|||
set_fact:
|
||||
nova_compute_service: "{{ nova_compute_service_result.stdout | from_yaml | selectattr('Host', 'match', ansible_facts['fqdn'] ~ '.*') | list }}"
|
||||
delegate_to: localhost
|
||||
check_mode: no
|
||||
check_mode: false
|
||||
- name: Check search output
|
||||
fail:
|
||||
msg: >-
|
||||
|
@ -1699,14 +1699,14 @@ outputs:
|
|||
- name: Disable nova-compute service
|
||||
command: openstack compute service set {{ nova_compute_service[0].Host }} nova-compute --disable
|
||||
delegate_to: localhost
|
||||
check_mode: no
|
||||
check_mode: false
|
||||
when:
|
||||
- not is_additional_cell|bool
|
||||
- name: Stop nova-compute container
|
||||
service:
|
||||
name: tripleo_nova_compute
|
||||
state: stopped
|
||||
enabled: no
|
||||
enabled: false
|
||||
become: true
|
||||
register: stop_nova_compute
|
||||
failed_when: "('msg' in stop_nova_compute and
|
||||
|
@ -1715,4 +1715,4 @@ outputs:
|
|||
- name: Delete nova-compute service
|
||||
command: openstack compute service delete {{ nova_compute_service[0].ID }}
|
||||
delegate_to: localhost
|
||||
check_mode: no
|
||||
check_mode: false
|
||||
|
|
Loading…
Reference in New Issue