12345678910111213141516171819202122232425262728293031323334 |
- # Copyright 2022 Dell Inc. or its subsidiaries. All Rights Reserved.
- #
- # Licensed under the Apache License, Version 2.0 (the "License");
- # you may not use this file except in compliance with the License.
- # You may obtain a copy of the License at
- #
- # http://www.apache.org/licenses/LICENSE-2.0
- #
- # Unless required by applicable law or agreed to in writing, software
- # distributed under the License is distributed on an "AS IS" BASIS,
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- # See the License for the specific language governing permissions and
- # limitations under the License.
- ---
- - 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
|