Merge "Move dynamic grouping conditional"
This commit is contained in:
@@ -13,12 +13,12 @@
|
|||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
- name: Add {{ inventory_hostname }} to dynamic inventory group
|
- name: Add hosts to dynamic inventory group
|
||||||
add_host:
|
add_host:
|
||||||
group: "{{ dest_group }}"
|
group: "{{ dest_group }}"
|
||||||
name: "{{ item }}"
|
name: "{{ item }}"
|
||||||
with_items: "{{ groups[src_group] }}"
|
with_items: "{{ groups[src_group] }}"
|
||||||
when:
|
when:
|
||||||
- "src_group in groups"
|
- "group_when | default(True)"
|
||||||
tags:
|
tags:
|
||||||
- common-grouping
|
- common-grouping
|
||||||
|
|||||||
@@ -23,8 +23,8 @@
|
|||||||
vars:
|
vars:
|
||||||
src_group: "nova_compute"
|
src_group: "nova_compute"
|
||||||
dest_group: "neutron_l3_agent, neutron_metadata_agent"
|
dest_group: "neutron_l3_agent, neutron_metadata_agent"
|
||||||
when:
|
group_when:
|
||||||
- "neutron_plugin_type == 'ml2.ovs.dvr'"
|
- "neutron_plugin_type == 'ml2.ovs.dvr'"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user