[ansible-project] Re: Non Standard SSH Login

2017-08-22 Thread Lupe Silva
Thanks, Soniya and Kai!!! I was not aware of the expect module. It was what I was looking for. On Tuesday, August 22, 2017 at 2:40:24 AM UTC-6, Soniya panwar wrote: > > >>Any other ideas on how to get ansible to do a "screen scrape/expect" on > the login process? > > Yes, you can use expect

[ansible-project] nesting of inventory file and include mechanisms

2017-08-22 Thread Narahari 'n' Savitha
Friends: This is my first post, so kindly excuse me if anything I post is not a correct understanding. Thank your for your time and attention to begin with. Consider this folder and file structure the_env/ ├── ce │ ├── apa.yml │ └── cp │ └── pcb.yml └── coh.yml The expected end

Re: [ansible-project] Plugins and roles

2017-08-22 Thread Pshem Kowalczyk
Hi, I don't think there's an easy way of passing an array, the params is just a string that gets parsed in the plugin. I ended up writing my own modules (instead of plugins) for functions that required multiple parameters (or dict/list parameters). kind regards Pshem On Wed, 23 Aug 2017 at

Re: [ansible-project] Plugins and roles

2017-08-22 Thread Stiv Ostenberg
> > Thanks for your help, Kai. Couldn't have done it alone. I am now able > run the plugin using: > - set_fact: contents2="{{ lookup('prospectors', 'Base.yaml' ) }}" Question: What would be the correct syntax to send an array of files to > load? Plugin code appears to loop through (for

[ansible-project] Re: ERROR! Unexpected Exception: No module named jinja2.exceptions

2017-08-22 Thread Colin L
Edit: issue was resolved by removing jinja2 through pip, and removing pip all together. Then installing jinja2 through easy_install. On Tuesday, August 22, 2017 at 11:31:53 AM UTC-6, Colin L wrote: > > Hello, > > I am pretty new to the linux world and have been tasked with learning >

Re: [ansible-project] Ansible role dependcies/requirements.yml

2017-08-22 Thread Shez Malik
Thanks Soniya. Actually there are three playbooks which are required to be checked out from subversion and play after every role called in master playbook. Every role has status check play book in it. So if I use post tasks as a method as you said, means after every role there will be post tasks?

[ansible-project] ERROR! Unexpected Exception: No module named jinja2.exceptions

2017-08-22 Thread Colin L
Hello, I am pretty new to the linux world and have been tasked with learning ansible and setting it up in our environment. Version info: RHEL: 6.9 Python: 2.6.6 Ansible: 2.3.1 I have intalled it via YUM, and confirmed that it exists on the system: Host: rpm -qa | grep ansible

[ansible-project] Re: How to call roles & specify tags for those roles

2017-08-22 Thread Anfield
Good question Mike, no requirement, just learning this incase it comes up in the cert. exam. Based on that link from the docs I still dont know why you would call a role with tags >> >> -- You received this message because you are subscribed to the Google Groups "Ansible Project" group.

Re: [ansible-project] with_items loops saying item undefined even if its present in parameter

2017-08-22 Thread Kai Stian Olstad
On 22. aug. 2017 16:55, Sameer Modak wrote: No its still the same, That's as expected, you with_items indentation is exactly the same as your previous mail. - hosts: all tasks: - name: "install EPEL and Remi reps" yum_repository: name: "{{ item.href }}" basurl: "{{

[ansible-project] Re: Win custom modules don't work after update to 2.3.1/2.3.2. How to proceed?

2017-08-22 Thread 'J Hawkesworth' via Ansible Project
So the code that executes windows modules was changed between 2.2. and 2.3. Unfortunately this made debugging a bit more difficult (but gave speed advantages and paved the way for other useful changes I believe). If you can update to latest devel a more detailed developer guide has been

[ansible-project] Pass Ansible variable to remote host

2017-08-22 Thread Mladen Stankovic
Hi, I am trying to pass a variable defined in Ansible host to a remote host, using lookup plugin *native hashi_vault*, but play returns an error that variable is not defined. The same variable returns expected value on the localhost but not on the remote host. Folowing command was used: *{{

[ansible-project] Win custom modules don't work after update to 2.3.1/2.3.2. How to proceed?

2017-08-22 Thread bernard . landon
Hi there! I have a number of custom windows modules for Ansible working fine in 2.2. I updated today from 2.3.2. and none of these are working anymore... I saw the same behavior in 2.3.1. I'm thinking the new "windows pipelining" might be the cause. I tried to troubleshoot further. Using the

Re: [ansible-project] failing to connect through ssh

2017-08-22 Thread Dick Visser
Hi On 22 August 2017 at 08:34, chandana gcp wrote: > > Hi Dick > > Thanks a lot for your reply Dick. I tied the same steps as you have > suggested in the link, still the error is coming and i have also tried > running the playbook as user rather than root, but still

[ansible-project] Re: Non Standard SSH Login

2017-08-22 Thread Soniya panwar
>>Any other ideas on how to get ansible to do a "screen scrape/expect" on the login process? Yes, you can use expect module. You could just run it on local host and use the ssh as the command. Example: - host: localhost connection: local tasks: - expect: command: ssh

[ansible-project] Re: Non Standard SSH Login

2017-08-22 Thread Soniya panwar
>>Any other ideas on how to get ansible to do a "screen scrape/expect" on the login process? Yes, you can use expect module. You could just run it on local host and use the ssh as the command. Example: - host: localhost connection: local tasks: - expect: command: ssh