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:
Mark Goddard 2017-08-22 14:00:47 +00:00
parent 7d7dc486a4
commit 112e36a7fd
2 changed files with 3 additions and 2 deletions

View File

@ -2,6 +2,8 @@
- name: Ensure IP addresses are allocated
hosts: seed-hypervisor:seed:overcloud
gather_facts: no
# Use serial=1 to avoid races between allocations for different hosts.
serial: 1
pre_tasks:
- name: Initialise the IP allocations fact
set_fact:
@ -25,5 +27,3 @@
- role: ip-allocation
ip_allocation_filename: "{{ kayobe_config_path }}/network-allocation.yml"
ip_allocation_hostname: "{{ inventory_hostname }}"
# Use serial=1 to avoid races between allocations for different hosts.
serial: 1

View File

@ -11,6 +11,7 @@
with_items:
- python-netaddr
- PyYAML
run_once: True
- name: Ensure IP addresses are allocated
local_action: