Simplify group_names variable
As noted in [1] the group_names variable is a top-level variable and doesn't need to be accessed via the hostvars object. [1] https://review.openstack.org/#/c/572861/1/playbooks/remote_puppet_adhoc.yaml Change-Id: Ic895f177019b31da34cdf91a6dd62dc99a649754
This commit is contained in:
parent
0c84fcdb91
commit
5dd32fc501
@ -5,4 +5,4 @@
|
|||||||
- role: puppet
|
- role: puppet
|
||||||
manage_config: True
|
manage_config: True
|
||||||
puppet_reports: none
|
puppet_reports: none
|
||||||
futureparser: "{{ True if 'futureparser' in hostvars[inventory_hostname].group_names else False }}"
|
futureparser: "{{ True if 'futureparser' in group_names else False }}"
|
||||||
|
@ -6,4 +6,4 @@
|
|||||||
- role: puppet
|
- role: puppet
|
||||||
manage_config: True
|
manage_config: True
|
||||||
puppet_reports: none
|
puppet_reports: none
|
||||||
futureparser: "{{ True if 'futureparser' in hostvars[inventory_hostname].group_names else False }}"
|
futureparser: "{{ True if 'futureparser' in group_names else False }}"
|
||||||
|
@ -5,4 +5,4 @@
|
|||||||
- role: puppet
|
- role: puppet
|
||||||
manage_config: True
|
manage_config: True
|
||||||
puppet_reports: none
|
puppet_reports: none
|
||||||
futureparser: "{{ True if 'futureparser' in hostvars[inventory_hostname].group_names else False }}"
|
futureparser: "{{ True if 'futureparser' in group_names else False }}"
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
copy_puppet: False
|
copy_puppet: False
|
||||||
manage_config: True
|
manage_config: True
|
||||||
puppet_reports: none
|
puppet_reports: none
|
||||||
futureparser: "{{ True if 'futureparser' in hostvars[inventory_hostname].group_names else False }}"
|
futureparser: "{{ True if 'futureparser' in group_names else False }}"
|
||||||
- hosts: "git0*:!disabled"
|
- hosts: "git0*:!disabled"
|
||||||
strategy: free
|
strategy: free
|
||||||
gather_facts: true
|
gather_facts: true
|
||||||
@ -25,7 +25,7 @@
|
|||||||
project_config_ref: "{{ hostvars.localhost.gitinfo.after }}"
|
project_config_ref: "{{ hostvars.localhost.gitinfo.after }}"
|
||||||
manage_config: True
|
manage_config: True
|
||||||
puppet_reports: none
|
puppet_reports: none
|
||||||
futureparser: "{{ True if 'futureparser' in hostvars[inventory_hostname].group_names else False }}"
|
futureparser: "{{ True if 'futureparser' in group_names else False }}"
|
||||||
- hosts: "review:!disabled"
|
- hosts: "review:!disabled"
|
||||||
strategy: free
|
strategy: free
|
||||||
gather_facts: true
|
gather_facts: true
|
||||||
@ -36,7 +36,7 @@
|
|||||||
puppet_timeout: 60m
|
puppet_timeout: 60m
|
||||||
manage_config: True
|
manage_config: True
|
||||||
puppet_reports: none
|
puppet_reports: none
|
||||||
futureparser: "{{ True if 'futureparser' in hostvars[inventory_hostname].group_names else False }}"
|
futureparser: "{{ True if 'futureparser' in group_names else False }}"
|
||||||
- hosts: "zuul-scheduler:!disabled"
|
- hosts: "zuul-scheduler:!disabled"
|
||||||
strategy: free
|
strategy: free
|
||||||
gather_facts: true
|
gather_facts: true
|
||||||
@ -47,4 +47,4 @@
|
|||||||
puppet_timeout: 60m
|
puppet_timeout: 60m
|
||||||
manage_config: True
|
manage_config: True
|
||||||
puppet_reports: none
|
puppet_reports: none
|
||||||
futureparser: "{{ True if 'futureparser' in hostvars[inventory_hostname].group_names else False }}"
|
futureparser: "{{ True if 'futureparser' in group_names else False }}"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user