[ansible-project] setting variables inside a loop

2017-05-07 Thread Pshem Kowalczyk
Hi, I think I'm missing something obvious, so please point me in the right direction (ansible 2.3). - name: load and run services include_role: name: "resource_{{ item.resource }}" vars: resource: "{{ item }}" with_items: - "{{ services }}" How do I set the var ('resource')

Re: [ansible-project] trying to pass variable to hosts

2017-05-07 Thread Dick Davies
Those variables are set on localhost , not kfkahost0. Why don't you just put your kafka host in a group and use group_vars? On 7 May 2017 at 20:41, wrote: > I am trying to pass a variables to the hosts in a play > > - name: include vars > hosts: localhost >

[ansible-project] Re: ansible error HTTPSConnectionPool

2017-05-07 Thread Jordan Borean
This looks like your WinRM listener isn't configured properly or something is blocking your Ansible host from connecting over that port. You can verify what listeners are online by running this command on your Windows host winrm enumerate winrm/config/listener You should see a listener that

[ansible-project] trying to pass variable to hosts

2017-05-07 Thread madhan0618
I am trying to pass a variables to the hosts in a play - name: include vars hosts: localhost connection: local tasks: - include_vars: dir: '../group_vars' depth: 1 - name: debug hosts: localhost connection: local tasks: - debug: msg="{{ kfkahost0 }}" - name:

Re: [ansible-project] Using multiple machine credentials when running a job template in Tower

2017-05-07 Thread Matt Martz
For tower questions and support please utilize https://access.redhat.com/products/ansible-tower-red-hat This mailing list is for the open source ansible project. On Sun, May 7, 2017 at 11:38 AM Listing wrote: > Hi, > > When running a job template in Ansible-Tower I notice

[ansible-project] Using multiple machine credentials when running a job template in Tower

2017-05-07 Thread Listing
Hi, When running a job template in Ansible-Tower I notice that I can only select one credential per job run. I have many machines in my inventory with different credentials and occasionally I would like to connect with passwords instead of private keys. I can get this to work just perfectly