Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple group for host #38

Closed
c-dst opened this issue Sep 11, 2019 · 0 comments
Closed

Multiple group for host #38

c-dst opened this issue Sep 11, 2019 · 0 comments

Comments

@c-dst
Copy link

c-dst commented Sep 11, 2019

Hi,
Same way as #32, my host is in multiple group with different rules to merge but I dont want to turn on the global merge config option.

I updated the template in this way to solve my need :
{% set _ = merged.update(firewall_v4_group_rules) %}
{% for group in group_names %}
{% set _ = merged.update( lookup('vars', 'firewall_v4_group_' + group + '_rules', default="" ) ) %}
{% endfor %}

Lookup on the host group an merge var like firewall_v4_group__rules or and empty string if not defined. The "firewall_v4_group_rules stay in place to keep initial feature.

@c-dst c-dst closed this as not planned Won't fix, can't repro, duplicate, stale May 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant