Convert the nova playbook to use newer ansible syntax

The nova plabook has been converted from using "include" with playbooks
as this funciton has ben deprecated and is set to be removed.

Change-Id: Ie1c620a0523a668a4e488038a70e4c683fc3b757
Signed-off-by: Kevin Carter <kevin@cloudnull.com>
This commit is contained in:
Kevin Carter 2019-03-08 14:25:09 -06:00 committed by Kevin Carter (cloudnull)
parent c62d61c16f
commit 934f73ad3e
1 changed files with 7 additions and 7 deletions

View File

@ -14,7 +14,7 @@
# limitations under the License.
- name: Install nova-conductor services
include: common-playbooks/nova.yml
import_playbook: common-playbooks/nova.yml
vars:
nova_hosts: "nova_conductor"
nova_serial: "{{ nova_conductor_serial | default(['1', '100%']) }}"
@ -22,7 +22,7 @@
- name: Install nova-scheduler services
include: common-playbooks/nova.yml
import_playbook: common-playbooks/nova.yml
vars:
nova_hosts: "nova_scheduler:!nova_conductor"
nova_serial: "{{ nova_scheduler_serial | default(['1', '100%']) }}"
@ -30,7 +30,7 @@
- name: Install nova API services
include: common-playbooks/nova.yml
import_playbook: common-playbooks/nova.yml
vars:
nova_hosts: "nova_api_os_compute:nova_api_placement:!nova_conductor:!nova_scheduler:!nova_consoleauth"
nova_serial: "{{ nova_api_serial | default(['1', '100%']) }}"
@ -38,7 +38,7 @@
- name: Install nova console/metadata services
include: common-playbooks/nova.yml
import_playbook: common-playbooks/nova.yml
vars:
nova_hosts: "nova_api_metadata:nova_console:!nova_conductor:!nova_scheduler:!nova_consoleauth:!nova_api_os_compute:!nova_api_placement"
nova_serial: "{{ nova_console_serial | default(['1', '100%']) }}"
@ -46,7 +46,7 @@
- name: Install nova compute
include: common-playbooks/nova.yml
import_playbook: common-playbooks/nova.yml
vars:
nova_hosts: "nova_compute:!nova_conductor:!nova_scheduler:!nova_consoleauth:!nova_api_os_compute:!nova_api_placement:!nova_api_metadata:!nova_console"
nova_serial: "{{ nova_compute_serial | default('100%') }}"
@ -115,7 +115,7 @@
- nova
tasks:
- name: Execute nova service reload
include: common-tasks/restart-service.yml
import_tasks: common-tasks/restart-service.yml
vars:
service_name: "nova"
service_action: "reloaded"
@ -141,7 +141,7 @@
- nova
tasks:
- name: Execute nova service restart
include: common-tasks/restart-service.yml
import_tasks: common-tasks/restart-service.yml
vars:
service_name: "nova"
service_action: "restarted"