[ansible-project] Is a file level group possible for multiple inventory files in directory?

2020-03-09 Thread Josef Fortier
I have two different organizations managed in two separate files, with some overlap in roles. I'm currently manually creating groups within each file target hosts in that file (conceptually "organization"). I'd like to have an automatic variable that is constructed by file scope. Is this

Re: [ansible-project] apt-add-repository ppa:ansible/ansible timeout?

2020-03-09 Thread Dick Visser
No idea, but if it does for you for that repo, and it doesn't for other repos, then it's something specific to the repo. On Mon, 9 Mar 2020 at 18:53, Joshua Goldman wrote: > > Is adding the repository timing out for anyone else? > > -- > You received this message because you are subscribed to

Re: [ansible-project] Unexpected parameter type in new Ansible role

2020-03-09 Thread Dick Visser
Hi On Mon, 9 Mar 2020 at 18:48, harry devine wrote: > The main.yml under tasks is as follows: > > - name: Playbook to perform a repo sync from the sat server > hosts: localhost > > tasks: > # Sync all repositories > - name: Get all repositories > foreman_search_facts: >

[ansible-project] apt-add-repository ppa:ansible/ansible timeout?

2020-03-09 Thread Joshua Goldman
Is adding the repository timing out for anyone else? -- 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

[ansible-project] Unexpected parameter type in new Ansible role

2020-03-09 Thread harry devine
I'm trying to create a role that will update Satellite content views using the Foreman/Katello modules. Here's what the role tree looks like: [root@server1 /etc/ansible/roles/foreman_content_views]#tree . ├── defaults │ └── main.yml ├── tasks │ ├── clean_cv.yml │ └── main.yml └── vars

[ansible-project] SSL: DH_KEY_TOO_SMALL in ACI module

2020-03-09 Thread Ben Sikkens
Hi, I ran into an issue after updating to Ansible 2.8.5 (in AWX 9.1.1) This used to work in the previous version (Ansible 2.8.1, AWX 6.0.0.0) I fixed some issues from the python 2 to 3 but this one eludes me. I'm trying here to create a Bridge Domain I can provide extra info tomorrow as the

Re: [ansible-project] file not found

2020-03-09 Thread Stefan Hornburg (Racke)
On 3/9/20 4:36 PM, gefela wrote: > > I am trying to run a playbook and the details come from a file  but it is > giving me an error message > > > ansible-playbook -i inventory junos_config.yml > > PLAY [Juniper SRX configuration compliance checks] > * > > TASK

[ansible-project] file not found

2020-03-09 Thread gefela
I am trying to run a playbook and the details come from a file but it is giving me an error message ansible-playbook -i inventory junos_config.yml PLAY [Juniper SRX configuration compliance checks] * TASK [Syslog server check]

Re: [ansible-project] Unable to substitute variable inside variable

2020-03-09 Thread Sanjay
Thanks, that seems to be working! On Monday, March 9, 2020 at 7:17:30 PM UTC+5:30, Vladimir Botka wrote: > > On Mon, 9 Mar 2020 06:06:39 -0700 (PDT) > Sanjay > wrote: > > > Any idea/comments why this doesn't work? > > Installed aversion - 2.9.0 > > > > Playbook : test.yml > > -- > > -

Re: [ansible-project] Unable to substitute variable inside variable

2020-03-09 Thread Vladimir Botka
On Mon, 9 Mar 2020 06:06:39 -0700 (PDT) Sanjay wrote: > Any idea/comments why this doesn't work? > Installed aversion - 2.9.0 > > Playbook : test.yml > -- > - name: substitute vars > hosts: localhost > gather_facts: False > vars_files: > - "vars.yml" > tasks: > -

[ansible-project] Unable to substitute variable inside variable

2020-03-09 Thread Sanjay
Any idea/comments why this doesn't work? Installed aversion - 2.9.0 Playbook : test.yml - -- - name: substitute vars hosts: localhost gather_facts: False vars_files: - "vars.yml" tasks: - name: print vars debug: msg="{{ vars.a }}" vars.yml a: "{{

Re: [ansible-project] Jinja2 iterate over strings and lists

2020-03-09 Thread Quentin Aveno
Thanks, that's thé filter I looking for. Have a nice nice day ! -- 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] How to get include_vars variable inside Jinja template ?

2020-03-09 Thread Shifa Shaikh
Experts Hi, I have couple of variable files like below: $ cat vars_ip.yml --- 12.1.1.25: TAP1 12.1.1.26: TAP2 11.0.0.26: TAP3 11.0.0.27: TAP4 9.2.2.211: SAT1 9.2.2.212: SAT2 10.7.7.28: SAT3 10.7.7.29: SAT4 9.2.2.213: SAT5 10.7.7.30: SAT6 $ cat vars.yml --- layers: - name: MY_LAYER

[ansible-project] How to use same loop index for two list from variable file in Jinja template

2020-03-09 Thread Shifa Shaikh
I have a variable file like below: 12.1.1.25: TAP1 12.1.1.26: TAP2 11.0.0.26: TAP3 11.0.0.27: TAP4 9.2.2.211: SAT1 9.2.2.212: SAT2 10.7.7.28: SAT3 10.7.7.29: SAT4 layers: - name: MY_LAYER things_prod: - 12.1.1.25 - 12.1.1.26 things_dr: - 11.0.0.26