I'm trying to limit job runs to specific machines. The Ansible inventory in
Tower has the concept of groups within groups, which is convenient, but I
cannot find out how to use that in the "Limit" field during job template
creation to do something more specific than choosing top-level groups.
lookup('env', 'HOME) should give you the home dir of the 'current user
executing ansible'. Also ~ and $HOME should work with the fetch
module.
--
Brian Coca
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and
No, its completely batch, you can try the expect module for interactive
prompts.
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to
for ansible tower questions post at http://support.ansible.com or
email supp...@ansible.com
On Tue, Dec 1, 2015 at 4:31 PM, Nicholas McKinney
wrote:
> I'm trying to limit job runs to specific machines. The Ansible inventory in
> Tower has the concept of groups
Well, I just tried anything and everything I could and it looks like adding
"-c paramiko" fixed it.
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to
Am I missing a flag or setting? I've got "ansible_ssh_private_key_file"
set to the full path to my id_rsa file. Is that all it takes to get
Ansible to use private keys?
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from
The version on my master computer is: OpenSSL 0.9.8zc 15 Oct 2014. I can't
seem to find the version on the the clients, which are switches.
What I don't get is why --ask-pass works with OpenSSH but private keys
don't.
I added this to my ansible.cfg and it made no difference but I'm not sure
Hello Paul,
Cool it works, I didn't know that this was so much easy :) I tried
different ways but not came up with this idea.
Thanks and have a nice day!
BR,
Marcel
2015-12-02 5:12 GMT+01:00 Paul Markham :
> Looks like you need single quote around the extra variable:
>
>
Looks like you need single quote around the extra variable:
ansible-playbook fetch-conf.yml -e '{"h":"hostname"}'
Using key=value also works:
ansible-playbook fetch-conf.yml -e 'h=hostname'
You also need a space after 'name:' on the first line.
--
You received this message because you
What switch are you trying to send commands to?
We have started to incorporate network device support into the module_utils
for connecting to interactive devices over ssh with initial support for IOS
based devices. See here for the IOS shared module support
On Saturday, May 9, 2015 at 5:49:22 AM UTC-4, Ayaz Ahmed Khan wrote:
>
> On Friday, May 8, 2015 at 6:04:35 PM UTC+5, Ayaz Ahmed Khan wrote:
>>
>> Hi
>>
>> When I execute a playbook through the playbook Python API, is there a way
>> to toggle the verbosity of the output? I have enabled logging for
no, indeed it worked as I had hoped, and as Roger and Brian spoke of. By
using
[servers]
name ansible_ssh_host=xx.xx.xx.xx
it worked just fine. Ran into some other problems, but that's a different
post
regards, Richard
On Wednesday, November 25, 2015 at 11:45:25 AM UTC-5, richard kappler
i'm going with 'custom ssh server' that is probably the issue with
most switches.
--
Brian Coca
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to
In 2.0, with debug=1 in ansible.cfg, you should see the exact commands
on the target machine's syslog, but note that not all modules execute
shell commands though and that modules might fail on other lines other
than the shell command
--
Brian Coca
--
You received this message because you are
Actually seemed to be not related to the use of ip. In fact changing it to
use domain didnt execute the callback as the new calling machine wasnt in
the inventory (we set tower to use to use private ips of AWS instances for
inventory)
It was proot settings in the ansible tower settings file we
On Nov 30, 2015 11:48 PM, "Brian Coca" wrote:
>
> My tests included a role and a bunch of debug tasks in 2 plays, all
> worked, what did not have is a task include.
>
> This is probably due to the new 'dynamic' nature of tasks includes in
> 2.0, the same reason those tasks
I think they should 'just work' TM, but this is not a simple one,
having dynamic includes makes this an 'interesting' problem, checking
with other devs trying to figure this out.
--
Brian Coca
--
You received this message because you are subscribed to the Google Groups
"Ansible Project"
Hi again,
Anybody have idea in this case?
Best Regards,
Marcel
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to
Good day. We're new to Ansible so we might be missing something obvious.
We have a playbook that deploys a splunk forwarder to remote machines:
---
- name: deploy splunk forwarder to servers
hosts: servers
tasks:
- name: mkdir /home/engineering/TEAM
file: path=/home/engineering/TEAM
I edited my ansible script to use async mode:
# restart jetty
- name: Restart jetty
shell: sudo /sbin/service jetty restart
when: service_status.stat.exists
async: 300
poll: 0
Now i get the restart and jetty stays up!
On Monday, November 30, 2015 at 5:13:34 PM UTC-5, eric hanzl wrote:
Hello Guys
Here is my ansible task
- name: Firmware path lookup
shell: rpm -ql hp-firmware-"{{ device.stdout }}" | grep '\.scexe'
register: FirmwarePath
- expect:
command: sh "{{ FirmwarePath.stdout }}"
responses:
"Continue (y/N)": 'y'
And it ends up like this.
TASK
Virtualenv worked :)
On Tuesday, December 1, 2015 at 2:10:23 AM UTC+2, Mark Chance wrote:
>
> I have dealt with similar issues.
> To see all the places Python might be loading ansible libraries use:
> import sys
> print (sys.path)
>
> If you want to switch between Ansible versions, I have had the
22 matches
Mail list logo