Re: [ansible-project] Extracting values from YAML into Jinja template for Ansible playbook

2020-07-13 Thread Dick Visser
Should we answer on this list, or on stackoverflow? Or both? On Tue, 14 Jul 2020 at 03:47, ameya agashe wrote: > Here is the link for my question > > > https://stackoverflow.com/questions/62879497/extracting-values-from-yaml-into-jinja-template-for-ansible-playbook > > Regards, > Ameya Agashe >

[ansible-project] Extracting values from YAML into Jinja template for Ansible playbook

2020-07-13 Thread ameya agashe
Here is the link for my question https://stackoverflow.com/questions/62879497/extracting-values-from-yaml-into-jinja-template-for-ansible-playbook Regards, Ameya Agashe -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from thi

[ansible-project] Re: Integrating Microsoft LAPS and ansible

2020-07-13 Thread jbor...@gmail.com
Theres the laps_password https://docs.ansible.com/ansible/latest/plugins/lookup/laps_password.html lookup that you can use to retrieve a password set by LAPS from AD. Unfortunately it requires a few extra bits to be installed on your host like OpenLDAP but it's definitely possible. On Thursday,

Re: [ansible-project] Need help with registered variable

2020-07-13 Thread Vladimir Botka
On Fri, 10 Jul 2020 17:24:05 +0530 Rahul Kumar wrote: > I have a task output like this: > - name: Print Response of status resource > debug: > msg: " {{ result }}" > > ok: [node-3] => { > "msg": " {'msg': u'All items completed', 'changed': False, 'results': > [{'ansible_loop_var': u'it

Re: [ansible-project] Ansible module "template" support for Jinja2 new class "ChainableUndefined"

2020-07-13 Thread Matt Martz
Ansible actually has a feature that predates the jinja2 change that works exactly the same. We already have an AnsibleUndefined that performs the exact same functionality: https://github.com/ansible/ansible/blob/devel/lib/ansible/template/__init__.py#L274 This functionality has been in place sinc

[ansible-project] synchronize same remote directories without ssh using password auth

2020-07-13 Thread Luca 'remix_tj' Lorenzetto
Hello, i'm hitting a hidden requirement of the synchronize module, which is sshpass, if you're using password authentication. I'm running this task to align the content of a dir with another. The entire playbook is runned against a single host, with become: true option set for all the playbook.

[ansible-project] Need to add A record and PRT recored in Cisco switches

2020-07-13 Thread Balayuvaraj Magudapathi
Hey, In my environment i need to add a record and prt record in cisco switches for 800 devices. Some share the docs for this project component Name : network module , cisco Thanks Balayuvaraj -- You received this message because you are subscribed to the Google Groups "Ansible Project"

Re: [ansible-project] Need help with registered variable

2020-07-13 Thread Rahul Kumar
Notice, result is registered with loop ! So wanted to check in case of loop does registered variable contains result of each iteration ? On Mon, 13 Jul 2020 at 16:19, Rahul Kumar wrote: > No even it complains results is not defined ! > > I am not understanding whats wrong here : > Here is the t

Re: [ansible-project] Need help with registered variable

2020-07-13 Thread Rahul Kumar
No even it complains results is not defined ! I am not understanding whats wrong here : Here is the task: - name: print boss debug: msg: " {{ result }}" and output is: ok: [node-1] => { "msg": " {'msg': u'All items completed', 'changed': False, 'results': [{'ansible_loop_var': u'item',

[ansible-project] Ansible 2.9.10 group_vars and delegate_to

2020-07-13 Thread Sergej Pioch
So, my playbooks are finally totally messed up after upgrading to Ansible version 2.9.10. I used a task with delegation inside the playbook to get the hostkey of a network device connection through a bastion host. But this does not work anymore. I learned, that this is due to the removement of a