Re: [ansible-project] iisue when evaluating a complex var in become

2017-12-18 Thread Kai Stian Olstad
On 13.12.2017 12:55, Mike C wrote: Hi all, im trying to use a 'complex' expression to evaluate if a task should run as root or not. Here is what i have defined: ``` debian_based_system: ansible_os_family == 'Debian' or ansible_os_family == 'Linuxmint' ``` You don't say where you define

[ansible-project] Re: How can I run a powershell script locally?

2017-12-18 Thread Jordan Borean
It is definitely possible but you will probably be coming up with other errors because you either need to use CredSSP, Kerberos with credential delegation, become, or psexec to install SQL Server. For the case around running a powershell script I would try the following - win_command:

[ansible-project] what is mean by play and what's the diffrence plays vs tasks, example please?

2017-12-18 Thread Chandramohan Reddy
Hi All, Can you please explain me what is play and play vs tasks . Could you give any example for play. Thanks & Regards ChandraMohan -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails

[ansible-project] How to embed ansible onto a webpage to submit commands

2017-12-18 Thread Josh Hill
Hello Everyone, I know we have Ansible Tower and web GUI that it offers I am interested in creating a Command page for clients that allows them to submit workflow in combination with the modules of a playbook. If anyone has this type of setup already going please direct me to the correct

[ansible-project] How can I run a powershell script locally?

2017-12-18 Thread Kessy Similien
I've created a script to install SQL Server silently. I'm using Ansible to push the files to my machine and trying to run the .ps1 script but none of the modules I've tried have successfully called the script. Ive tried: ansible machines -m win_psexec -a "command='Powershell

[ansible-project] Re: Issue with running Ansible playbook against windows.

2017-12-18 Thread Jordan Borean
I believe I may know what is happening and this was fixed in the latest devel branch so you can try that out if you like. Looks like it is failing to gather facts before it gets to your debug task, can you set *gather_facts: no* in your playbook as I'm really curious if the cert validation is

Re: [ansible-project] How can we access the variables defined in host_vars/* files into playbook

2017-12-18 Thread Brian Coca
Your play is targeting 'localhost', but you defined the variable for the 'ansible.com' host, either move the file to 'localhost' to match the host name or use the hostvars[][] method to access variables defined in other hosts. -- -- Brian Coca -- You received this message because you

[ansible-project] Re: SSL/Certificate errors when running playbooks against Azure

2017-12-18 Thread JOS
For anyone else that runs into this, it looks like I had several different versions of python and out dated components, I reinstalled everything from scratch and no longer have this issue. On Tuesday, December 12, 2017 at 2:03:40 PM UTC-7, JOS wrote: > > Hello, > > So I have an Azure free

[ansible-project] Re: Pip install of Ansible on Ubuntu 16.04 results in broken ansible

2017-12-18 Thread Stephen Nesbitt
Well I got it to work with the following command: pip install --upgrade --force-reinstall --no-cache-dir ansible Some kind of caching issue? -steve On Monday, December 18, 2017 at 10:28:56 AM UTC-8, Stephen Nesbitt wrote: > > All: > > After installing ansible using pip on an Ubuntu 16.04

[ansible-project] AWS ELB IP grep and update the inventory for the respective domain

2017-12-18 Thread bablu
I am trying to grep the IP available on the AWS ELB (nodes attached to it) and then doing some operation on it. Now, the issue is how can I on the fly update the ansible inventory of the new available IP, so that next operation will read the IP from the inventory and will further execute the

[ansible-project] Re: Issue with running Ansible playbook against windows.

2017-12-18 Thread Alexmil Reyes
@jordan I completely agree. Although I have clearly stated in the group_vars/windwos.yml file to ignore cert validation it does not appear to acknowledge the setting. With the tasks/main.yml file now looking like this: --- # Obtain information about a folder - debug: var:

[ansible-project] Basic solution wanted - Start IE url

2017-12-18 Thread nbmprivat
Hi there, I've tried: 1) script module - powershell script 2) win_command module - start.exe 3) starting iexplore.exe with url Nothing works. I guess the first command doesn't work because ansible uses another user to start powershell. The logged in user must start the process. Anybody knows

[ansible-project] Re: How to hot deploy to tomcat with ansible?

2017-12-18 Thread nbmprivat
I have done this last week. Procedure: 1) Download the .zip installation file for windows 2) Unpack and copy to your ansible host (most likely roles/rolename/files/tomcat) 3) Copy the binaries via ansible to your win hosts (c:\program files\apache tomcat foundation\tomcat x.x) 4) Run

[ansible-project] Re: iisue when evaluating a complex var in become

2017-12-18 Thread Mike C
bump On Wednesday, December 13, 2017 at 11:55:33 AM UTC, Mike C wrote: > > Hi all, > > im trying to use a 'complex' expression to evaluate if a task should run > as root or not. > > Here is what i have defined: > > ``` > debian_based_system: ansible_os_family == 'Debian' or ansible_os_family ==

[ansible-project] I've come across an Ansible question asking for your help

2017-12-18 Thread 徐翔霄
Hi,About Ansible-Tower,There is a problem I think impassability, this two days we Ansible based automation tasks on the Tower platform, one from a local server directory copy the file to the local server to another directory task has been failure, the target directory is mounted another