Re: [ansible-project] How to use variables defined in a group_vars directory of a role?

2017-02-20 Thread Jörg Kastning
Hi, I have an additional question. I read the docs yesterday and saw that groups_vars are not supported inside the roles directory structure. So I moved them from the role structure into the group_vars directory adjacent to my inventory file. But I stick with the error that the variable is

[ansible-project] ValueError: No closing quotation

2017-02-20 Thread Mona Gopal
Hi, ansible-playbook -i hosts site.yml - -c paramiko Traceback (most recent call last): File "/usr/bin/ansible-playbook", line 324, in sys.exit(main(sys.argv[1:])) File "/usr/bin/ansible-playbook", line 157, in main inventory = ansible.inventory.Inventory(options.inventory,

[ansible-project] Re: Returning Data from a PS script

2017-02-20 Thread Paul Markham
I don't know anything about Power Shell, but to return variables to Ansible, you need to return them in JSON format under the 'ansible_facts' key. See http://docs.ansible.com/ansible/dev_guide/developing_modules_general.html#module-provided-facts -- You received this message because you are

[ansible-project] Re: Returning Data from a PS script

2017-02-20 Thread Ansible User
Didn't state explicitly, but the code above is not working and is the Module that I am trying to get integrated. -- 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

[ansible-project] Re: Returning Data from a PS script

2017-02-20 Thread Ansible User
So here is the script that I am trying to do. rough form of it is query installed programs get display name and target_exe add to variable to be returned by module iterate over returned paths and do win_file_version on target_exe Rough code as of now is... #!powershell # WANT_JSON #

[ansible-project] Windows installer fails via Ansible

2017-02-20 Thread Justin Dugan
I have a windows installer that fails when executed via Ansible. This installer connects to a SQLServer database during the install. It fails when attempting to connect to the database. ansible_winrm_kerberos_delegation is set and works fine when connecting to file shares. Database

Re: [ansible-project] Loop in a loop

2017-02-20 Thread Kai Stian Olstad
On 20. feb. 2017 17:46, Acrobis Nubian wrote: Hi all, If someone could help me on the following: I am trying to automate as maximum as possible the addition of authorized keys to my new remote servers by doing the below playbook, but I am getting the following error:

Re: [ansible-project] Testing roles

2017-02-20 Thread Kai Stian Olstad
On 17. feb. 2017 22:24, Matt WH wrote: Hi everyone, I'm working on an Ansible setup where it would be extremely helpful to be able to test roles and changes to a role before they were moved into the roles folder used by ansible, as defined in the /etc/ansible/ansible.cfg file. Ideally it could

Re: [ansible-project] How to use variables defined in a group_vars directory of a role?

2017-02-20 Thread Jörg Kastning
Yes, you are absolutly right. What a stupid mistake. Thanks. Am 20.02.2017 5:47 nachm. schrieb "Brian Coca" : > group/host vars directories need to be adjacent to play or inventory, > they are not supported inside roles. > > > -- > Brian Coca > > -- > You received

[ansible-project] Re: Returning Data from a PS script

2017-02-20 Thread Ansible User
Maybe I was a tad over zealous in my last post. Basically what I am trying to do is gather a bunch of entries about multiple files such that I get the following information returned so that I can then iterate over it and call a different module using the "path" and gather the information using

[ansible-project] Testing roles

2017-02-20 Thread Matt WH
Hi everyone, I'm working on an Ansible setup where it would be extremely helpful to be able to test roles and changes to a role before they were moved into the roles folder used by ansible, as defined in the /etc/ansible/ansible.cfg file. Ideally it could check all the roles in a specified

[ansible-project] Is it possible to deploy Nuget package with Ansible

2017-02-20 Thread Rafid Haroon
Hi, I am presently using Octopus deploy for deploying .Net applications. I was wondering if it can be replaced by Ansible, I am playing around with Ansible for cloud provisioning, it will be great if it could also help out with the application deployments. So bearing this in mind can someone

[ansible-project] Ansible Hangs at the end of a Host list

2017-02-20 Thread eyal gershon
Hey Everyone, I am running ansible version 1.8.4. Running the same task on multiple Hosts list - --- - hosts: all gather_facts: no tasks: - name: Stopping OSSEC service: name: ossec-hids state: stopped - hosts: all gather_facts: no tasks: -

[ansible-project] ansible's ip filter are broken since a long time - alternatives?

2017-02-20 Thread nusenu
Hi, since ansible's ip filter are broken [1] and don't look like they get fixed anytime soon I'm wondering if there are any other easy options? thanks, nusenu [1] https://github.com/ansible/ansible/issues/14829 -- You received this message because you are subscribed to the Google Groups

[ansible-project] Loop in a loop

2017-02-20 Thread Acrobis Nubian
Hi all, If someone could help me on the following: I am trying to automate as maximum as possible the addition of authorized keys to my new remote servers by doing the below playbook, but I am getting the following error: === fatal:

[ansible-project] Re: Help me to install ansible - end up with "Oops! An error occured while running setup"

2017-02-20 Thread Timothy Vigers
Hi Ben, Not sure if you ended up fixing it however I had the same issue. It was because of the password that I had set. Regards, Tim On Friday, 23 December 2016 04:26:25 UTC+11, Ben .T.George wrote: > > HI > > i am very new to ansible and i want to setup a POC env for my company. > > i was

Re: [ansible-project] How to use variables defined in a group_vars directory of a role?

2017-02-20 Thread Brian Coca
group/host vars directories need to be adjacent to play or inventory, they are not supported inside roles. -- Brian Coca -- 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

Re: [ansible-project] Calling a dictionary based on an existing variable

2017-02-20 Thread Nicholas Santiago
Hi, Marko -- How about having three files in vars directory (eg. pvs_vars.yml, > stage_vars.yml, prod_vars.yml) with the same variable in it (ldapserver) > and using include_vars module this way: > - include_vars: "{{ env }}_vars.yml" > That sounds like a considerably easier and more sane

[ansible-project] How to use variables defined in a group_vars directory of a role?

2017-02-20 Thread Jörg Kastning
Hello, I would like to copy some files specified by a group_var. But while running my playbook I got the fatal error that the variable given is undefined. But first things first. My directory structure looks like: roles/mgmt/ |-- files | |-- foo | `-- bar |-- group_vars | `-- mgmt |--

Re: [ansible-project] reboot with ignore_errors still errors out

2017-02-20 Thread Brian Coca
ignore error will not avoid connection errors, only task errors, so 'UNREACHABLE' will not be captured by it. On Sun, Feb 19, 2017 at 2:30 AM, Pshem Kowalczyk wrote: > Hi, > > Perhaps not directly answering your question - but a workaround I used in a > number of playbooks

[ansible-project] Re: Returning Data from a PS script

2017-02-20 Thread Ansible User
Before you had sent the message back I think we got started along the right path there. I'm sure there are some things we aren't doing correctly, but would appreciate your input to help with this. I think we might have a working prototype soon, and once we get it going, then I think it could

[ansible-project] win_shell hangs

2017-02-20 Thread Hmdi Bz
hello, I tried to execute a bash script ( the script is inside the remote windows server) the bash script was executed but the win_shell task hangs. win_shell: chdir="C:\\someApp\\bin" ./start.bat -- You received this message because you are subscribed to the Google Groups "Ansible Project"