Fix serialisation of ip-allocation role
This keyword should be applied to the play, not the role, otherwise it doesn't work.
This commit is contained in:
parent
7d7dc486a4
commit
112e36a7fd
@ -2,6 +2,8 @@
|
|||||||
- name: Ensure IP addresses are allocated
|
- name: Ensure IP addresses are allocated
|
||||||
hosts: seed-hypervisor:seed:overcloud
|
hosts: seed-hypervisor:seed:overcloud
|
||||||
gather_facts: no
|
gather_facts: no
|
||||||
|
# Use serial=1 to avoid races between allocations for different hosts.
|
||||||
|
serial: 1
|
||||||
pre_tasks:
|
pre_tasks:
|
||||||
- name: Initialise the IP allocations fact
|
- name: Initialise the IP allocations fact
|
||||||
set_fact:
|
set_fact:
|
||||||
@ -25,5 +27,3 @@
|
|||||||
- role: ip-allocation
|
- role: ip-allocation
|
||||||
ip_allocation_filename: "{{ kayobe_config_path }}/network-allocation.yml"
|
ip_allocation_filename: "{{ kayobe_config_path }}/network-allocation.yml"
|
||||||
ip_allocation_hostname: "{{ inventory_hostname }}"
|
ip_allocation_hostname: "{{ inventory_hostname }}"
|
||||||
# Use serial=1 to avoid races between allocations for different hosts.
|
|
||||||
serial: 1
|
|
||||||
|
@ -11,6 +11,7 @@
|
|||||||
with_items:
|
with_items:
|
||||||
- python-netaddr
|
- python-netaddr
|
||||||
- PyYAML
|
- PyYAML
|
||||||
|
run_once: True
|
||||||
|
|
||||||
- name: Ensure IP addresses are allocated
|
- name: Ensure IP addresses are allocated
|
||||||
local_action:
|
local_action:
|
||||||
|
Loading…
Reference in New Issue
Block a user