Re: [ansible-project] How to capture module_args in a variable

2020-11-04 Thread Abhijeet Kasurde
Hi Shreya, I am afraid that I am not aware of anything like this. On Thu, Nov 5, 2020 at 12:21 PM Shreya Bhardwaj wrote: > Any Updates on this please? > > Thanks, > Shreya Bhardwaj > > On Tuesday, November 3, 2020 at 12:56:56 PM UTC+5:30 Shreya Bhardwaj wrote: > >> Sure. >> >> When I run a play

Re: [ansible-project] command module

2020-11-04 Thread Stefan Hornburg (Racke)
On 11/5/20 7:50 AM, Shreya Bhardwaj wrote: > Hello Everyone, > > I'm using the command module to run a few commands. > I'm using the "creates" feature of the module as a check so that re running > of command can be prevented, but it isn't > creating the file in the first place. > > what could be

Re: [ansible-project] How to capture module_args in a variable

2020-11-04 Thread Shreya Bhardwaj
Any Updates on this please? Thanks, Shreya Bhardwaj On Tuesday, November 3, 2020 at 12:56:56 PM UTC+5:30 Shreya Bhardwaj wrote: > Sure. > > When I run a playbook, the output I get on the shell includes something > like: > > "ansible_facts": { > "discovered_interpreter_python": "/usr/b

[ansible-project] command module

2020-11-04 Thread Shreya Bhardwaj
Hello Everyone, I'm using the command module to run a few commands. I'm using the "creates" feature of the module as a check so that re running of command can be prevented, but it isn't creating the file in the first place. what could be the possible reason of it? Thanks -- You received thi

[ansible-project] Ansible-2.10.3 released: quick fix for installation issue

2020-11-04 Thread Toshio Kuratomi
Greetings all, Yesterday's release of Ansible-2.10.2 contained some output from running tests which amounted to a 30% increase in the size of the Ansible tarball. The size ended up doubling the time necessary to install ansible using pip. The Ansible-2.10.3 release removes the test output to bri

[ansible-project] Re: How to provide a [item1, item2] list as argument using ini format.

2020-11-04 Thread AIXTools
Wish I could edit - INI format (not int) On Wednesday, November 4, 2020 at 8:41:06 PM UTC+1 AIXTools wrote: > In ANSIBLE.CFG, using int format I need to add an argument such as: > > interpreter_python_fallback = ["/opt/bin/python3.6", "python3", > "python3.7", "python3.6", "python3.5", "python2.

[ansible-project] How to provide a [item1, item2] list as argument using ini format.

2020-11-04 Thread AIXTools
In ANSIBLE.CFG, using int format I need to add an argument such as: interpreter_python_fallback = ["/opt/bin/python3.6", "python3", "python3.7", "python3.6", "python3.5", "python2.7", "python2.6", "python", "/opt/freeware/bin/python", "/opt/bin/python3"] I have been told that the [ ] form is no

Re: [ansible-project] Re: Ansible automation for SAP - Issue and Best practices

2020-11-04 Thread Dick Visser
On Wed, 4 Nov 2020 at 11:44, Pratheek P wrote: > > Thank you. Is there a way we can use non-root user and carry out > administrative tasks in Ansible system? Not sure what you mean. Very generally speaking one should not be able to do administrative tasks as a non-root user. What do you mean by

Re: [ansible-project] Ansible converts dictionary to string while it should not.

2020-11-04 Thread Niek
Thank you for the quick response Felix, I have filed a bug in the repository. On Wednesday, 4 November 2020 at 15:22:50 UTC+1 Felix Fontein wrote: > Hi, > > > I'm having trouble with the cisco.mso.mso_schema module (Doc Page > > < > https://docs.ansible.com/ansible/latest/collections/cisco/mso/

Re: [ansible-project] Ansible converts dictionary to string while it should not.

2020-11-04 Thread 'Felix Fontein' via Ansible Project
Hi, > I'm having trouble with the cisco.mso.mso_schema module (Doc Page > ). > > I can't get the first example to work and I think I know why, but I > don't know if I can solve it. So let m

[ansible-project] Ansible converts dictionary to string while it should not.

2020-11-04 Thread Niek
Hi, I'm having trouble with the cisco.mso.mso_schema module (Doc Page ). I can't get the first example to work and I think I know why, but I don't know if I can solve it. So let me explain

Re: [ansible-project] Re: Ansible automation for SAP - Issue and Best practices

2020-11-04 Thread Pratheek P
Thank you. Is there a way we can use non-root user and carry out administrative tasks in Ansible system? Also, what are the best practices for using Ansible in SAP? On Wednesday, October 28, 2020 at 3:13:56 PM UTC+5:30 dick@geant.org wrote: > > https://docs.ansible.com/ansible/latest/user_

Re: [ansible-project] IP List Contain

2020-11-04 Thread Vladimir Botka
On Tue, 3 Nov 2020 14:00:49 -0800 (PST) "colli...@gmail.com" wrote: > vars: > ips: [1.1.1.1,2.2.2.2] > > tasks: > ... > when tacacs.stdout[0] contains ips The next option is Jinja2 test *in* https://jinja.palletsprojects.com/en/master/templates/#in when: tacacs.stdout.0 is in(ips)