|
23 | 23 | lineinfile: |
24 | 24 | path: '{{ awx_cached_matrix_vars }}' |
25 | 25 | regexp: "^#? *{{ item.key | regex_escape() }}:" |
26 | | - line: "{{ item.key }}: {{ item.value }}" |
| 26 | + line: "{{ item.key }}: '{{ item.value }}'" |
27 | 27 | insertafter: '# Element Settings Start' |
28 | 28 | 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 }}'" |
30 | 30 | when: ( awx_https_string in awx_matrix_client_element_welcome_logo ) and ( awx_matrix_client_element_welcome_logo | trim | length > 0 ) |
31 | 31 |
|
32 | 32 | - name: Remove custom logo locally on AWX if not defined |
|
42 | 42 | lineinfile: |
43 | 43 | path: '{{ awx_cached_matrix_vars }}' |
44 | 44 | regexp: "^#? *{{ item.key | regex_escape() }}:" |
45 | | - line: "{{ item.key }}: {{ item.value }}" |
| 45 | + line: "{{ item.key }}: '{{ item.value }}'" |
46 | 46 | insertafter: '# Element Settings Start' |
47 | 47 | 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 }}'" |
49 | 49 | when: ( awx_https_string in awx_matrix_client_element_welcome_logo_link ) and ( awx_matrix_client_element_welcome_logo_link | trim | length > 0 ) |
50 | 50 |
|
51 | 51 | - name: Remove custom logo link locally on AWX if not defined |
|
61 | 61 | lineinfile: |
62 | 62 | path: '{{ awx_cached_matrix_vars }}' |
63 | 63 | regexp: "^#? *{{ item.key | regex_escape() }}:" |
64 | | - line: "{{ item.key }}: {{ item.value }}" |
| 64 | + line: "{{ item.key }}: '{{ item.value }}'" |
65 | 65 | insertafter: '# Element Settings Start' |
66 | 66 | 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 }}'" |
68 | 68 | when: awx_matrix_client_element_welcome_headline | trim | length > 0 |
69 | 69 |
|
70 | 70 | - name: Remove custom headline locally on AWX if not defined |
|
80 | 80 | lineinfile: |
81 | 81 | path: '{{ awx_cached_matrix_vars }}' |
82 | 82 | regexp: "^#? *{{ item.key | regex_escape() }}:" |
83 | | - line: "{{ item.key }}: {{ item.value }}" |
| 83 | + line: "{{ item.key }}: '{{ item.value }}'" |
84 | 84 | insertafter: '# Element Settings Start' |
85 | 85 | 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 }}'" |
87 | 87 | when: awx_matrix_client_element_welcome_text | trim | length > 0 |
88 | 88 |
|
89 | 89 | - name: Remove custom text locally on AWX if not defined |
|
99 | 99 | lineinfile: |
100 | 100 | path: '{{ awx_cached_matrix_vars }}' |
101 | 101 | regexp: "^#? *{{ item.key | regex_escape() }}:" |
102 | | - line: "{{ item.key }}: {{ item.value }}" |
| 102 | + line: "{{ item.key }}: '{{ item.value }}'" |
103 | 103 | insertafter: '# Element Settings Start' |
104 | 104 | with_dict: |
105 | | - 'matrix_client_element_branding_welcomeBackgroundUrl': '{{ matrix_client_element_branding_welcomeBackgroundUrl }}' |
| 105 | + 'matrix_client_element_branding_welcomeBackgroundUrl': "'{{ matrix_client_element_branding_welcomeBackgroundUrl }}'" |
106 | 106 | when: ( awx_https_string in matrix_client_element_branding_welcomeBackgroundUrl ) and ( matrix_client_element_branding_welcomeBackgroundUrl | length > 0 ) |
107 | 107 |
|
108 | 108 | - name: Save new 'Configure Element' survey.json to the AWX tower, template |
|
0 commit comments