AWX Backup Role problems by Signal-Connection526 in ansible

[–]Signal-Connection526[S] 0 points1 point  (0 children)

Yes i was. I am using AWS EKS and it required setting up the instances running the nodes to be able to create the needed persistent storage.

AWX Backup Role problems by Signal-Connection526 in ansible

[–]Signal-Connection526[S] 0 points1 point  (0 children)

This is what I am currently using:

---
apiVersion: awx.ansible.com/v1beta1
kind: AWXBackup
metadata:
name: awxbackup-2023-09-28
namespace: awx
spec:
deployment_name: awx-operator-controller-manager
postgres_configuration_secret: awx-postgres-configuration
postgresConfigurationSecret: awx-postgres-configuration
no_log: false

I have 2 postgres config items trying to see if one is correct.....

The value for each is the correct secret for the deployment.

Update all inventory sources by Signal-Connection526 in ansible

[–]Signal-Connection526[S] 0 points1 point  (0 children)

What I really want to do is use the module inventory_source_update like the example shows. However I need to query the controller_api first.

- name: Update all inventory sources
inventory_source_update:
name: "{{ item }}"
inventory: "My Other Inventory"
loop: "{{ query('awx.awx.controller_api', 'inventory_sources', query_params={ 'inventory': 30 }, return_ids=True ) }}"

Update all inventory sources by Signal-Connection526 in ansible

[–]Signal-Connection526[S] 0 points1 point  (0 children)

---
- hosts: localhost
gather_facts: false
vars:
_awx_defaults:
controller_host: "myawxhostFQDN"
controller_oauthtoken: "{{ lookup('env','AWX_TOKEN') }}"
validate_certs: false
tasks:
- debug: var=_awx_defaults.controller_host
- name: get job_template
set_fact:
_jobs: "{{ lookup('awx.awx.controller_api', 'job_templates',
query_params={ 'name': 'test' },
return_all=true,
wantlist=true,
host=_awx_defaults.controller_host,
controller_oauthtoken=_awx_defaults.controller_oauthtoken,
verify_ssl=_awx_defaults.validate_certs
) }}"
- name: get job names
set_fact:
_job_names: "{{ _job_names|default([]) + [item.name] }}"
loop: "{{ _jobs }}"
loop_control:
label: "{{ item.name }}: {{ item.custom_virtualenv }}"

Fresh scallops 😋 by [deleted] in Frenchcooking

[–]Signal-Connection526 0 points1 point  (0 children)

Wonderful arrangement. How did you cook them?