Re: [ansible-project] Ansible playbook undefined variable

2023-08-10 Thread Hernan Sal
Thanks a lot Rilindo. It worked like a charm.I keep forgetting that is all python. Thank you Walter for your input as well. Best Hernan El miércoles, 9 de agosto de 2023 a las 17:24:37 UTC-3, Rilindo Foster escribió: > Hi Hernan, > > Your variable is actually a data structure of a list of dicti

Re: [ansible-project] Ansible playbook undefined variable

2023-08-10 Thread 'Rowe, Walter P. (Fed)' via Ansible Project
Are you setting herlit_semaphore? If not, how is it being declared? Walter -- Walter Rowe, Division Chief Infrastructure Services, OISM Mobile: 202.355.4123 On Aug 9, 2023, at 4:05 PM, Hernan Sal wrote: Hi, I'm running an ansible playbook called create_admin_user.yml and I'm getting this error

Re: [ansible-project] Ansible playbook undefined variable

2023-08-09 Thread Rilindo Foster
Hi Hernan, Your variable is actually a data structure of a list of dictionary: admin: - name: 'herlit_semaphore' comment: 'Ultimate User' uid: '1000' - name: 'semaphore' comment: 'Semaphore App User' uid: '1001' If you don’t intend to do loop, you simply reference the item

[ansible-project] Ansible playbook undefined variable

2023-08-09 Thread Hernan Sal
Hi, I'm running an ansible playbook called create_admin_user.yml and I'm getting this error fatal: [172.31.3.117]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: 'herlit_semaphore' is undefined. 'herlit_semaphore' is undefined\n\nThe error appears to b