[ansible-project] Re: How to use enable password with ansible

2019-07-03 Thread Ankur Atri
I was able to make it work but now after successful execution, it does not make changes on the end device but result says changes are done. root@NetworkAutomation-2:~# cat telnettest.yml --- - name: Telnet test hosts: cisco gather_facts: False tasks: - telnet: login_prompt:

[ansible-project] How to use enable password with ansible

2019-07-03 Thread Ankur Atri
I am trying to perform telnet which works fine with username & password but i want to find a way to enter enable password. Below example does not work. - name: run show commands hosts: routers gather_facts: False tasks: - telnet: password: cisco prompts: -

Re: [ansible-project] Signature based authentication

2019-07-03 Thread Thomas Renzy
Hey Tariq, One issue to be aware of. When I generated my certificate and keys, it had the start time set for 8 hours ahead of time. I can only imagine it set this because of GMT time and I am US PST. You can check the start time for the cert with the following command: openssl x509 -in (name of

[ansible-project] Do you have an example for use a playbook with Python API ?

2019-07-03 Thread Bruno Selva
I am trying hard to create a simple script to execute a playbook with python from ansible.parsing.dataloader import DataLoader from ansible.vars.manager import VariableManager from ansible.inventory.manager import InventoryManager from ansible.executor.playbook_executor import PlaybookExecutor

[ansible-project] Re: New Ansible releases 2.8.2, 2.7.12, and 2.6.18

2019-07-03 Thread Toshio Kuratomi
One additional note: The Deb builds for the Ansible PPA failed. We're working on getting those built and uploaded but no ETA yet. (Tomorrow is a US holiday so it cuts into the time available to diagnose, fix, and then release those). -Toshoi On Wed, Jul 3, 2019 at 1:56 PM Toshio Kuratomi

[ansible-project] New Ansible releases 2.8.2, 2.7.12, and 2.6.18

2019-07-03 Thread Toshio Kuratomi
Hi all- we're happy to announce that the general release of Ansible 2.8.2, 2.7.12, and 2.6.18 are now available! How do you get it? -- $ pip install ansible==2.8.2 --user or $ pip install ansible==2.7.12 --user or $ pip install ansible==2.6.18 --user The tar.gz of the releases

Re: [ansible-project] Signature based authentication

2019-07-03 Thread Tariq Iqbal
Thanks Tom for all your help. On Tuesday, July 2, 2019 at 4:47:00 PM UTC-5, Thomas Renzy wrote: > > Hi Tariq, > > You generate this key on your Ansible control system. > > Thanks, > Thomas > > > On Tue, Jul 2, 2019 at 1:38 PM Tariq Iqbal > wrote: > >> Hello All, >> >> I am trying to follow this

[ansible-project] Re: Anyone successfully use python to generate a password hash and pass it into a usable variable in a playbook?

2019-07-03 Thread Tony Chia
Have you tried using the password module to generate a random passwd? https://docs.ansible.com/ansible/latest/plugins/lookup/password.html On Tuesday, July 2, 2019 at 7:36:26 PM UTC-7, Paul Shulz wrote: > > Wondering if anyone has tried this or is ansible just > intentionally designed to to

[ansible-project] using different remote_user until success

2019-07-03 Thread william.dossett
I've been struggling with this and googling all morning and getting nowhere fast. I am using aws dynamic inventory python script to get me an inventory of instances that I am going to make some changes to. I need to do this on possibly a large number of accounts. The first account I am

[ansible-project] unable to copy large no.of files using win_copy module

2019-07-03 Thread shyam rpm
Hi, I tried to copy files between network shares on windows machines and the size of the folder is 19GB. After copying 5GB of data getting the following error. *"Exception calling \"Invoke\" with \r\n\"0\" argument(s): \"The running command stopped because the preference variable

[ansible-project] Tasks play-level vs. role-level

2019-07-03 Thread kdt
Task in some play imports or includes role (for the project here roles used in playbook are grabbed from external repositories, not in one repo along with playbook). Within role each item starting with "-name:" line is also called "a task" - as I guess. Please compare with

[ansible-project] Dynamic inventory using VMware vSphere

2019-07-03 Thread Vicente Juan Tomas Monserrat
Hi everyone, We've been using Ansible since v2.1 and using static inventory since then. At v2.7 now. The infra has grown quite a lot and we would like to use dynamic inventory. I tried the configuration as it says here https://docs.ansible.com/ansible/2.7/vmware/vmware_inventory.html and it

[ansible-project] Re: vmdk already exists error

2019-07-03 Thread Raoul
I have found an open issue on Github describing the problem. When setting the same disk size as the template has, everything works fine. See issue: https://github.com/ansible/ansible/issues/1 -- You received this message because you are subscribed to the Google Groups "Ansible Project"

[ansible-project] Re: vmdk already exists error

2019-07-03 Thread Raoul
I have found an open issue on Github describing the problem. When setting the same disk size as the template has, everything works fine. See issue: https://github.com/ansible/ansible/issues/1 On Wednesday, July 3, 2019 at 12:11:38 PM UTC+2, Raoul wrote: > > Hi, > > I am currently trying to

Re: [ansible-project] Failed to find file, with shared vars

2019-07-03 Thread 'Michael Raugh - NOAA Affiliate' via Ansible Project
Sure enough, moving the sitevars into the same playbook with the baseline worked around the problem. So I at least know where the problem is and I have a workaround for now. On Wednesday, July 3, 2019 at 10:29:50 AM UTC-4, Michael Raugh - NOAA Affiliate wrote: > > Thought of that; nope. I

Re: [ansible-project] Failed to find file, with shared vars

2019-07-03 Thread 'Michael Raugh - NOAA Affiliate' via Ansible Project
Thought of that; nope. I even deleted the file and started over, no dice. Also tried backing off the ansible version from 2.8.1 to 2.4.2, and that didn't help. Neither did setting SELinux to Permissive. I have to think it's in the mechanism that retries the sitevars from Git. The latest

Re: [ansible-project] How to insert value of variable in conditional statement in Playbook

2019-07-03 Thread Rakesh Parida
No Matter if "system_ip_mac_details" value is present or not in the "csv_ip_mac_details" am getting the same output every time. Pls suggest On Wednesday, July 3, 2019 at 6:32:53 PM UTC+5:30, Rakesh Parida wrote: > > Hi Matt, > > I am facing one more issue here, iam providing the conditional

Re: [ansible-project] How to insert value of variable in conditional statement in Playbook

2019-07-03 Thread Rakesh Parida
Hi Matt, I am facing one more issue here, iam providing the conditional statemt in my playbook,,, but both are executing even if the conditions is true or false. - name: System_ipaddress_mac_combinations present inside CSV_IP_MAC_DETAILS fact debug: msg : The system_ip-MAC combinations

[ansible-project] firewalld loop through services/ports/sources within zones

2019-07-03 Thread kingfisher77
Hi, we aim for a scenario which seems to be not so easy achievable. We would like to kind of reset/automate the setup of firewalld on CentOS7. With walking through defined zones setting services/ports/sources. What we have so far: FIREWALLD_ZONE_SERVICE: - ZONE: public SERVICES: -

[ansible-project] Re: How to rollback the ansible-playbook tasks ?

2019-07-03 Thread Shivharsh Singh
Hi, Ansible does not have a mechanism to keep track of changes and automatically perform a rollback. However, there are a couple of ways you could use to fulfill your requirement: - *Using blocks and rescue:* Ansible by default stops playbook execution on a task failure. However, It