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

2015-10-14 Thread Шалыгин Константин
ansible_fqdn = host facter_fqdn = host.domain I use this last two years, it's comfortable for me. -- 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-pro

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

2015-10-14 Thread Toby Corkindale
I was able to use the inventory_hostname as a workaround in templates, but I'm not the only one here, and other people in the company are likely to continue to use the ansible_fqdn as it's the widely-documented way to get the FQDN - and does work in some places. I eventually tracked the problem wi

[ansible-project] Ansible playbook

2015-10-14 Thread GBANE FETIGUE
Hi guys any ideas about this error 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] ***

Re: [ansible-project] Re: Ansible 1.9.4 has been released

2015-10-14 Thread Bill Nottingham
Philippe Jandot (pjan...@kds.com) said: > The Launchpad PPA hasn't been updated as well any timeframe for this ? In progress, should be up shortly. Sorry, the jenkins job for this errored in a way that didn't actually cause the job to fail out with an error notification. Thanks for the notice! B

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

2015-10-14 Thread Toshio Kuratomi
>From perusal of the code I believe that the command module is your best bet at this point. Neither the get_url nor the uri module support ntlm. The recipes I've found for enabling python code to use ntlm require the python-ntlm library. Since we don't want to require extra libraries to do basic

Re: [ansible-project] csvlookups referencing variables

2015-10-14 Thread Nick Wolff
Still can't figure this out if anyone has any ideas. Thanks, Nick Wolff On Tuesday, September 22, 2015 at 12:25:21 PM UTC-4, Nick Wolff wrote: > > On Tuesday, September 22, 2015 at 10:56:34 AM UTC-4, Brian Coca wrote: >> >> the 2nd one is right, but you need a space: >> >> '{{ lookup("csvfile"

[ansible-project] Loop over dictionary and list

2015-10-14 Thread philipadams930
Hello, I am struggling to come up the syntax for the following: /vars/main.yml interface: - eth1 - eth2 details: - { ip_address: 1.1.1.1, otherdetails:. } - { ip_address: 2.2.2.2, otherdetails:.. } I want a loop that can take interface: and then details: and insert into a /templat

Re: [ansible-project] Running ansilbe on the intel edison.

2015-10-14 Thread Brian Coca
It seems that the python on the edison is missing the syslog library, this has been part of core python for a long time and expected to be there. Even so, I patched ansible to allow for this 'custom' setup, so as of commit c57200925f7fc3c77da9a0b671ef7328cad15d8d this should not error out anymore.

[ansible-project] Running ansilbe on the intel edison.

2015-10-14 Thread repoto
Hi, I'm trying to deploy to my app to an intel edison, and I'm getting a syslog error. I've asked the question here: http://stackoverflow.com/questions/33074882/importerror-no-module-named-syslog-ansible-edison/33090953#33090953 I'd like to know which python file, from the ansible repo, is run

[ansible-project] Re: Ansible 1.9.4 has been released

2015-10-14 Thread Philippe Jandot
Hi James, The Launchpad PPA hasn't been updated as well any timeframe for this ? Cheers Philippe On Saturday, 10 October 2015 04:33:13 UTC+2, James Cammarata wrote: > > Hi all, 1.9.4 has been released, and is now available. > > This release addresses several bugs, most notably those related to

Re: [ansible-project] Send payload using uri module

2015-10-14 Thread Sharwari Phadnis
--- - hosts: localhost tasks: - uri: url: https://url/to/the/dest/server method: POST user: admin password: default force_basic_auth: yes body: '{JSON payload}' body_format: json register: pay

Re: [ansible-project] Send payload using uri module

2015-10-14 Thread Sharwari Phadnis
--- - hosts: localhost tasks: - uri: url: https://url/to/the/dest/server method: POST user: admin password: default force_basic_auth: yes body: '{JSON payload}' body_format: json register:

Re: [ansible-project] Send payload using uri module

2015-10-14 Thread David Karban
Hi, please send that one task here, so we can see what you are actually doing, it will help to understand, thanks. David Karban Linux server specialist/Specialista na správu linuxových serverů www.karban.eu 2015-10-14 13:05 GMT+02:00 Sharwari Phadnis : > So, to send payload body parameter coul

Re: [ansible-project] Send payload using uri module

2015-10-14 Thread Sharwari Phadnis
So, to send payload body parameter could be used? On Wednesday, October 14, 2015 at 4:33:29 PM UTC+5:30, David Karban wrote: > > Hi, > > this error usually means problem in indentation, body souhld be two spaces > deeper I guess. But cannot be sure, as you have not sent your task here :). > > D

Re: [ansible-project] Send payload using uri module

2015-10-14 Thread David Karban
Hi, this error usually means problem in indentation, body souhld be two spaces deeper I guess. But cannot be sure, as you have not sent your task here :). David Karban Linux server specialist/Specialista na správu linuxových serverů www.karban.eu 2015-10-14 12:59 GMT+02:00 Sharwari Phadnis : >

[ansible-project] Send payload using uri module

2015-10-14 Thread Sharwari Phadnis
I am trying to *send a payload(in JSON)* to a destination mentioned in the URL. For this purpose I am using* uri module and POST method*. How can I send it using uri module? I am using ansible* version 1.9.1* and when I tried to use *body parameter* for uri module it shows the following error:*

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

2015-10-14 Thread Dick Davies
Picking through the code it seems to be whatever socket.getfqdn() returns in Python. side suggestion: why are you needing the hostname? could you just use the inventory name instead in whatever template etc. you're having issues with? On 14 October 2015 at 00:51, Toby Corkindale wrote: > On W