|
|
|
|
@ -25,27 +25,6 @@
|
|
|
|
|
tags:
|
|
|
|
|
- awx
|
|
|
|
|
|
|
|
|
|
- name: "Get awx admin password from k8s secret object"
|
|
|
|
|
become: yes
|
|
|
|
|
kubernetes.core.k8s_info:
|
|
|
|
|
api_version: v1
|
|
|
|
|
kind: Secret
|
|
|
|
|
name: awx-admin-password
|
|
|
|
|
namespace: operator-awx
|
|
|
|
|
register: awx_admin_creds
|
|
|
|
|
when:
|
|
|
|
|
- inventory_hostname == groups['kube_control_plane'][0]
|
|
|
|
|
tags:
|
|
|
|
|
- awx
|
|
|
|
|
|
|
|
|
|
- name: "Define some VARs"
|
|
|
|
|
set_fact:
|
|
|
|
|
awx_admin_password: '{{ ( awx_admin_creds.resources | first ).data.password | b64decode }}'
|
|
|
|
|
when:
|
|
|
|
|
- inventory_hostname == groups['kube_control_plane'][0]
|
|
|
|
|
tags:
|
|
|
|
|
- awx
|
|
|
|
|
|
|
|
|
|
- name: "Authenticating with awx server"
|
|
|
|
|
delegate_to: localhost
|
|
|
|
|
uri:
|
|
|
|
|
|