[ansible-project] Integration Ansible tower with Cisco Identity Services Engine(ISE)

2019-05-09 Thread rajthecomputerguy
Hi Team, How to integrate Ansible tower with Cisco Identity Services Engine(ISE). thanks, Pushparaj -- 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 ansible-

Re: [ansible-project] Integration Ansible tower with Cisco Identity Services Engine(ISE)

2019-05-09 Thread Jonathan Lozada De La Matta
What do you mean by integrate? Jonathan Lozada De La Matta on mobile From: ansible-project@googlegroups.com on behalf of rajthecomputerguy Sent: Thursday, May 9, 2019 7:46 AM To: Ansible Project Subject: [ansible-project] Integration Ansible tower with Cisco Ide

[ansible-project] Re: Integration Ansible tower with Cisco Identity Services Engine(ISE)

2019-05-09 Thread rajthecomputerguy
On Thursday, May 9, 2019 at 5:16:41 PM UTC+5:30, rajthecomputerguy wrote: > > Hi Team, > > How to integrate Ansible tower with Cisco Identity Services Engine(ISE). > > thanks, > Pushparaj > -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To

Re: [ansible-project] Integration Ansible tower with Cisco Identity Services Engine(ISE)

2019-05-09 Thread rajthecomputerguy
For authentication purpose like TACAS On Thursday, May 9, 2019 at 5:18:14 PM UTC+5:30, Jonathan Lozada De La Matta wrote: > > What do you mean by integrate? > > Jonathan Lozada De La Matta on mobile > > -- > *From:* ansible...@googlegroups.com on behalf of > rajt

Re: [ansible-project] 'gcp_compute_disk' is not a valid attribute for a Play

2019-05-09 Thread gottumukkala srija
Hi, Please find the code in plain text format. --- - name: Create an instance hosts: localhost connection: local gather_facts: no vars: project: Ansible automation auth_kind: serviceaccount service_account_file: /home/srija_2495/ansible/test/ansible-auto.json zone

Re: [ansible-project] Integration Ansible tower with Cisco Identity Services Engine(ISE)

2019-05-09 Thread Jonathan Lozada De La Matta
look at the docs https://docs.ansible.com/ansible-tower/latest/html/administration/ent_auth.html#tacacs-authentication-settings Jonathan Lozada De La Matta on mobile From: ansible-project@googlegroups.com on behalf of rajthecomputerguy Sent: Thursday, May 9, 20

[ansible-project] How to synchronize the tasks after a block-rescue is executed?

2019-05-09 Thread Nathan Swartz
I'm having an issue with the behavior of a block-rescue section. When there is a failure, the target that failed will execute its tasks independently from the rest of the targets. For most of the playbook it's not an issue but certain tasks need to be synchronized because some of the target's s

[ansible-project] Serial failure, fail remaining hosts

2019-05-09 Thread Ryan Belgrave
I have a playbook that is using serial: 1 to perform rolling updates to 1 host at a time. Sometimes one host will fail which stops the whole play. However this seems to only fail one host, not all the remaining hosts. Is it possible to get all the remaining hosts to fail as well so I can reru

[ansible-project] Need assistance using SSH keys and Ansible

2019-05-09 Thread Michael Woods
Hello. I'm attempting to connect via Ansible to a remote linux based server. When I attempt: ansible all -m ping -u I receive the following errors: *X.X.X.X | UNREACHABLE! => {* *"changed": false, * *"msg": "Failed to connect to the host via ssh: @x.x.x.x: Permission denied (public

Re: [ansible-project] how to get the total failed count using ansible

2019-05-09 Thread Bubunia Patra
Thanks for your help. Actually I am already doing that as you suggested. What I need is as follows: 1. Shell Script of ansible role -> exit 1 for certain condition for m nodes for example 2. Shell Script of ansible role -> exit 2 for another condition for n nodes for example Both 1 and 2 ar

Re: [ansible-project] $PATH with shell is different to manual ssh

2019-05-09 Thread Adam E
I deal with a lot of legacy systems that don't always have great path defaults for working with Ansible. I ended up putting the following at the top of my main playbook to add some common locations to the path if they were not present. Might help in your case if you can't easily modify the s

[ansible-project] Check a var with 'meta noop'?

2019-05-09 Thread Guy Matz
Hi! I have some ansible code to run a bunch of checks on a system to verify its compliance, and would like to check the kernel against an expected version. I was hoping this would work: - name: versions | Check kernel against expected meta: noop failed_when: false changed_when: ansible_ker

[ansible-project] Linebreak Ansible Filters

2019-05-09 Thread Ron Gebauer
Hi, I want to fix the Ansible Linter issue "*[204]* Lines should be no longer than 160 chars". But how I can linebreak filters? local_filters_in_templates_list: "{{ local_filters_in_templates.files | map(attribute='path') | map('regex_replace','^(.*)/') | map('regex_replace','.j2$') | list }}

[ansible-project] Ansible nested variable regex search

2019-05-09 Thread Srikanth Ethiraj
How do we do a wildcard search with ansible nested variable? test: name: address: zipcode: 12345 Ansible nested variable - {{ test[name][addre*].zipcode }} -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscr

