[ansible-project] Re: `ansible_host` parameter doesn't apply to some host

2015-10-13 Thread Wee Sritippho
Thanks! ansible_ssh_host works. เมื่อ วันอังคารที่ 13 ตุลาคม ค.ศ. 2015 0 นาฬิกา 04 นาที 05 วินาที UTC+7, Markus Ellers เขียนว่า: > > Try using ansible_ssh_host instead: > > vm2 ansible_ssh_host=192.168.104.102 > > > On Monday, 12 October 2015 15:14:03 UTC+2, Wee Sritippho wrote: >> >> I'm rea

Re: [ansible-project] ansible_fqdn only contains the hostname

2015-10-13 Thread Toby Corkindale
On Wed, 14 Oct 2015 at 02:05 Brian Coca wrote: > so the fqdn gets set first by trying to do reverse dns, which would > not use that /etc/hosts entry, if that fails it falls back to using > the gethostname function which does not guarantee a fully qualified > domain name. > > run 'hostname' on the

[ansible-project] ansible.runner ask-pass?

2015-10-13 Thread Michael Bogucki
Hi Everyone, I'm attempting to use the ansible api to query a bunch of servers (programmatically) . I'm running into an issue where all of my servers require a MFA-authentication+passcode. Is there a way I can have my python/ansible script prompt me for the password? Obviously in a playbook

[ansible-project] issue #11996 (include_vars overrides subsequent role's vars/main.yml)

2015-10-13 Thread Dan Stillman
Can one of the developers please comment on #11996 (https://github.com/ansible/ansible/issues/11996)? Again, this was acknowledged as a bug by abadger in [1]. It had been fixed in 2.0, but then regressed again (as expected [2]). As I note in the GitHub thread, the current behavior makes role v

Re: [ansible-project] Re: Ansible Failed to Run because of SSH

2015-10-13 Thread Mauricio Tavares
On Tue, Oct 13, 2015 at 3:06 PM, GBANE FETIGUE wrote: > Still not working > You might want to elaborate. > > On Tuesday, October 13, 2015 at 12:49:41 PM UTC-4, Andrey Fesenko wrote: >> >> On Tuesday, October 13, 2015 at 5:33:45 PM UTC+3, GBANE FETIGUE wrote: >>> >>> Hey Guys I am trying to

[ansible-project] Re: Ansible Failed to Run because of SSH

2015-10-13 Thread GBANE FETIGUE
Still not working On Tuesday, October 13, 2015 at 12:49:41 PM UTC-4, Andrey Fesenko wrote: > > On Tuesday, October 13, 2015 at 5:33:45 PM UTC+3, GBANE FETIGUE wrote: >> >> Hey Guys I am trying to run that playbook but for some reason it's not >> running >> >> fatal: [prodstatus0] => SSH E

[ansible-project] Re: Create GCE instances msg: Unexpected response: {}

2015-10-13 Thread Anatoliy Kovalenko
Any ideas or help would be very much appreciated! can't resolve it by ourselves On Friday, October 9, 2015 at 4:19:25 PM UTC+3, Anatoliy Kovalenko wrote: > > I have the same issue. I use a gce_module of ansible which uses > apache-libcloud. When I try to run a google instance, I get an error -

[ansible-project] Re: Adding dict key + value

2015-10-13 Thread Guy Knights
Apologies, 'the car' should be 'the var', in case it's not obvious. On Friday, October 9, 2015 at 2:41:10 PM UTC-7, Guy Knights wrote: > > I'm trying to add a new key to an existing dictionary but I'm having some > trouble. I have this set_fact task: > > - set_fact: > ha.listeners.backends[it

[ansible-project] Re: Ansible Failed to Run because of SSH

2015-10-13 Thread Andrey Fesenko
On Tuesday, October 13, 2015 at 5:33:45 PM UTC+3, GBANE FETIGUE wrote: > > Hey Guys I am trying to run that playbook but for some reason it's not > running > > fatal: [prodstatus0] => SSH Error: Permission denied (publickey). > > See http://docs.ansible.com/ansible/intro_getting_started.html

Re: [ansible-project] DIFFERENCES BETWEEN ANSIBLE 1.9.X and 2.X

2015-10-13 Thread James Cammarata
Hi Alejandro, To answer your second question first, we did (Ansible, Inc. and the community). As for people using it, based on our user surveys we know about 10% of our users run from source, so that is a pretty good amount of people running devel (which will be 2.0 today). Ideally, your playbook

[ansible-project] DIFFERENCES BETWEEN ANSIBLE 1.9.X and 2.X

2015-10-13 Thread Alejandro Comisario
Hi, despite trying to look for them, i wanted to know from a : * people who uses it * people who developed it what are the most important differences ( and why should i make all my roles/playbooks to work ) between ansible 1.9.X and 2.x ! thanks so much for the responses in advance ! best regar

Re: [ansible-project] ansible_fqdn only contains the hostname

2015-10-13 Thread Brian Coca
so the fqdn gets set first by trying to do reverse dns, which would not use that /etc/hosts entry, if that fails it falls back to using the gethostname function which does not guarantee a fully qualified domain name. run 'hostname' on the command line, you should see the same output. -- Brian

[ansible-project] Something like include_vars but for playbooks

2015-10-13 Thread Diego Lagos
Hello to all, I need to choose between two variables file depending on an external parameter. E.g in a task file - include_vars: jboss_5.yml when: "{{ my_app_version | version_compare('8', '=') }}" - include_vars: jboss_7.yml when: "{{ my_app_version | version_compare('10', '=') }}" This

[ansible-project] Ansible Failed to Run because of SSH

2015-10-13 Thread GBANE FETIGUE
Hey Guys I am trying to run that playbook but for some reason it's not running root@ip-172-16-20-180:/var/ lib/jenkins/jobs/build-cs-utils/workspace/playbooks# ansible-playbook -i inventory/prod deploy_system_status.yml Enter the version you want to deploy: PLAY [Deploy to status servers] *

[ansible-project] Ansible v1.9 fails to get_url when auth type is not basic (ntlm

2015-10-13 Thread Jon Detert
I want to download a file from Microsoft's Visual Studio Team Foundation Server 2013 (aka TFS). I haven't been able to do so via the get_url module. I think the problem is that the TFS doesn't support 'basic' authentication, and maybe only NTLM authentication, whereas get_url doesn't seem to

[ansible-project] loop advice

2015-10-13 Thread philipadams930
Hello, I have a scenario where I have the vars/main.yml /vars/main.yml --- a_port: - Ethernet1 - Ethernet2 device_info: - { host: toDeviceA, ip_address: 192.168.1.1 } - { host: toDeviceB, ip_address: 192.168.2.1 } I want to be able to populate a template file /templates/test.j2 interf

[ansible-project] Loop Advice

2015-10-13 Thread philipadams930
Hello, I have a scenario where I have the vars/main.yml /vars/main.yml --- a_port: - Ethernet1 - Ethernet2 device_info: - { host: toDeviceA, ip_address: 192.168.1.1 } - { host: toDeviceB, ip_address: 192.168.2.1 } I want to be able to populate a template file /templates/test.j2 interf

[ansible-project] Re: Ansible 1.9.4 CERTIFICATE_VERIFY_FAILED when connecting to Windows Server

2015-10-13 Thread J Hawkesworth
Just wondering if the callback plugin is actually getting loaded. You have callback_plugins = /callback_plugins/fix-ssl.py configured but that would be an unusual location if you intended an absolute path. I think you need to configure a full path to the folder, not the name of a file for ca