Skip to content

Commit 89c8ae9

Browse files
update
1 parent a631587 commit 89c8ae9

File tree

3 files changed

+14
-14
lines changed

3 files changed

+14
-14
lines changed

roles/matrix-awx/tasks/backup_server.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,8 @@
9393

9494
- name: Set boolean value to exit playbook
9595
set_fact:
96-
end_playbook: true
96+
awx_end_playbook: true
9797

9898
- name: End playbook if this task list is called.
9999
meta: end_play
100-
when: end_playbook is defined and end_playbook|bool
100+
when: awx_end_playbook is defined and awx_end_playbook|bool

roles/matrix-awx/tasks/set_variables_dimension.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,12 @@
3131
- name: Set final users list if users are defined
3232
set_fact:
3333
awx_dimension_users_final: "{{ awx_dimension_users }}"
34-
when: awx_dimension_users|length > 0
34+
when: awx_dimension_users | length > 0
3535

3636
- name: Set final users list if no users are defined
3737
set_fact:
3838
awx_dimension_users_final: '@dimension:{{ matrix_domain }}'
39-
when: awx_dimension_users|length == 0
39+
when: awx_dimension_users | length == 0
4040

4141
- name: Remove Dimension Users
4242
delegate_to: 127.0.0.1

roles/matrix-awx/tasks/set_variables_element.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@
2323
lineinfile:
2424
path: '{{ awx_cached_matrix_vars }}'
2525
regexp: "^#? *{{ item.key | regex_escape() }}:"
26-
line: "{{ item.key }}: {{ item.value }}"
26+
line: "{{ item.key }}: '{{ item.value }}'"
2727
insertafter: '# Element Settings Start'
2828
with_dict:
29-
'matrix_client_element_welcome_logo': '{{ awx_matrix_client_element_welcome_logo }}'
29+
'matrix_client_element_welcome_logo': "'{{ awx_matrix_client_element_welcome_logo }}'"
3030
when: ( awx_https_string in awx_matrix_client_element_welcome_logo ) and ( awx_matrix_client_element_welcome_logo | trim | length > 0 )
3131

3232
- name: Remove custom logo locally on AWX if not defined
@@ -42,10 +42,10 @@
4242
lineinfile:
4343
path: '{{ awx_cached_matrix_vars }}'
4444
regexp: "^#? *{{ item.key | regex_escape() }}:"
45-
line: "{{ item.key }}: {{ item.value }}"
45+
line: "{{ item.key }}: '{{ item.value }}'"
4646
insertafter: '# Element Settings Start'
4747
with_dict:
48-
'matrix_client_element_welcome_logo_link': '{{ awx_matrix_client_element_welcome_logo_link }}'
48+
'matrix_client_element_welcome_logo_link': "'{{ awx_matrix_client_element_welcome_logo_link }}'"
4949
when: ( awx_https_string in awx_matrix_client_element_welcome_logo_link ) and ( awx_matrix_client_element_welcome_logo_link | trim | length > 0 )
5050

5151
- name: Remove custom logo link locally on AWX if not defined
@@ -61,10 +61,10 @@
6161
lineinfile:
6262
path: '{{ awx_cached_matrix_vars }}'
6363
regexp: "^#? *{{ item.key | regex_escape() }}:"
64-
line: "{{ item.key }}: {{ item.value }}"
64+
line: "{{ item.key }}: '{{ item.value }}'"
6565
insertafter: '# Element Settings Start'
6666
with_dict:
67-
'matrix_client_element_welcome_headline': '{{ awx_matrix_client_element_welcome_headline }}'
67+
'matrix_client_element_welcome_headline': "'{{ awx_matrix_client_element_welcome_headline }}'"
6868
when: awx_matrix_client_element_welcome_headline | trim | length > 0
6969

7070
- name: Remove custom headline locally on AWX if not defined
@@ -80,10 +80,10 @@
8080
lineinfile:
8181
path: '{{ awx_cached_matrix_vars }}'
8282
regexp: "^#? *{{ item.key | regex_escape() }}:"
83-
line: "{{ item.key }}: {{ item.value }}"
83+
line: "{{ item.key }}: '{{ item.value }}'"
8484
insertafter: '# Element Settings Start'
8585
with_dict:
86-
'matrix_client_element_welcome_text': '{{ awx_matrix_client_element_welcome_text }}'
86+
'matrix_client_element_welcome_text': "'{{ awx_matrix_client_element_welcome_text }}'"
8787
when: awx_matrix_client_element_welcome_text | trim | length > 0
8888

8989
- name: Remove custom text locally on AWX if not defined
@@ -99,10 +99,10 @@
9999
lineinfile:
100100
path: '{{ awx_cached_matrix_vars }}'
101101
regexp: "^#? *{{ item.key | regex_escape() }}:"
102-
line: "{{ item.key }}: {{ item.value }}"
102+
line: "{{ item.key }}: '{{ item.value }}'"
103103
insertafter: '# Element Settings Start'
104104
with_dict:
105-
'matrix_client_element_branding_welcomeBackgroundUrl': '{{ matrix_client_element_branding_welcomeBackgroundUrl }}'
105+
'matrix_client_element_branding_welcomeBackgroundUrl': "'{{ matrix_client_element_branding_welcomeBackgroundUrl }}'"
106106
when: ( awx_https_string in matrix_client_element_branding_welcomeBackgroundUrl ) and ( matrix_client_element_branding_welcomeBackgroundUrl | length > 0 )
107107

108108
- name: Save new 'Configure Element' survey.json to the AWX tower, template

0 commit comments

Comments
 (0)