Re: [ansible-project] question on single playbook or roles?

2023-05-12 Thread Kosala Atapattu
If this is the only thing you're planning on doing with Ansible, I would go for a single playbook. In my repository, I have roles for enter_maintenance_mode and exit_maintenance_mode, since that function is used in multiple contexts. In my environment rather than performing a SSH to ESXi and run e

Re: [ansible-project] ansible_vault

2023-05-12 Thread Narmada Karthika
cool, thanks On Thursday, May 11, 2023 at 11:03:12 PM UTC-7 Dick Visser wrote: > git ignore > > On Fri, 12 May 2023 at 01:24, Narmada Karthika wrote: > >> I am using ansible vault and I had groupvars folder created which has >> encrypted password file in it, as groups_vars file should be in th

Re: [ansible-project] question on single playbook or roles?

2023-05-12 Thread 'Rowe, Walter P. (Fed)' via Ansible Project
Yes, that was me, LOL. Even a single playbook can be "parameterized" to use variables you supply via command line or a vars file. That offers reuse. Walter -- Walter Rowe, Division Chief Infrastructure Services, OISM Mobile: 202.355.4123 On May 12, 2023, at 11:54 AM, Kevin Knox wrote: Hmmm. M

Re: [ansible-project] question on single playbook or roles?

2023-05-12 Thread Kevin Knox
Hmmm. My reply did not post. Maybe I replied to the user? Anyway, my vote is to consider "roles" to be an enhancement. I have to be very certain I'm going to reuse the role before I will create it. If I'm not sure, then I call the creation of a role "gold plating" and unnecessary. So, I will cr

[ansible-project] Re: win_shell cmd parsing domain\usernmame issue

2023-05-12 Thread Kevin Knox
I have never done WMI through Ansible. My role does not require it of me. That said, it looks like you are running a script already installed on the target box. If that's correct, can you output the exact value of the $account variable? I believe that would tell you what your input variable nee

[ansible-project] Module no longer supplying default values for variables

2023-05-12 Thread Kevin Knox
On 5/10 @ 12:11 P.M. my AWX instance suddenly changed its own behavior. I can find no changes anywhere in the system. A job that had run hundreds of times successfully every time suddenly started failing 100% of the time. The cause of failure is that 2 variables for which the module supplies de