From 01858ea6021ad855ee5979fa8479b45ec0f7f155 Mon Sep 17 00:00:00 2001 From: Ian Wienand Date: Wed, 7 Nov 2018 11:10:56 +1100 Subject: [PATCH] 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 --- tasks/create_domain.yml | 2 +- tasks/create_flavor.yml | 2 +- tasks/create_image.yml | 2 +- tasks/create_keypair.yml | 2 +- tasks/create_network.yml | 2 +- tasks/create_project.yml | 2 +- tasks/create_quota.yml | 2 +- tasks/create_router.yml | 2 +- tasks/create_security_group_rule.yml | 2 +- tasks/create_server.yml | 2 +- tasks/create_subnet.yml | 2 +- tasks/create_user.yml | 2 +- tasks/create_user_role.yml | 2 +- tasks/create_volume.yml | 2 +- 14 files changed, 14 insertions(+), 14 deletions(-) diff --git a/tasks/create_domain.yml b/tasks/create_domain.yml index 6361075..d5f7b48 100644 --- a/tasks/create_domain.yml +++ b/tasks/create_domain.yml @@ -1,5 +1,5 @@ --- -- name: "Processing domain {{ item_domain.name }} for {{ item_cloud.oscc_cloud|default(item_cloud.name) }}" +- name: "Processing domain {{ item_domain.name }} for {{ item_cloud.oscc_cloud|default(item_cloud.name) }} {{ item_cloud.region_name|default('') }}" os_keystone_domain: cloud: "{{ item_cloud.oscc_cloud|default(item_cloud.name) }}" state: "{{ item_domain.state|default(omit) }}" diff --git a/tasks/create_flavor.yml b/tasks/create_flavor.yml index ef0e130..fba4340 100644 --- a/tasks/create_flavor.yml +++ b/tasks/create_flavor.yml @@ -1,5 +1,5 @@ --- -- name: "Processing flavor {{ item_flavor.name }} for {{ item_cloud.oscc_cloud|default(item_cloud.name) }}" +- name: "Processing flavor {{ item_flavor.name }} for {{ item_cloud.oscc_cloud|default(item_cloud.name) }} {{ item_cloud.region_name|default('') }}" os_nova_flavor: cloud: "{{ item_cloud.oscc_cloud|default(item_cloud.name) }}" state: "{{ item_flavor.state|default(omit) }}" diff --git a/tasks/create_image.yml b/tasks/create_image.yml index 34feab2..b444d9d 100644 --- a/tasks/create_image.yml +++ b/tasks/create_image.yml @@ -9,7 +9,7 @@ force: "{{ item_image.download_image_force|default(download_image_force) }}" when: not openstack_image when: item_image.download_image_url is defined -- name: "Processing image {{ item_image.name }} for {{ item_cloud.oscc_cloud|default(item_cloud.name) }}" +- name: "Processing image {{ item_image.name }} for {{ item_cloud.oscc_cloud|default(item_cloud.name) }} {{ item_cloud.region_name|default('') }}" os_image: cloud: "{{ item_cloud.oscc_cloud|default(item_cloud.name) }}" state: "{{ item_image.state|default(omit) }}" diff --git a/tasks/create_keypair.yml b/tasks/create_keypair.yml index 7b5e304..cf38f48 100644 --- a/tasks/create_keypair.yml +++ b/tasks/create_keypair.yml @@ -1,5 +1,5 @@ --- -- name: "Processing keypair {{ item_keypair.name }} for {{ item_cloud.oscc_cloud|default(item_cloud.name) }}" +- name: "Processing keypair {{ item_keypair.name }} for {{ item_cloud.oscc_cloud|default(item_cloud.name) }} {{ item_cloud.region_name|default('') }}" os_keypair: cloud: "{{ item_cloud.oscc_cloud|default(item_cloud.name) }}" state: "{{ item_keypair.state|default(omit) }}" diff --git a/tasks/create_network.yml b/tasks/create_network.yml index 17d1736..42f014a 100644 --- a/tasks/create_network.yml +++ b/tasks/create_network.yml @@ -1,5 +1,5 @@ --- -- name: "Processing network {{ item_network.name }} for {{ item_cloud.oscc_cloud|default(item_cloud.name) }}" +- name: "Processing network {{ item_network.name }} for {{ item_cloud.oscc_cloud|default(item_cloud.name) }} {{ item_cloud.region_name|default('') }}" os_network: cloud: "{{ item_cloud.oscc_cloud|default(item_cloud.name) }}" state: "{{ item_network.state|default(omit) }}" diff --git a/tasks/create_project.yml b/tasks/create_project.yml index 713b885..5e0eb51 100644 --- a/tasks/create_project.yml +++ b/tasks/create_project.yml @@ -1,5 +1,5 @@ --- -- name: "Processing project {{ item_project.name }} for {{ item_cloud.oscc_cloud|default(item_cloud.name) }}" +- name: "Processing project {{ item_project.name }} for {{ item_cloud.oscc_cloud|default(item_cloud.name) }} {{ item_cloud.region_name|default('') }}" os_project: cloud: "{{ item_cloud.oscc_cloud|default(item_cloud.name) }}" state: "{{ item_project.state|default(omit) }}" diff --git a/tasks/create_quota.yml b/tasks/create_quota.yml index b9f7450..4b31295 100644 --- a/tasks/create_quota.yml +++ b/tasks/create_quota.yml @@ -1,5 +1,5 @@ --- -- name: "Processing quotas for project {{ item_quota.name }}" +- name: "Processing quotas for project {{ item_quota.name }} in {{ item_cloud.name }} {{ item_cloud.region_name|default('') }}" command: openstack quota set --"{{ item.key }}" "{{ item.value }}" "{{ item_quota.name }}" environment: OS_CLOUD: "{{ item_cloud.name }}" diff --git a/tasks/create_router.yml b/tasks/create_router.yml index 86bc980..aaf641e 100644 --- a/tasks/create_router.yml +++ b/tasks/create_router.yml @@ -1,5 +1,5 @@ --- -- name: "Processing router {{ item_router.name }} for {{ item_cloud.oscc_cloud|default(item_cloud.name) }}" +- 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) }}" diff --git a/tasks/create_security_group_rule.yml b/tasks/create_security_group_rule.yml index 6722bb7..ae96a82 100644 --- a/tasks/create_security_group_rule.yml +++ b/tasks/create_security_group_rule.yml @@ -1,5 +1,5 @@ --- -- name: "Processing security_group_rule for {{ item_cloud.oscc_cloud|default(item_cloud.name) }}" +- name: "Processing security_group_rule for {{ item_cloud.oscc_cloud|default(item_cloud.name) }} {{ item_cloud.region_name|default('') }}" os_security_group_rule: cloud: "{{ item_cloud.oscc_cloud|default(item_cloud.name) }}" state: "{{ item_security_group_rule.state|default(omit) }}" diff --git a/tasks/create_server.yml b/tasks/create_server.yml index 073620f..ef98e88 100644 --- a/tasks/create_server.yml +++ b/tasks/create_server.yml @@ -2,7 +2,7 @@ - include: generate_keypair.yml when: generate_keypair|bool -- name: "Processing server {{ item_server.name }}" +- name: "Processing server {{ item_server.name }} for {{ item_cloud.oscc_cloud|default(item_cloud.name) }} {{ item_cloud.region_name|default('') }}" os_server: cloud: "{{ item_cloud.oscc_cloud|default(item_cloud.name) }}" state: "{{ item_server.state|default(omit) }}" diff --git a/tasks/create_subnet.yml b/tasks/create_subnet.yml index cd7e9f2..a34f0f0 100644 --- a/tasks/create_subnet.yml +++ b/tasks/create_subnet.yml @@ -1,5 +1,5 @@ --- -- name: "Processing subnet {{ item_subnet.name }} for {{ item_cloud.oscc_cloud|default(item_cloud.name) }}" +- name: "Processing subnet {{ item_subnet.name }} for {{ item_cloud.oscc_cloud|default(item_cloud.name) }} {{ item_cloud.region_name|default('') }}" os_subnet: cloud: "{{ item_cloud.oscc_cloud|default(item_cloud.name) }}" state: "{{ item_subnet.state|default(omit) }}" diff --git a/tasks/create_user.yml b/tasks/create_user.yml index 678d00d..0a89ca7 100644 --- a/tasks/create_user.yml +++ b/tasks/create_user.yml @@ -1,5 +1,5 @@ --- -- name: "Processing user {{ item_user.name }} for {{ item_cloud.oscc_cloud|default(item_cloud.name) }}" +- name: "Processing user {{ item_user.name }} for {{ item_cloud.oscc_cloud|default(item_cloud.name) }} {{ item_cloud.region_name|default('') }}" os_user: cloud: "{{ item_cloud.oscc_cloud|default(item_cloud.name) }}" state: "{{ item_user.state|default(omit) }}" diff --git a/tasks/create_user_role.yml b/tasks/create_user_role.yml index 8e0429b..c4e6c66 100644 --- a/tasks/create_user_role.yml +++ b/tasks/create_user_role.yml @@ -1,5 +1,5 @@ --- -- name: "Processing user role {{ item_user_role.role }} for {{ item_cloud.oscc_cloud|default(item_cloud.name) }}" +- name: "Processing user role {{ item_user_role.role }} for {{ item_cloud.oscc_cloud|default(item_cloud.name) }} {{ item_cloud.region_name|default('') }}" os_user_role: cloud: "{{ item_cloud.oscc_cloud|default(item_cloud.name) }}" state: "{{ item_user_role.state|default(omit) }}" diff --git a/tasks/create_volume.yml b/tasks/create_volume.yml index 16fa971..c40d6f3 100644 --- a/tasks/create_volume.yml +++ b/tasks/create_volume.yml @@ -1,5 +1,5 @@ --- -- name: "Processing volume {{ item_volume.name }} for {{ item_cloud.oscc_cloud|default(item_cloud.name) }}" +- name: "Processing volume {{ item_volume.name }} for {{ item_cloud.oscc_cloud|default(item_cloud.name) }} {{ item_cloud.region_name|default('') }}" os_volume: cloud: "{{ item_cloud.oscc_cloud|default(item_cloud.name) }}" state: "{{ item_volume.state|default(omit) }}"