RE: [ansible-project] Re: cannot login to cisco switch using ansible

2018-08-08 Thread Michael Ikram
I was able to fix the permission on Ubuntu, now back to the original error: ansible all -i , -c network_cli -u -m ios_command_1.yml [WARNING] Ansible is in a world writable directory (/etc/ansible), ignoring it as an ansible.cfg source. 10.11.32.100 | FAILED! => { "msg": " [WARNING] Ansible

Re: [ansible-project] default filter on with_items with from_json

2018-08-08 Thread Kai Stian Olstad
On 08.08.2018 22:10, rjwagner@gmail.com wrote: I'm running into the infamous issue where with_items isn't skipped if when evaluates to false (https://github.com/ansible/ansible/issues/13791). That said, I'm at loss as to how to workaround my particular issue. It's not that infamous,

[ansible-project] default filter on with_items with from_json

2018-08-08 Thread rjwagner . dba
I'm running into the infamous issue where with_items isn't skipped if when evaluates to false (https://github.com/ansible/ansible/issues/13791). That said, I'm at loss as to how to workaround my particular issue. Consider these two tasks (simplified for discussion): #> cat b.yml --- - hosts:

[ansible-project] Re: cannot login to cisco switch using ansible

2018-08-08 Thread Ajay
This might solve your issue: https://medium.com/@andrewhowdencom/the-curious-case-of-sudden-ansible-build-failures-eef1cf9ad1d0 If it doesn't, can you also post the file permissions and content of ansible.cfg and ios_facts.yml? Regards, Ajay On Wednesday, August 8, 2018 at 8:32:19 AM UTC-7,

[ansible-project] Re: ansible-pull configuration

2018-08-08 Thread Balz . aschwanden
Hi Sumit We're using a wrapper around ansible-pull. We use it mainly for clients but we've a step-by-step guide you might find helpful: https://github.com/ANTS-Framework/ants Regards Balz Am Mittwoch, 8. August 2018 08:03:45 UTC+2 schrieb SUMIT SAHAY: > > > Hi All, > > I am trying to setup the

[ansible-project] cannot login to cisco switch using ansible

2018-08-08 Thread Michael Sawires
test@TESTVM:/etc/ansible$ ansible-playbook ios_facts.yml [WARNING] Ansible is in a world writable directory (/etc/ansible), ignoring it as an ansible.cfg source. PLAY [Collect IOS Device Facts]

[ansible-project] Re: WinRM Connection Error

2018-08-08 Thread Scott Garcia
Same error is raised regardless of hostname, even if I put an erroneous one. Event log shows an alert to an ntlm authentication but I can't find anything as far as a successful login I'm targeting Server 2012R2. Ran a clean install and still run into the issue On Tuesday, August 7, 2018 at

Re: [ansible-project] ansible-pull configuration

2018-08-08 Thread SUMIT SAHAY
Hi Pshem, Thanks for your reply, Could you please provide me the step wise process for this or any documents on this. I am trying to get this but getting error like below ansible-pull -U https://github.com/sumitsahay-mca/jenkins-ansible -k user_management_test1.yml Starting Ansible Pull at

Re: [ansible-project] ansible-pull configuration

2018-08-08 Thread Pshem Kowalczyk
Hi, Ansible in pull mode is basically the same as regular ansible-playbook. The only difference is that you have to supply a repo URL from which the playbook and the roles are to be downloaded. The same directory structure works with both modes. If you're using ansible-pull to hydrate

Re: [ansible-project] Accessing Ansible magic variables in python

2018-08-08 Thread Kai Stian Olstad
On 08.08.2018 12:12, Sayed Anisul wrote: How can I access Ansible magic variables like {{ playbook_dir }} in the python source code ? can someone please help with a code snippet? I might have better luck asking this question in the Anisble developer list. -- Kai Stian Olstad -- You

[ansible-project] Accessing Ansible magic variables in python

2018-08-08 Thread Sayed Anisul
Hello How can I access Ansible magic variables like {{ playbook_dir }} in the python source code ? can someone please help with a code snippet? Thank you -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and

[ansible-project] RHEL Ansible exam

2018-08-08 Thread jme
Hello All, I'm not really sure if is it the right post, but I've a question about the RHEL Ansible exam. I've been to the exam twice and I didn't pass both of them. The second time I thought it was good because all my tests were correct from my point of view. (Well, I didn't reboot the VM to

[ansible-project] Re: Need help with win_package [msi file with TRANSFORMS]

2018-08-08 Thread 'J Hawkesworth' via Ansible Project
Try putting all the arguments on one line perhaps? I don't think 'arguments' takes a list, just a string: *- name: win_package: path: C:\tmp\The msi package.msi arguments: /passive TRANSFORMS='"Group Policy Deployment.mst"' state: present* MSIs seem to have different command

Re: [ansible-project] Speeding up very large playbooks

2018-08-08 Thread 'J Hawkesworth' via Ansible Project
Also, consider pre-generating the configuration you need so there's less need to template at runtime. As well as (hopefully) speeding things up a bit, you can examine or even validate the configuration you are intending to apply before actually applying it to your devices. Hope this helps, Jon

[ansible-project] Question: Python module/API support in Ansible on HPE NonStop

2018-08-08 Thread Moon Dragon
SUMMARY We use Ansible from Debian to HPE NonStop. HPE NonStop have some Python restrictions noted later. The goal is to find out if any of the unsupported Python modules/APIs are used by Ansible. COMPONENT NAME Python on managed system - HPE NonStop ANSIBLE VERSION $ ansible --version

[ansible-project] Need help with win_package [msi file with TRANSFORMS]

2018-08-08 Thread Julien
Hello, I have some trouble with win_package module, i'm trying to install a msi package with a deployment file, so i've wrote this task: *- name: win_package: path: C:\tmp\The msi package.msi arguments: - /passive - TRANSFORMS='"Group Policy Deployment.mst"'

[ansible-project] ansible-pull configuration

2018-08-08 Thread SUMIT SAHAY
Hi All, I am trying to setup the ansible pull based on my vm server. Is there any step-wise documentation for this? Regards Sumit Sahay 7044112109 -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop