[ansible-project] how to export dynamic inventory list to some readable format ?

2019-09-30 Thread Ajay Chitnis
I am able to get dynamic inventory in GCP , can i know is there any method to filter ( as hostname and IP only ) and export to some txt format ? thanx Ajax -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and

[ansible-project] Re: F5 BIG-IP automation use-case in Public Clouds

2019-09-30 Thread Ajayrash
Hi Payal, I am also working on BIGIP for GCP . currently facing an issue with the problem that find the "newly added" node ip and move to pool using ansible. can you help me in this case ? On Monday, August 21, 2017 at 11:54:56 PM UTC+5:30, Payal Singh wrote: > > Hello Ansible Users, I am p

[ansible-project] AIX O/S version detection problems in Ansible 2.8

2019-09-30 Thread Daniel Delin
Hi, Noticed that a few of our playbooks failed to run on AIX after trying to move from 2.7.10 to 2.8.4 I´ve tracked it down to handling of the ansible_distribution_major_version fact. *We include variables in the playbooks like this:* - name: Include OP5 varibles. include_vars: "{{ item

[ansible-project] Administrator password parsing error while using run as

2019-09-30 Thread Manish Kumar
Hi All, I am getting error while using below playbook . Any idea how it can be achieved . --- - name: install Disribution Server gather_facts: no hosts: win vars_prompt: - name: "Password" prompt: "Enter password" private: yes tasks: - name: Install services sc

[ansible-project] Problems with junos_command rpcs

2019-09-30 Thread treyd
Hello, I am having some trouble using the `junos_command` with the rpcs option. I am trying to get the configuration from my router in xml format while using the 'display inheritance' option (to resolve groups and interface ranges), but it looks like none of my attributes are being sent: My t

[ansible-project] Re: How to deploy apps through ansible using Hostname instead of IP if the System is in DHCP

2019-09-30 Thread treyd
You can use hostnames in an ansible inventory without a problem. However, your DHCP server is responsible for creating DNS entries for DHCP hosts (supported by some routers and dhcp systems, look for a "register hostname with DNS" option) On Monday, September 23, 2019 at 5:15:28 PM UTC-4, Raje

Re: [ansible-project] How to use variables from one task in another task

2019-09-30 Thread Srinivas Naram
Hi Kai, I have been trying various ways to get my playbook working by using hostvars. Here are some of the ways I have tied, with no luck *Trial1* : when: {{ hostvars['hostname1]['ansible_facts']['distribution']}} == "CentOS" *Trial2*: when: ansible_facts['hostname1']['distribution'] == "CentO

Re: [ansible-project] How to use variables from one task in another task

2019-09-30 Thread Vladimir Botka
On Mon, 30 Sep 2019 20:03:25 +0530 Srinivas Naram wrote: > *Trial1* : > when: {{hostvars['hostname1]['ansible_facts']['distribution']}} == "CentOS" Try this one when: "hostvars['hostname1']['ansible_facts']['distribution'] == 'CentOS'" -- You received this message because you are subscribed

Re: [ansible-project] AIX O/S version detection problems in Ansible 2.8

2019-09-30 Thread Kai Stian Olstad
On 30.09.2019 13:35, Daniel Delin wrote: > *If I check the fact cache file it looks like this on both 2.7.10 and > 2.8.4, which seems correct:* > > "ansible_distribution": "AIX", > * "ansible_distribution_major_version": "5", * > "ansible_distribution_release": "3", > "ansible_dist

Re: [ansible-project] Administrator password parsing error while using run as

2019-09-30 Thread Kai Stian Olstad
On 30.09.2019 14:46, Manish Kumar wrote: > [WARNING]: Could not match supplied host pattern, ignoring: win > > > PLAY [install Disribution Server] > ** > > skipping: no hosts matched You have no host or group called win in your inventory. -- Kai

Re: [ansible-project] Administrator password parsing error while using run as

2019-09-30 Thread Mauricio Tavares
On Mon, Sep 30, 2019 at 1:08 PM Kai Stian Olstad wrote: > > On 30.09.2019 14:46, Manish Kumar wrote: > > [WARNING]: Could not match supplied host pattern, ignoring: win > > > > > > PLAY [install Disribution Server] > > ** > > > > skipping: no hosts mat

Re: [ansible-project] Administrator password parsing error while using run as

2019-09-30 Thread Mark Anthony Garcia
I think it's the spelling of your inventory in the playboook. You posted inventry.yml instead of inventory.yml, I assume. Mark On Mon, Sep 30, 2019, 7:28 PM Mauricio Tavares wrote: > On Mon, Sep 30, 2019 at 1:08 PM Kai Stian Olstad > wrote: > > > > On 30.09.2019 14:46, Manish Kumar wrote: > >

Re: [ansible-project] Re: Problem with a sh installation

2019-09-30 Thread Javier Esparza
Here are my 3 questions that i have to respons when i want to install my scanner I find the module Expects but i dont find so much about that, i had tried to implement it, but i get a error. heres is my code: [image: ErrorAnsible2.PNG] here comes the error, i disbloqued the first line of the qu

[ansible-project] Tie a token to a template(Ansible)

2019-09-30 Thread innate new
Hello, I have a requirement to call an ANSIBLE Job template endpoint from external application, but would like to restrict the the access of the token to a specific Job template only. My ID has access to many templates and I would like have the token restricted to only one of them. Is it pos

Re: [ansible-project] Re: Problem with a sh installation

2019-09-30 Thread Kai Stian Olstad
On 30.09.2019 22:40, Javier Esparza wrote: > Here are my 3 questions that i have to respons when i want to install my > scanner > I find the module Expects but i dont find so much about that, i had tried > to implement it, but i get a error. > > heres is my code: > > [image: ErrorAnsible2.PNG] >

Re: [ansible-project] Re: Problem with a sh installation

2019-09-30 Thread Javier Esparza
Is correct what i have write? -- 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-project+unsubscr...@googlegroups.com. To view this discussion on the web

Re: [ansible-project] Re: Problem with a sh installation

2019-09-30 Thread Kai Stian Olstad
On 30.09.2019 23:41, Javier Esparza wrote: > i tried that but with the same anser > > [image: ErrorAnsible4.PNG] Please don't use images, it's impossible to comment on. You need to look closer, I did not have dashes nor Questions in my task. Just copy inn my task and it will work. -- Kai Stia

Re: [ansible-project] Re: Problem with a sh installation

2019-09-30 Thread Javier Esparza
Sorry my friend here comes de code. - name: Ejecutamos el script de instalacion del scanner expect: command: /tmp/uld/install-scanner.sh response: Questions: - "Press Enter to continue or q and then Enter to quit.:" : "\n"

[ansible-project] Issues with ansible file system mount.

2019-09-30 Thread Karthick Thanigaimani
Hi, We are having an issue with one of our components where in the file system says not available even though the device is available (via Ansible). The instance is spinned up and via ansible we set the facts like - set_fact:    device: /dev/nvme2n1  when: nvmedev.stat.exists == TrueThen attach /