Re: [ansible-project] trying win_msi

2015-04-25 Thread skinnedknuckles
Thanks for the tip. It works fine now. I should have used a simple YAML format checker. On Monday, November 10, 2014 at 3:31:42 PM UTC-6, Matt Martz wrote: > > Your indentation is off. the word "tasks" is indented too far. Here is a > properly indented playbook: > > --- > - hosts: windows >

[ansible-project] Re: Display variable value from command line?

2015-04-25 Thread skinnedknuckles
Okay this is fixed. I've discovered that the values assigned to the variables in ansible\group_vars\windows.yml namely "ansible_ssh_user" and "ansible_ssh_pass" must: 1. Exactly match an account on the windows machine with admin privileges (account must exist but need NOT be current act

[ansible-project] Re: Connection reset by peer

2015-04-25 Thread skinnedknuckles
Okay this is fixed. The values assigned to the variables "ansible_ssh_user" and "ansible_ssh_pass" must: 1. Exactly match an account on the windows machine with admin privileges (account must exist but need NOT be current active login) 2. If you are using SSL and the value of winr

Re: [ansible-project] ansible_ssh_user and ansible_ssh_pass in windows.yml

2015-04-25 Thread skinnedknuckles
Okay this is fixed. The values assigned to the variables "ansible_ssh_user" and "ansible_ssh_pass" must: 1. Exactly match an account on the windows machine with admin privileges (account must exist but need NOT be current active login) 2. If you are using SSL and the value of winr

[ansible-project] Re: Problems setting up WinRM

2015-04-25 Thread skinnedknuckles
It's fixed now. Here's my windows.yml file contents ansible_ssh_user: ansible ansivle_ssh_pass: ansible123 ansible_ssh_port: 5986 ansible_connection: winrm It seems that the 3rd line of my windows.yml file "ansible_ssh_port: 5986" was not doing it's job because I appended my computer name with

Re: [ansible-project] Re: Connection refused

2015-04-25 Thread skinnedknuckles
It's fixed now. Here's my windows.yml file contents ansible_ssh_user: ansible ansivle_ssh_pass: ansible123 ansible_ssh_port: 5986 ansible_connection: winrm It seems that the 3rd line of my windows.yml file "ansible_ssh_port: 5986" was not doing it's job because I appended my computer name with

Re: [ansible-project] Re: Connection refused

2015-04-25 Thread skinnedknuckles
Here's my windows.yml file contents ansible_ssh_user: ansible ansivle_ssh_pass: ansible123 ansible_ssh_port: 5986 ansible_connection: winrm It seems that the 3rd line of my windows.yml file "ansible_ssh_port: 5986" was not doing it's job because I appended my computer name with the port number

[ansible-project] Re: CMD module complains about exec format error

2015-04-25 Thread Yassen Damyanov
On Tuesday, April 21, 2015 at 12:55:59 AM UTC+3, Loc Nguyen wrote: > > Hi, > > I have a task that copies a folder onto a virtual box machine and then > uses the command module to execute a shell script in that remote folder. > Ansible always complains with, > > msg: [Errno 8] Exec format error

[ansible-project] Re: what does this mean? ['tag_Environment_%s' % args.environment]

2015-04-25 Thread Paul Stivers
Awsome! Without the print function I wasn't thinking format. Nice, clear explanation. Thanks! Paul On Saturday, April 25, 2015 at 7:58:11 AM UTC-7, Paul Tötterman wrote: > > > % is the string format operator. 'bar: %s' % 'tada' results in the string > 'bar: tada' > > -- You received this mess

[ansible-project] Re: what does this mean? ['tag_Environment_%s' % args.environment]

2015-04-25 Thread Paul Tötterman
I'm trying to understand what "['tag_Environment_%s' % args.environment]" means. [] is a list literal in Python. [1, 2, 3] can also be written as list(1, 2, 3) % is the string format operator. 'bar: %s' % 'tada' results in the string 'bar: tada' ['tag_Environment_%s' % args.environment] res

Re: [ansible-project] what does this mean? ['tag_Environment_%s' % args.environment]

2015-04-25 Thread Kevin Bullock
> On Apr 25, 2015, at 1:37 AM, Paul Stivers wrote: > > This may be as much a Python question as an Ansible question. This is a > function in a deploy script. > I'm trying to understand what "['tag_Environment_%s' % args.environment]" > means. > Problem is I don't know enough about the syntax t

Re: [ansible-project] Re: Ansible task seems to start weblogic but doesn't

2015-04-25 Thread Nicholas Irving
Thanks will try this with nodemanager as that is all i need to be running in the background. Regards Nicholas Irving On 25 Apr 2015 7:02 pm, "Mark Phillips" wrote: > Hello, > > A common problem I've hit a number of times. You can do an async, yes, > with a massive timeout (99 or such lik

Re: [ansible-project] Ansible task seems to start weblogic but doesn't

2015-04-25 Thread Nicholas Irving
Hi, I will have a look at how we can do this with the current scripts developed, as currently a daemon service starts (nodemanager in this case that does not use any daemin tools other than itself) and attaches to the root process. It seems i am coding to solve an issue that does not exist if run

[ansible-project] Re: Ansible task seems to start weblogic but doesn't

2015-04-25 Thread Mark Phillips
Hello, A common problem I've hit a number of times. You can do an async, yes, with a massive timeout (99 or such like). I did have some success with this once though: - name: Ensure admin service is started shell: > running=$( netstat -ant | grep -cP '7001.+LISTEN' ) ; [ $runn

[ansible-project] Re: How to best use Ansible in an autoscaling environment?

2015-04-25 Thread Mark Phillips
Hello, I've done a lot of demos of this sort of thing using Ansible Tower's 'callbacks' feature. A playbook is exposed as a URL - embed a call to that URL[1] in user-data when spinning up an instance, and you have a 'phone home' solution that keeps the beauty of the push model. --Mark [1] Her

[ansible-project] Spawning background processes that are not services

2015-04-25 Thread Nicholas Irving
Evening, I am trying to keep a spawn process that normally attaches to process id 1 wheb running. However because ansible kills all entries in a process group i have been told to use async. However do i wait for the async process to complete before starting the next task? Does setting a poll time