[ansible-project] Inventory custom script

2021-04-19 Thread Jaime Jaca
I am trying to import an inventory in json from a url with a script but it gives me errors and does not copy it This is the structure of the web { "_meta": { "hostvars": { -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To u

Re: [ansible-project] Inventory custom script

2021-04-19 Thread Antony Stone
On Monday 19 April 2021 at 11:20:27, Jaime Jaca wrote: > I am trying to import an inventory in json from a url with a script but it > gives me errors and does not copy it Please at least tell us exactly what the errors are. Antony. -- These clients are often infected by viruses or other malwar

Re: [ansible-project] How to send ansible tower metrics to prometheus

2021-04-19 Thread Phil Griffiths
Hi Ankit There should be a register option as well? If you use that you get access to the full back catalogue of recordings as well as mine. Regards Phil. On Mon, 22 Mar 2021 at 18:07, phil.gr...@gmail.com wrote: > You don't need a script this can all be done with Ansible - you should be > abl

[ansible-project] Re: Failed to get token for NT AUTHORITY\SYSTEM required for become as a service account or an account without a password

2021-04-19 Thread jbor...@gmail.com
There isn't unfortunately, your security team should hopefully be aware that this doesn't prevent Mimikatz attacks just makes it slightly harder. Once you are an admin it is trivial to give yourself the privileges necessary for Mimikatz to work (psexec -i -s mimikatz.exe). As for Ansible there

[ansible-project] How to use variables to dynamically add vars in playbook

2021-04-19 Thread Ankit
Hello All, I am using Ansible Datadog role and trying to install and configure datadog agents in target servers however, i am stuck at a point where i need to use host variables and update a section

Re: [ansible-project] How to send ansible tower metrics to prometheus

2021-04-19 Thread Ankit
Thanks Phil, i will check it. On Monday, 19 April 2021 at 15:31:07 UTC+5:30 phil.gr...@gmail.com wrote: > Hi Ankit > > There should be a register option as well? If you use that you get access > to the full back catalogue of recordings as well as mine. > > Regards > Phil. > > On Mon, 22 Mar 2021

[ansible-project] How to launch AWX workflows sequentially

2021-04-19 Thread Mike Measel
I have a dynamic inventory that has dynamic groups ( I don't know them ahead of time ) and each group requires a special tunnel be setup and then torn down before/after each groups hosts plays are processed. I thought this would be simple but I have not found a good way. Does an AWX have any meth

Re: [ansible-project] How to launch AWX workflows sequentially

2021-04-19 Thread Alex Wanderley
Hi, Isn't it the default behavior of workflows? (Forgive me if I'm misunderstanding your question...) On Ansible Tower we have a sequential workflow made of 3 jobs/templates and the second and third jobs only start after the first and second have finished: | START | ---> | 1ST JOB | --->

Re: [ansible-project] How to launch AWX workflows sequentially

2021-04-19 Thread Mike Measel
Yes, but that's for whatever hosts are specified.  I need to process several groups thru the workflow - one group at a time. On 4/19/21 10:04 AM, Alex Wanderley wrote: Hi, Isn't it the default behavior of workflows? (Forgive me if I'm misunderstanding your question...) On Ansible Tower we h

[ansible-project] Re: Failed to get token for NT AUTHORITY\SYSTEM required for become as a service account or an account without a password

2021-04-19 Thread vijay varma penumatsa
Thanks for update, just for my understanding, I am able to reboot servers and search updates while running my domain admin account as runas which has Administrative rights. While installing patches only it is giving the error, when it is logging as Administrator user it should run the tasks rig

[ansible-project] The error was: 'unicode object' has no attribute 'stdout'

2021-04-19 Thread Cornelis van Ginkel
Hi All, I have the following in my role: ``` - name: "UPTOM_30 - Determine version from Tomcat file {{ uptom_tomcat_tar_src }}" shell: "echo '{{ uptom_tomcat_tar_src }}' | awk -F '-' '{print $NF}' | sed 's/.tar.gz//g'" register: uptom_new_tomcat_version - name: Debug1

Re: [ansible-project] The error was: 'unicode object' has no attribute 'stdout'

2021-04-19 Thread Brian Coca
'unicode object' leads me to believe you are overwriting the variable with a string value, registered variables are always a dictionary. -- Brian Coca -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and

Re: [ansible-project] The error was: 'unicode object' has no attribute 'stdout'

2021-04-19 Thread Cornelis van Ginkel
Hi Brian, Thanks for the quick response. It will give a number like output, like 9.0.41 So I want to use that to get the full path to the folder. Does that make sense? Op ma 19 apr. 2021 18:36 schreef Brian Coca : > 'unicode object' leads me to believe you are overwriting the variable > with a

[ansible-project] Re: Failed to get token for NT AUTHORITY\SYSTEM required for become as a service account or an account without a password

2021-04-19 Thread jbor...@gmail.com
Updates are a tricky one, they don't allow you to access the internal API when come from a network logon which is why we use become to bypass that limitation. Luckily if you are using the win_updates module there is an option use_scheduled_task [1] option you can set to not use become but a sch

Re: [ansible-project] The error was: 'unicode object' has no attribute 'stdout'

2021-04-19 Thread Brian Coca
yes, but please check you are not setting the variable in other ways, as in my previous message, the error points to the data not being what the register creates. -- -- Brian Coca -- You received this message because you are subscribed to the Google Groups "Ansible Project" group.

Re: [ansible-project] Looping over inventory while reading variables from dict

2021-04-19 Thread Anurag Bhatia
Hello Tim That is really useful information. I think I can make things work that way but essentially you are keeping all variable values within the host inventory, is that understanding correct? I have a requirement data is scattered across different files. Can you please suggest a way where I c

Re: [ansible-project] The error was: 'unicode object' has no attribute 'stdout'

2021-04-19 Thread Cornelis van Ginkel
I think I found the culprit. I am indeed using the same variable name in a shell script before I run the role, so the conflict is there. Thanks fr the responses! With kind regards, Cornelis On Tue, Apr 20, 2021 at 12:25 AM Brian Coca wrote: > yes, but please check you are not setting the vari