[ansible-project] Ansbile fails to connect while ssh works

2016-04-08 Thread Jack Minardi
Hi all, I may be doing something completely stupid but I failing to get even a basic ping to work. I have been using ansible for a few weeks and everything has been going great. However today everything stopped working. I am running ansible from OS X 10.10.5 and the host is a raspberry pi

[ansible-project] Re: Run .exe on windows command prompt

2016-04-08 Thread Dimitri Yioulos
Once again, I'd suggest trying the raw command without quotes: raw: c:\temp\vlc-2.2.1-win32.exe /S On Monday, September 28, 2015 at 8:32:49 AM UTC-4, Jugal Porwal wrote: > > Hi, > > I want to run a .exe on windows command prompt from my centos control > node. The command is as follows : > >

[ansible-project] Re: Problem with templates

2016-04-08 Thread Vamberto Junior
Hellow Roger I put this way and works for me - name: Copy ntp.conf from template template: src=ntp.conf.j2 dest=/etc/ntp.conf when: ansible_hostname != 'vmlog' notify: - restart ntp Try to put without ' ' Em quinta-feira, 7 de abril de 2016 19:39:43 UTC-3, Roger Gomez escreveu: >

Re: [ansible-project] Re: Ansible AD Domain Authentication

2016-04-08 Thread Mauricio Tavares
I would expect his logs to show ssh trying to do kerberos auth and then failing back to whatever. The fact it is going straight to plain auth is odd. Maybe play around with ansible_ssh_common_args or ansible.cfg to get ssh more verbose? On Fri, Apr 8, 2016 at 1:51 PM, Zacharias Thompson

Re: [ansible-project] Re: Ansible AD Domain Authentication

2016-04-08 Thread Zacharias Thompson
Are you running the kinit under the same user you're running ansible as? What version of Ansible are you running? On Fri, Apr 8, 2016 at 4:27 AM, Mark Matthews wrote: > Hi Zacharias > > I have setup a kerberos ticket and all seems to be working fine. I am able > to do a

Re: [ansible-project] ansible 2.0.2 check if a variable contain a specific value

2016-04-08 Thread Brian Coca
when: "'SNAPSHOT' in variable1 or 'RELEASE' in variable1" -- 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 it, send an email to

[ansible-project] Throw exception when excute os_image openstack module

2016-04-08 Thread Chao Jianying
Hi, I'm confused why os_image throw this exception. $ ansible-playbook -i hosts openstack.yml -c local -vvv No config file found; using defaults 1 plays in openstack.yml PLAY *** TASK [os_image]

Re: [ansible-project] pip version of Ansible out of date. rax_dns_record Module

2016-04-08 Thread Matt Martz
The overwrite option was just recently added, and will not be included until the 2.1 release of ansible. The documentation was not updated correctly. I have just merged a docs fix that will now indicate that `overwrite` was added in `2.1`. On Fri, Apr 8, 2016 at 8:09 AM, Reedik Tuuling

[ansible-project] pip version of Ansible out of date. rax_dns_record Module

2016-04-08 Thread Reedik Tuuling
I tried to use the rax_dns_record module with the "overwrite" parameter and it tells me that: "unsupported parameter for module: overwrite" If you take a look at the history of that module you can see that the feature has been added almost a year ago and is also in the documentation.

[ansible-project] Ansible variable precedence

2016-04-08 Thread Michal Šiška
I'm trying to understand variable precedence in Ansible - more exactly the part about host_vars and group_vars in inventory or playbook. My layout looks like this: production/ ├── inventory (alfa, beta and gamma hosts) ├── group_vars/ │ └── all (foo=1) └── host_vars/ └── alfa (foo=2)

[ansible-project] trouble use file lookup as variable

2016-04-08 Thread Louis
I am having trouble using the file lookup plugin with a playbook that use two roles: roles: - { role: role_1 } - { role: role_Z } "role_1" sets a variable using the lookup plugin in: role_1/vars/main.yml: file_contents: "{{ lookup('file', 'config') }}" I am able to correctly list the

[ansible-project] authorized_key module with delegate_to

2016-04-08 Thread deorene
Hi, In my playbook I copy the ssh public key to my local ansible master. - name: fetch pub key from server fetch: src=/home/user/.ssh/id_rsa.pub dest=/tmp/keys/{{ inventory_hostname_short }}_id_rsa.pub flat=yes Next I use authorized_key module to place it in authorized keys of another user

[ansible-project] Variable precedence

2016-04-08 Thread Michal Šiška
I'm trying to understand variable precedence in Ansible - more exactly the part about host_vars and group_vars in inventory or playbook. My layout looks like this: production/ ├── inventory (alfa, beta and gamma hosts) ├── group_vars/ │ └── all (foo=1) └── host_vars/ └── alfa (foo=2)

Re: [ansible-project] Re: Proposal for fixing playbooks with dynamic include problems

2016-04-08 Thread Timothy Appnel
> > So many things are broken with Ansible's notion of "composability" that > it's hard to know where to begin. https://github.com/ansible/proposals/pull/4 -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and

[ansible-project] Re: Ansible AD Domain Authentication

2016-04-08 Thread Mark Matthews
Hi guys Was doing some digging around and noticed that there were security errors on the test server I was trying to access. Could it be possible that this could be causing the issue: https://www.winhelp.info/windows/resolve-kerberos-error-0xc06d-in-windows/ As nothing is defined there on

[ansible-project] Re: Problem with templates

