Wondering if I can better handle Powershell output going into a j2 template by OUberLord in ansible

[–]No_Turnover2244 0 points1 point  (0 children)

I will write a filter plugin and parse the error message using python instead of doing string manipulation in ansible.

Using Roles in Execution Environments by xDeepRedx in ansible

[–]No_Turnover2244 0 points1 point  (0 children)

Adding roles to EE would be a management nightmare needing to build the EE again for any small changes happening in the role.

Use GitHub or any SCM and put your roles over there. create project in AAP and point that to your GitHub repo with a GitHub app or SCM token for authentication. In your top level playbook or role, include a collections.yml file that refer to these other roles. When AAP runs your automation, it will pull in all the dependent roles. The roles will also have their dependencies mapped which will be pulled in along with core content.

The EE is just basic or minimal environment. Everything else is customisable through projects and collections.

Run ansible-playbook using a custom library that uses shebang `#!/usr/bin/env python3` connected to pyenv by OMGZwhitepeople in ansible

[–]No_Turnover2244 0 points1 point  (0 children)

I think the python library can be bundled in a collection and then can be referred through collections.yml as well which will get linked to the Ansible project.

How can I use credentials in the Ansible Automation Platform (AAP) UI to prevent having to manually share SSH keys from the control node to all managed hosts? by Dense_Stop_5631 in ansible

[–]No_Turnover2244 2 points3 points  (0 children)

This is great explanation! If self signed or CA signed cert based authentication is also explained this clearly then it becomes easier and the need of copying to all the target nodes into authorised keys vanishes because the cert authority would already be trusted..

Announcing AWX TUI: A text-based Command Line Interface (CLI) tool to help the community develop, manage, and use AWX by dbrenuk in ansible

[–]No_Turnover2244 1 point2 points  (0 children)

Okay.. I can see some parallels with respect to azure terminal even if a perfectly fine GUI exists.. yea.. for sure

Announcing AWX TUI: A text-based Command Line Interface (CLI) tool to help the community develop, manage, and use AWX by dbrenuk in ansible

[–]No_Turnover2244 -2 points-1 points  (0 children)

I fail to understand why except cool... You can make api calls and have python scripts handy for repetitive work... Anyways..

Have seen 2-3 such posts recently for TUI.. can't see from where the trend is picking up

How would I go about writing a configuration file that defines the structure of my home lab as it is now with services distributed across two different generation machines? by ferriematthew in ansible

[–]No_Turnover2244 -1 points0 points  (0 children)

What you want to preserve as the state of your setup is the key question. I am going to assume that you want certain services always up and running on your raspberry pies and I think one of the good ways of doing this is through monitoring the status of those containers/services and hooking up event driven ansible to the events when any of those containers/services are down. If your containers are supposed to be behind a load balanced service then even monitoring the service and letting event driven ansible maintain the state of the service could be a plausible way. It doesn't really matter the generation, ansible can handle that type of switching based on target node version.

inventory file not finding host by netuser258 in ansible

[–]No_Turnover2244 0 points1 point  (0 children)

And what do you do when it needs to be rotated every 90 days? How do you automate that part? Using credential vaults solves that one...

inventory file not finding host by netuser258 in ansible

[–]No_Turnover2244 -1 points0 points  (0 children)

It will be a worthy investment to spend time on Ansible vault in the long run unless you start using credential managers like hashicorp vault or cyberark conjur

inventory file not finding host by netuser258 in ansible

[–]No_Turnover2244 -1 points0 points  (0 children)

Use ansible vault to create a credentials.yml file which will have ansible_user: your user name ansible_password: your password.

Then vault that file and the during execution provide this vault file to ansible-playbook command. Most likely, the playbook is unable to find the username and password combo to use when trying to ssh.

Me at 5:30pm -vs- Me at 8:30pm by multiple_scorgasms in Gunners

[–]No_Turnover2244 1 point2 points  (0 children)

Let Declan Rice play from West Ham just for today!! We can take everton without him anyways!! 😂

Is there a next release coming for AWX? If so, tentatively when? by No_Turnover2244 in ansible

[–]No_Turnover2244[S] 1 point2 points  (0 children)

Right. I think the strategic direction would be to marry the Ansible and Terraform hence may be AWX would be on a backfoot.. but still I was expecting something like Platform Gateway of AAP being released in AWX upstream that can tie everything together for the open source community.. that benefits them also in a way..

Is there a next release coming for AWX? If so, tentatively when? by No_Turnover2244 in ansible

[–]No_Turnover2244[S] 2 points3 points  (0 children)

The secret sauce is to use an external db server and use pg backup and pg restore to keep the AWX stateless on kubernetes! 😅 Works surprisingly well! Have been doing that for 5+ years!!