12345678910111213141516171819202122232425262728293031323334 |
- ---
- - name: Convert logo to base64
- shell: >
- set -o pipefail && \
- echo -n "data:image/png;base64,$(cat {{ omnia_logo_path }} | base64 | tr -d '\r\n')" > {{ logo_txt_path }}
- changed_when: false
- - name: Fetch logo output
- command: cat {{ logo_txt_path }}
- register: logo_base64
- changed_when: false
- - name: Configure AWX logo to Omnia
- command: awx --conf.host http://{{ awx_cluster_ip.stdout }}:{{ awx_port }} --conf.username admin --conf.password {{ awx_admin_password.stdout }} settings modify CUSTOM_LOGO "{{ logo_base64.stdout }}"
- changed_when: false
- - name: Configure AWX login info
- command: awx --conf.host http://{{ awx_cluster_ip.stdout }}:{{ awx_port }} --conf.username admin --conf.password {{ awx_admin_password.stdout }} settings modify CUSTOM_LOGIN_INFO "{{ awx_login_info }}"
- changed_when: false
|