[ansible-project] Re: Optimizing 'gather_facts' response time over networking devices

2021-04-09 Thread jean-christophe manciot
I retried the playbook and I rectify a previous assertion: with '*gather_facts: no*', the *facts are read from the cache* as expected. However, I confirm that with '*gather_facts: yes*', the *facts are always gathered from the remote host, regardless of the cache timeout value.* I also tried

[ansible-project] Optimizing 'gather_facts' response time over networking devices

2021-04-09 Thread jean-christophe manciot
With: - ansible 3.2.0 (pip3) - ansible-base 2.10.7 (pip3) The goal is twofold: - gather the facts *only from the local cache* when the cache is not empty and its timeout has not expired - contact the remote network device *only when* the cache is empty or the timeout has expired I made some te

Re: [ansible-project] Using `remote_user` in `ansible_ssh_common_args` in inventory file

2021-04-09 Thread tariver 16
Thank you for your answer. Yes it works if I set ansible_ssh_user as variable in the inventory file, but for my purpose it's the same as hardcoding it. What I want to do is to share this with my colleagues, so they can also use it without making any changes. You can use this global variable in

Re: [ansible-project] Using `remote_user` in `ansible_ssh_common_args` in inventory file

2021-04-09 Thread Brian Coca
Only if you set ansible_ssh_user previously, the connection information won't be 'recursive' to itself. That said, in future you could use this lookup to get the 'resolved' remote_user for the connection plugin https://github.com/ansible/ansible/pull/74186 -- -- Brian Coca -- You recei

Re: [ansible-project] regex_findall doesn't work for me. What am i doing wrong?

2021-04-09 Thread Dick Visser
On Fri, 9 Apr 2021 at 14:43, Vikram S wrote: > Hi, > > I wrote a script to check if particular IOS version is set as boot > statement. But it doesn't work. What am i doing wrong? > I don't know. What does "it doesn't work" mean in this context? Put differently, what would make you say "it works"

[ansible-project] How can I use docker_secrets in docker_container?

2021-04-09 Thread ansiblehuhn
Hi, is there a way I can use docker_secrets within docker_container? If this is not possible maybe someone could help me with this: I want to configure the initial admin-password of a container. Therefore I can use a mounted file in the container (for example docker secret) or an encrypted strin

[ansible-project] regex_findall doesn't work for me. What am i doing wrong?

2021-04-09 Thread Vikram S
Hi, I wrote a script to check if particular IOS version is set as boot statement. But it doesn't work. What am i doing wrong? name: Gather show boot ios_command: commands: "show boot" register: show_boot debug: msg: "{{ 'show_boot.stdout' | regex_findall('c2960x-universalk9-mz.152-7.E3.b

[ansible-project] Failing dependencies 'ansible-test --docker sanity'

2021-04-09 Thread Petr Klíma
Hello, I am developing new collection for Cisco SMB switches and I am failing to run sanity tests. See https://github.com/ansible-collections/community.ciscosmb/runs/2304480423?check_suite_focus=true Test is complaining about: plugins/module_utils/ciscosmb.py:37:0: traceback: ModuleNotFoundEr

Re: [ansible-project] centralised authentication of linux servers and integrates with google work space

2021-04-09 Thread 'Michael Ströder' via Ansible Project
On 4/9/21 12:25 PM, Siva wrote: > Can we integrate with google workspace using open ldap > and the thing to be noted is they don't want to spend money > Sorry to trouble you bys asking more All the stuff I've mentioned is free software. I don't know whether integration with google workspace works

Re: [ansible-project] centralised authentication of linux servers and integrates with google work space

2021-04-09 Thread Siva
Thanks alot Michael ,Can we integrate with google workspace using open ldap and the thing to be noted is they don't want to spend money Sorry to trouble you bys asking more Best Regards, Sivapriya On Fri, Apr 9, 2021 at 10:37 AM Michael Ströder wrote: > On 4/9/21 10:20 AM, Siva wrote: > > Goodm

Re: [ansible-project] centralised authentication of linux servers and integrates with google work space

2021-04-09 Thread 'Michael Ströder' via Ansible Project
On 4/9/21 10:20 AM, Siva wrote: > Goodmorning .I am new to ansible and also to devops > My organisation wanted me to do centralised authentication of linux servers > ,Vm 's ,vcenter for any employee joins the organisation and they want to > integrate the same on the google workspace Some people w

[ansible-project] centralised authentication of linux servers and integrates with google work space

2021-04-09 Thread Siva
Hi All , Goodmorning .I am new to ansible and also to devops My organisation wanted me to do centralised authentication of linux servers ,Vm 's ,vcenter for any employee joins the organisation and they want to integrate the same on the google workspace Any inputs on this will be a great help for