>>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
>>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
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 error is coming.
Act
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 K
Hi,
I 'd like to use the expect plugin to send commands to a configuration soft
that doesn't ask questions, but only waits for instructions.
Here is how work my prog
1. I run the programm in CLI: "loracmd -ns 127.0.0.1"
2. I have no questions and no prompt sign
3. I enter the commands:
ns
set a
Hi
How can I use/configure requirements.yml? I have configured roles for all 3
groups , one role for each group. Inside every role/tasks/main.yml I have
include file
- include: status check playbook.yml
Master playbook is as below:
---
- hosts: groupA
roles:
- main-role/groupa-status-
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: *{{
h
you can add pretask and post task within your master playbook:
---
- hosts: groupA
pre_tasks:
-name:
roles:
- main-role/groupa-status-check
post_tasks:
-name: .
you can also go through this page: "
http://docs.ansible.com/ansible/latest/playbooks_roles.html"; for more
info
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
writte
No its still the same,
- hosts: all
tasks:
- name: "install EPEL and Remi reps"
yum_repository:
name: "{{ item.href }}"
basurl: "{{ item.repo }}"
with_items:
- { href:
"http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm";,
repo: "/etc/yum.re
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: "{{ item
I would like to search/wait for a string in a recently created
file(test_build_201708211712.log) which has timestamp.
-rw-rw-r-- 1 test test 579 Aug 21 16:00 test_build_201708211559.log
-rw-rw-r-- 1 test test 579 Aug 21 17:12 test_build_201708211712.log
How can I achieve this in Ansible?
--
Y
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.
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-2.3.1.
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? 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
> ansibl
Hi Dick,
Thanks for messaging. No I am not having any issue but trying to
understand/gather F5 BIG-IP customer use cases. I work for F5 networks and
was looking for a forum to reach out to the ansible community to see if
there is anything on our product we can improve upon wrt to ansible
cover
>
> 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 ter
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 11:0
Help...
On Monday, August 14, 2017 at 10:52:45 AM UTC-5, Sunil6057 wrote:
>
> Hi
>
> When running playbook i am geting (running Ansible 2.4)
>
> fatal: [X]: FAILED! => {"changed": false, "failed": true, "msg":
> "unable to open shell.
>
> Try host_key .False no use..
>
> need
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 resu
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 mod
yes you can consider this.
but you have to give the full path while including the file otherwise it
may give error:
example:
pcb.yml file
---
- include: /the_env/ce/apa.yml
On Wednesday, August 23, 2017 at 8:06:20 AM UTC+5:30, Narahari 'n' Savitha
wrote:
>
> Friends:
>
> This is my first p
24 matches
Mail list logo