[ansible-project] Help with ovirt_vms module

2019-05-09 Thread Robert
Hey everyone. I am working on a role that will delete VM's from RHV and remove their entries from satelite and AD. The challenge I have is that I need to pass the current host into the name field without doing a loop. Right now my task called destroyvm.yml looks like this: - task to unregister fr

Re: [ansible-project] Help with ovirt_vms module

2019-05-09 Thread Jonathan Lozada De La Matta
Robert, checkout this out for examples https://github.com/oVirt/ovirt-ansible-vm-infra/blob/master/tasks/main.yml. I been using it for what you describe but, basically you have to pass a dictionary of the VM's you want to remove and the automation does everything else, with a loop and what not. O

Re: [ansible-project] Host File as a command line variable

2019-05-09 Thread Kai Stian Olstad
On 06.05.2019 13:15, John Andrew wrote: Can i do this in my hosts/inventory file? Also, can i pass a host group in command line -e? [env1] vm1 ansible_host=vm001 vm2 ansible_host=vm002 [env2] vm1 ansible_host=vm888 vm2 ansible_host=vm999 I want to use the same synonym host name in my playbook

Re: [ansible-project] Help with ovirt_vms module

2019-05-09 Thread Robert
Thanks I will definitely check it out. On Thu, May 9, 2019 at 1:47 PM Jonathan Lozada De La Matta < jloza...@redhat.com> wrote: > Robert, > > checkout this out for examples > https://github.com/oVirt/ovirt-ansible-vm-infra/blob/master/tasks/main.yml. > I been using it for what you describe but, b

[ansible-project] vars_prompt within a role

2019-05-09 Thread Nicholas Britton
I am working on a project that will be mostly api based running locally and attaching to different environments via the api (uri module) My plan was to create a role for each type of call that will be made, that way playbooks can be created to use any series of roles. The problem i am running

Re: [ansible-project] vars_prompt within a role

2019-05-09 Thread Brian Coca
vars_prompt is only available at play, you can however use `pause` and register user input. -- -- 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

Re: [ansible-project] vars_prompt within a role

2019-05-09 Thread Nicholas Britton
Is that pause option available within a role? Do you have some examples of that you would be willing to share? On Thursday, May 9, 2019 at 2:42:15 PM UTC-5, Brian Coca wrote: > > vars_prompt is only available at play, you can however use `pause` and > register user input. > > > -- >

Re: [ansible-project] vars_prompt within a role

2019-05-09 Thread Matt Martz
The pause module documentation has examples for use Since it is a module, a role can execute it: https://docs.ansible.com/ansible/latest/modules/pause_module.html On Thu, May 9, 2019 at 3:07 PM Nicholas Britton wrote: > Is that pause option available within a role? Do you have some examples

[ansible-project] setup module fails sometimes

2019-05-09 Thread Todd Sampson
When I run a playbook, sometimes a target gets in a mode where the setup module fails. Other times it runs just fine. Can anyone give me any ideas of what might be going on? Kindof looks like: https://github.com/ansible/ansible/issues/48859 If I run with ansible all -m setup --limit sundowner

Re: [ansible-project] $PATH with shell is different to manual ssh

2019-05-09 Thread Matthew Davis
Ah yes that works. Thanks! And for those who are wondering, I found a way to emulate the non-interactive environment. Just run commands via ssh *inline*. e.g. ssh centos@10.1.1.2 ./yourCommand here Regards, Matt On Friday, May 10, 2019 at 1:42:51 AM UTC+10, Adam E wrote: > > I deal with a

[ansible-project] json filter

2019-05-09 Thread Nicholas Britton
I have been trying to work with the filter for json responces but i am not having much luck. I can print out a line of intrest, but i am not able to iteriate over the other objects in the response when i try to loop through it. Here is the response i get from the uri call : TASK [debug var

[ansible-project] Pass a variable in "vars_file" to "with_items" from command prompt as part of "extra-vars"

2019-05-09 Thread Anuradha Gangu
SUMMARY My main objective is, I want to create a playbook with one task which will take list of docker images and list of hosts and then run one image on one host respectively or run list of images on one of host list supplied. To make it clear on understanding consider below declaration ho

[ansible-project] Pass a variable in "vars_file" to "with_items" from command prompt as part of "extra-vars"

2019-05-09 Thread Anuradha Gangu
My main objective is, I want to create a playbook with one task which will take list of docker images and list of hosts and then run one image on one host respectively or run list of images on one of host list supplied. To make it clear on understanding consider below declaration hostImageLi

[ansible-project] Pass a variable in "vars_file" to "with_items" from command prompt as part of "extra-vars"

2019-05-09 Thread Anuradha Gangu
My main objective is, I want to create a playbook with one task which will take list of docker images and list of hosts and then run one image on one host respectively or run list of images on one of host list supplied. To make it clear on understanding consider below declaration hostImageList

[ansible-project] Pass a variable in "vars_file" to "with_items" from command prompt as part of "extra-vars"

2019-05-09 Thread Anuradha Gangu
My main objective is, I want to create a playbook with one task which will take list of docker images and list of hosts and then run one image on one host respectively or run list of images on one of host list supplied. To make it clear on understanding consider below declaration hostImageList