2016-04-08 Thread Roger Gomez
This is the output of the whole test: ➜ Ansible cat test.yml --- - hosts: localhost gather_facts: no vars: - my_list: [1,2,3,4] tasks: - name: TEMPLATE template: dest=/home/Ansible/dest.y src=src.j2 ➜ Ansible ansible-playbook test.yml PLAY [localhost]

[ansible-project] Re: Problem with templates

2016-04-08 Thread Roger Gomez
Hi J Hawkesworth, thanks for taking the time to answer my question. I did try before both of your suggestions and the same error, I have multiple Ansible machine and only in this one does not work. Is basically ignoring the *dest* argument, definitely the output of the error is not correct. My

[ansible-project] How to create a service on a windows 10 machine?

2016-04-08 Thread Sharwari Phadnis
I am trying to create a service of type kernel on a remote windows 10 machine from a linux ansible controller machine. To create a service I'm using *sc create* *type=kernel binpath=c:\path * command. Ansible playbook for creating a service: - hosts: windows tasks: - name: Create temp

[ansible-project] How to create a service on a windows 10 machine?

2016-04-08 Thread Sharwari Phadnis
I am trying to create a service of type kernel on a remote windows 10 machine from a linux ansible controller machine. To create a service I'm using *sc create* *type=kernel binpath=c:\path * command. Ansible playbook for creating a service: - hosts: windows tasks: - name: Create temp

[ansible-project] Re: Nested loop in template

2016-04-08 Thread David Goodall
Solved it - had to use "key,value" - here is the revised template: {% for site,value in sites.iteritems() %} ServerName {{ site }} {% for vhost in value.vhosts %} ServerAlias {{ vhost }} {% endfor %} DocumentRoot /var/www/html/{{ site }} {% endfor %}

[ansible-project] how to create a service on a windows 10 machine?

2016-04-08 Thread Sharwari Phadnis
I am trying to create a service of type kernel on a remote windows 10 machine from a linux ansible controller machine. To create a service I'm using *sc create* *type=kernel binpath=c:\path * command. Ansible playbook for creating a service: - hosts: windows tasks: - name: Create temp

[ansible-project] Re: win_lineinfile backrefs not working

2016-04-08 Thread dr
Yap, that works, it's .net regexp after all /me silly. Thx for pointing it out Also, regading this module the idempotence is slightly broken - I've opened an issue (and provided a dirty fix) On Wednesday,

[ansible-project] Re: Ansible AD Domain Authentication

2016-04-08 Thread Mark Matthews
Hi Im just running the playbook as follows: ansible-playbook test_ping.yml The playbook looks like this: - name: Ping Servers hosts: win tasks: - name: ping win_ping: I run the playbook now with -v, and got the following output: TASK [setup]

[ansible-project] Re: Ansible task always run

2016-04-08 Thread Paul Tötterman
> > I'm looking for a way to always run a task at the end of script, even if > tasks before that were failed. Is there any option such as always_run > etc. > Yes: https://docs.ansible.com/ansible/playbooks_checkmode.html#running-a-task-in-check-mode . Probably doesn't do what you want.

[ansible-project] Re: Ansible AD Domain Authentication

2016-04-08 Thread Mark Matthews
Hi Zacharias I have setup a kerberos ticket and all seems to be working fine. I am able to do a "knit *username*" and create a ticket. I then add the following entry into /etc/ansible/hosts file [win] servername.COMPANY.COM I have create the following /etc/ansible/group_vars/win.yml file with

[ansible-project] rpmbuild of ansible tarball results in error: line 9: Illegal char '$' in: Version: $VERSION

2016-04-08 Thread Paul Davies
Hi I'm not experienced in RPMbuilds so I may simply be doing this wrong I have downloaded both ansible-latest.tr.gz and ansible-2.0.2.0-0.3.rc3.tar.gz from http://releases.ansible.com/ansible/ I have tried to build an RPM using rpmbuild -ta for both files and both result in the error: line

[ansible-project] Re: Problem with templates

2016-04-08 Thread 'J Hawkesworth' via Ansible Project
Hi Not sure exactly but it looks like you're mixing key=value args and yaml styl args. Try the following --- - hosts: all gather_facts: no vars: - my_list: [1,2,3,4] tasks: - name: TEMPLATE template: dest: /home/Ansible/dest.y src: src.j2 Or --- - hosts:

[ansible-project] Re: Facing issues with WinRM connection

2016-04-08 Thread 'J Hawkesworth' via Ansible Project
Can you try re-running the script https://raw.githubusercontent.com/ansible/ansible/devel/examples/scripts/ConfigureRemotingForAnsible.ps1 please? Which version of Windows are you running against? On Thursday, April 7, 2016 at 12:10:56 PM UTC+1, Deepa Yr wrote: > > WinRM is already set up to

[ansible-project] Nested loop in template

2016-04-08 Thread David Goodall
Hi, I'm trying to create an Apache vhost config file using a legacy yaml file *that I can't change*. I'm nearly there, but the nested loop in the template doesn't work as expected. Here's the yaml: sites: site1.com: vhosts: - vhost1.com - v

[ansible-project] ansible 2.0.2 check if a variable contain a specific value

2016-04-08 Thread mondher khas
i want to check if {{variable1}} contain a specific word for example i want to check if this variable contain the word "SNAPSHOT" or "RELEASE". is there a command can do that ? thank you in advance . -- You received this message because you are subscribed to the Google Groups "Ansible