|
@@ -21,20 +21,21 @@
|
|
|
node_selector:
|
|
|
- ""
|
|
|
|
|
|
-- name: Make temp directory for asset config files
|
|
|
+- name: Make temp directory for the web console config files
|
|
|
command: mktemp -d /tmp/console-ansible-XXXXXX
|
|
|
register: mktemp
|
|
|
changed_when: False
|
|
|
|
|
|
-- name: Copy asset config template to temp directory
|
|
|
+- name: Copy the web console config template to temp directory
|
|
|
copy:
|
|
|
src: "{{ __console_files_location }}/{{ item }}"
|
|
|
dest: "{{ mktemp.stdout }}/{{ item }}"
|
|
|
with_items:
|
|
|
- "{{ __console_template_file }}"
|
|
|
+ - "{{ __console_rbac_file }}"
|
|
|
- "{{ __console_config_file }}"
|
|
|
|
|
|
-- name: Update asset config properties
|
|
|
+- name: Update the web console config properties
|
|
|
yedit:
|
|
|
src: "{{ mktemp.stdout }}/{{ __console_config_file }}"
|
|
|
edits:
|
|
@@ -50,7 +51,11 @@
|
|
|
src: "{{ mktemp.stdout }}/{{ __console_config_file }}"
|
|
|
register: config
|
|
|
|
|
|
-- name: Apply template file
|
|
|
+- name: Reconcile with the web console RBAC file
|
|
|
+ shell: >
|
|
|
+ {{ openshift_client_binary }} process -f "{{ mktemp.stdout }}/{{ __console_rbac_file }}" | {{ openshift_client_binary }} auth reconcile -f -
|
|
|
+
|
|
|
+- name: Apply the web console template file
|
|
|
shell: >
|
|
|
{{ openshift_client_binary }} process -f "{{ mktemp.stdout }}/{{ __console_template_file }}"
|
|
|
--param API_SERVER_CONFIG="{{ config['content'] | b64decode }}"
|