make egresspolicy customization less simple

Signed-off-by: Patrick Uiterwijk <patrick@puiterwijk.org>
This commit is contained in:
Patrick Uiterwijk 2019-06-03 15:47:23 +02:00
parent c07c9415a0
commit 6bf7c579c2
2 changed files with 3 additions and 4 deletions

View file

@ -1,3 +1,5 @@
---
allow_fas_db: false
allow_phx2: true
egress_policy_template: egresspolicy.yml

View file

@ -62,10 +62,7 @@
include_role:
name: openshift/object
vars:
objectname: {{ item }}
objectname: "{{ egress_policy_template }}"
template_fullpath: "{{roles_path}}/openshift/project/templates/egresspolicy.yml"
with_first_found:
- "egresspolicy_{{egress_policy_custom}}.yml"
- egresspolicy.yml
tags:
- openshift/egressnetworkpolicy