[ansible-project] Re: Variable substitution in uri module

2015-10-15 Thread Sharwari Phadnis
HI, I am facing the same problem. I went through the link which you've posted but couldn't find the exact solution. Could you please post the solution which you've tried? On Saturday, October 3, 2015 at 1:15:51 AM UTC+5:30, mic...@networktocode.com wrote: > > I solved the problem after a lot

[ansible-project] Variable precedence (again sorry)

2015-10-15 Thread James Morgan
Hi, As of 2.0 the precedence is - role defaults [1] - inventory vars [2] - inventory group_vars - inventory host_vars - playbook group_vars -

[ansible-project] UnicodeDecodeError with Ansible 1.9.4 and German Letter

2015-10-15 Thread Thoralf Liersch
Hi, i have a problem to provisioning a windows client. The Windows Client is a Windows 10 Prof, the management machine is a mac osx or a ubuntu. I have both the same problem. the command: ansible berater -m raw -a "ipconfig" -i hosts -v works fine and gives me the output what i want the

[ansible-project] Re: I stuck with make many files from template

2015-10-15 Thread Шалыгин Константин
I did it. Role on github . -- 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] Concatenate strings and variables.

2015-10-15 Thread Sharwari Phadnis
I want to concat strings and variables imported from a yml file. For example: --- - hosts: localhost vars_files: - config.yml tasks: - uri: url: "https://url/to/dest/server; method: POST body: '{"key1":"value1","key2":"value2" }' user:

[ansible-project] apt module fails with non-root sudoer ("Permission denied")

2015-10-15 Thread Kevin Jaquier
I'm having trouble executing my script from a user with sudo access instead of root. I'm getting "permission denied" errors when playing the playbook, but if I execute the commands manually on the server it works just fine. I did use "become" to execute the tasks with sudo and the right user.

[ansible-project] apt module fails with non-root sudoer ("Permission denied")

2015-10-15 Thread Kevin Jaquier
I'm having trouble executing my script from a user with sudo access instead of root. I'm getting "permission denied" errors when playing the playbook, but if I execute the commands manually on the server it works just fine. I did use "become" to execute the tasks with sudo and the right user.

[ansible-project] How about i18n for ansible docsite?

2015-10-15 Thread ADoyle
I'm willing to translate the docsite into chinese. But currently the .rst files are stored in the ansible repo with other code files. The repo is huge but the things I need are only in the docsite folder. Is it possible to separate a single project such as "ansible-doc" from the main repo for

Re: [ansible-project] UnicodeDecodeError with Ansible 1.9.4 and German Letter

2015-10-15 Thread Toshio Kuratomi
I don't do anything with Windows unfortunately, but that error probably means that either result.std_out or result.std_err are already encoded to bytes. You could see if doing this fixes the issue: from ansible.utils.unicode import to_bytes return (result.status_code, '',

Re: [ansible-project] Behaviour of the Ansible yum module with enablerepo and disablerepo

2015-10-15 Thread Toshio Kuratomi
On Thu, Oct 15, 2015 at 12:50 AM, Guillaume Belrose wrote: > Hi all, > > I am using Ansible 1.9.2 on CentOS 6.7. I am designing a system which can > deploy software onto machines when those machines don't have access to the > Internet. I basically have an Ansible controller

[ansible-project] Re: apt module fails with non-root sudoer ("Permission denied")

2015-10-15 Thread Markus Ellers
I think this way you are telling ansible to use sudo to execute the apt command as {{ user }} But you need it to become {{ user }} and the use sudo to execute the apt command as root. To do this in ansible you can tell ansible to use sudo per task and use the become for the play and then use

[ansible-project] Re: Variable substitution in uri module

2015-10-15 Thread Sharwari Phadnis
Hi, I'd explain my problem clearly, I have a same type of example as yours. vars: my_var: hello_world tasks: - uri: url: https://localhost/api/v1/ method: POST body: jsoncode='{ "name": "test", "var": "{{ my_var }}", "location": "usa"

[ansible-project] ec2 inventory to return Name tags

2015-10-15 Thread Nicolas G
Hi, I'm able to run Ansible on AWS using ec2.py successfully but unfortunately I get the public DNS of the instance instead of the Name tag : ansible -i plugins/inventory/ec2.py "tag_Environment_prod" -m shell -a "uptime" ec2-54-205-89-44.compute-1.amazonaws.com | success | rc=0 >> Filesystem

[ansible-project] ec2 inventory tags combination

2015-10-15 Thread Nicolas G
Hi, Following the https://docs.ansible.com/ansible/intro_dynamic_inventory.html#using-multiple-inventory-sources example, I have inventory file were I have defined my physical and aws servers using ec2 tags as a group in it : # servers.txt : " [tag_Type_Web] [web:children]

[ansible-project] Inventory issue

2015-10-15 Thread gabor . debreczeni
Hi guys, I'm facing with an issue and I cannot find the reason for this behaviour of ansible: My hosts file (part of it): [lb] lb[1:2] lb3 The result in command line: ansible -a whoami lb lb1 | success | rc=0 >> root lb2 | success | rc=0 >> root lb3 | success | rc=0 >> root In my opinion

Re: [ansible-project] Inventory issue

2015-10-15 Thread David Karban
Hi, it is because lb3 is in lb group. Group ends when new group start, in your second case lb3 is in payment group. For lb3 to be in all group only it must be defined before any group is started. David Dne 15. 10. 2015 18:50 napsal uživatel : > Hi guys, > > I'm

[ansible-project] Re: Inventory issue

2015-10-15 Thread esco real
Hello, if you don't want to put lb3 in a group you would need this: lb3 [lb] lb[1:2] A blank line doesn't separate anything. In your second example lb3 is in the payment group. http://docs.ansible.com/ansible/intro_inventory.html https://en.wikipedia.org/wiki/INI_file esco -- You received

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

2015-10-15 Thread Ben Cohen
I'm not seeing any performance improvements notes -- but is anyone else observing 1.9.4 to provide a _significant_ performance boost over 1.9.3? On Friday, October 9, 2015, James Cammarata wrote: > Hi all, 1.9.4 has been released, and is now available. > > This release