blob: 6a81dd75a7ec0b2ca3f18d95292862cef2370969 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
- name: Populate template
template: src="{{ item }}" dest="{{ kaas_template_path }}/{{ item | basename | regex_replace('\.j2','') }}" owner=root group=root mode="0644"
register: result
with_first_found:
- paths:
- "{{ role_path }}/templates/"
- "{{ kaas_project_path }}/templates/"
files:
- "{{ tmpl_name }}"
- name: Configure KaaS resources
include_role: name="openshift_resource"
vars:
template: "{{ tmpl_name | basename | regex_replace('\\.j2','') }}"
template_path: "{{ kaas_template_path }}"
project: "{{ kaas_project }}"
recreate: "{{ result | changed | ternary (true, false) }}"
|