ansible-role-cloud-launcher/tasks/create_router.yml
Ian Wienand 01858ea602 Add region to task output
It's also very helpful to have the region in the task name when you
have multiple regions for a cloud.

Change-Id: I85c0769bb2332a91aa759fb90223ec812dc3e77d
2018-11-07 11:10:56 +11:00

13 lines
691 B
YAML

---
- name: "Processing router {{ item_router.name }} for {{ item_cloud.oscc_cloud|default(item_cloud.name) }} {{ item_cloud.region_name|default('') }}"
os_router:
cloud: "{{ item_cloud.oscc_cloud|default(item_cloud.name) }}"
state: "{{ item_router.state|default(omit) }}"
name: "{{ item_router.name }}"
network: "{{ item_router.network }}"
admin_state_up: "{{ item_router.admin_state_up|default(omit) }}"
enable_snat: "{{ item_router.enable_snat|default(omit) }}"
external_fixed_ips: "{{ item_router.external_fixed_ips|default(omit) }}"
interfaces: "{{ item_router.interfaces|default(omit) }}"
region_name: "{{ item_cloud.region_name|default(omit) }}"