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
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
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
>
> 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
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
>
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?
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
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.
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: "{{
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
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: *{{
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
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
>>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
>>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
15 matches
Mail list logo