Re: [ansible-project] Role within role syntax

2015-10-16 Thread Brian Coca
To have roles use other roles, use role dependencies http://docs.ansible.com/ansible/playbooks_roles.html#role-dependencies -- 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 ema

[ansible-project] Roles and vaults

2015-10-16 Thread Flo
Hi, I'm wondering what the best practice would be for a role which should allow the user to set a password and to store their password inside an encrypted vault. No one wants to store their passwords in plaintext. That's what ansible-vault is made for. But I differ between data which can be pu

[ansible-project] Getting failed to lock apt for exclusive operation on a playbook using roles. Not sure if I'm doing this right.

2015-10-16 Thread Risa
While I'm learning Ansible, I started on my first role, which is to do a simple sudo apt-get update and upgrade. As a flat file, this works: --- - hosts: testing remote_user: deploy become: yes tasks: - name: run apt-get update apt: update_cache=yes - name: run apt-get upgrade

Re: [ansible-project] ansible-galaxy init and metadata values

2015-10-16 Thread Brian Coca
We don't have this functionality yet, but I think its a good idea. The metadata is now an external template so it is easy to add. Also, you are not alone, there are other Perl guys here. -- Brian Coca -- You received this message because you are subscribed to the Google Groups "Ansible Proje

Re: [ansible-project] playbook deployment Error

2015-10-16 Thread Brian Coca
that confirms it, your tarfile seems to be invalid, not really an ansible issue at this point. On Fri, Oct 16, 2015 at 1:36 PM, GBANE FETIGUE wrote: > I tried and still having some error : > tar -xvzf cs-system-status-.tar.gz > > gzip: stdin: unexpected end of file > tar: Child returned status 1

Re: [ansible-project] playbook deployment Error

2015-10-16 Thread GBANE FETIGUE
I tried and still having some error : tar -xvzf cs-system-status-.tar.gz gzip: stdin: unexpected end of file tar: Child returned status 1 tar: Error is not recoverable: exiting now On Friday, October 16, 2015 at 1:23:11 PM UTC-4, Brian Coca wrote: > > you seem to have a problem with your tar fil

[ansible-project] ansible-galaxy init and metadata values

2015-10-16 Thread Dylan Martin
Hi everyone. I expected this functionality to exist, but I can't find it so either it does exist and someone can gently point me toward the document I missed or it doesn't exist and we might want to talk about weather it should exist. I expected I could write a file like ~/.ansible/galaxy-defa

Re: [ansible-project] playbook deployment Error

2015-10-16 Thread Brian Coca
you seem to have a problem with your tar file, can you try untaring it manually? On Fri, Oct 16, 2015 at 12:44 PM, GBANE FETIGUE wrote: > > Anybody has an idea about this error : > > root@ip-172-16-20-180:/var/lib/jenkins/jobs/build-cs-utils/workspace/playbooks# > ansible-playbook -i inventory/pr

Re: [ansible-project] RedHat buys Ansible?

2015-10-16 Thread Walid
Congratulations to the Ansible team. Foreman was originally written with puppet in mind, but it has a modular plugin system where one can use it with Chef, Saltstack, and possibly Ansible, however nothing yet has been done for ansible apart from scattered scripts here and there around net last tim

[ansible-project] ansible 1.9.4 chocolately install of git succeeds but fails

2015-10-16 Thread Slim Slam
Ansible 1.9.4 MacOSX 10.10.5 Windows 2008 R2 Command: - name: Add git win_chocolatey: name: git state: present Result: <54.69.23.23> WINRM EXEC 'PowerShell' ['-NoProfile', '-NonInteractive', '-ExecutionPolicy', 'Unrestricted', '-EncodedCommand', 'JgAgAEMAOgBcAFUA

[ansible-project] playbook deployment Error

2015-10-16 Thread GBANE FETIGUE
Anybody has an idea about this error : root@ip-172-16-20-180:/var/lib/jenkins/jobs/build-cs-utils/workspace/playbooks# ansible-playbook -i inventory/prod deploy_system_status.yml Enter the version you want to deploy: PLAY [Deploy to status servers] ***

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

2015-10-16 Thread Kevin Jaquier
I tried and it worked, obviously, because the task is actually run with root (instead of my user with sudo access) which is not what I wanted. That's why I'm using "become_user" (equivalent of the now deprecated "sudo_user"), in order to use sudo with my user and not root. Below the Ansible out

Re: [ansible-project] RedHat buys Ansible?

2015-10-16 Thread John McNulty
Not any more. Satellite 6 is a totally new beast, based on the upstream open source tool Katello. Katello itself is a combination of Foreman + Candlepin + Pulp. The Foreman component was really written with Puppet in mind, but I can't see how that's going to be strategic in light of today's

Re: [ansible-project] Re: Ansible 1.9.4 CERTIFICATE_VERIFY_FAILED when connecting to Windows Server

2015-10-16 Thread Slim Slam
Ok. Here's something that works though it shouldn't be done as it's a security risk. So, if you're using the "ansible" command under MacOSX Yosemite, here's how to get things to work: 1. Edit (or create) the file /Library/Python/2.7/site-packages/sitecustomize.py 2. Add this code to the file:

[ansible-project] Can not attach CM rom in Vmware

2015-10-16 Thread Nick Vanadium
Greetings all. Apologies if this is not the correct place to post this but I wasn't able to find anything related to this. So I have recently began playing with Ansible and I am trying to build some VMs in Vmware Sphere using the Ansible module. However I can't seem to be able to attach the CD

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

2015-10-16 Thread Santosh Jambhlikar
Try removing all parameters and add "sudo: yes" only ( like below) --- - hosts: all sudo: yes tasks: - name: Install useful system tools apt: name={{ item }} state=present with_items: - vim - nano Sent with MailTrack

Re: [ansible-project] Re: Ansible 1.9.4 CERTIFICATE_VERIFY_FAILED when connecting to Windows Server

2015-10-16 Thread Slim Slam
There is quite a bit of noise about this issue under Ansible 1.94 and 2.00 here: https://github.com/ansible/ansible/issues/10294 But no resolution. J On Friday, October 16, 2015 at 10:05:47 AM UTC-5, J Hawkesworth wrote: > > My impression is this is because of the python version that you get

Re: [ansible-project] Missing lines in .stdout_lines?

2015-10-16 Thread Rob Wilkerson
Thanks, Matt. You beat me to it. I didn't expect that to generate an error, but after posting (unfortunately) I figured I should just inspect the whole variable and I found what you found. Punitive head slap for me. I appreciate the assist. On Friday, October 16, 2015 at 10:42:56 AM UTC-4, Ma

Re: [ansible-project] Re: Ansible 1.9.4 CERTIFICATE_VERIFY_FAILED when connecting to Windows Server

2015-10-16 Thread J Hawkesworth
My impression is this is because of the python version that you get with recent OSX. If I recall it was python 2.7.9 that introduced the cert checking in python. On Friday, October 16, 2015 at 3:59:23 PM UTC+1, Trond Hindenes wrote: > > As far as I can see this works differently when using OS

Re: [ansible-project] Re: Ansible 1.9.4 CERTIFICATE_VERIFY_FAILED when connecting to Windows Server

2015-10-16 Thread Trond Hindenes
As far as I can see this works differently when using OSX as a control node as opposed to Ubuntu, Centos or other Linux distros. I'm seeing a lot of these errors when Ansible is running from OSX. Not sure if pywinrm behaves differently on osx than on Linux? On Friday, October 16, 2015 at 4:48:0

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

2015-10-16 Thread Kevin Jaquier
That's what I'm doing here, as the "sudo" option have been deprecated in favor of "become". And my user also have all the privileges (see the output of "sudo -l"). At least if I understand correctly. Anyway it do have the required privilege I can "sudo apt-get install" something with this user a

Re: [ansible-project] Re: Ansible 1.9.4 CERTIFICATE_VERIFY_FAILED when connecting to Windows Server

2015-10-16 Thread Jason Levitt
I shortened the path to make the posting easier to read. The actual path is something much longer. :) Thanks for taking the time to look though. On Tue, Oct 13, 2015 at 7:45 AM, J Hawkesworth wrote: > Just wondering if the callback plugin is actually getting loaded. > > You have > > callback_pl

Re: [ansible-project] Missing lines in .stdout_lines?

2015-10-16 Thread Matt Martz
It looks like you need to inspect `node_installed.stderr` instead of `stdout`. The string you are looking for seems to go there instead. ok: [localhost] => { "changed": false, "foo": { "_ansible_no_log": false, "changed": true, "cmd": ". /Users/matt/.nvm/nvm.sh && n

[ansible-project] Missing lines in .stdout_lines?

2015-10-16 Thread Rob Wilkerson
I have a task that installs nvm and node. When installing node (i.e. nvm install v0.12.2), Ansible seems to think the machine state has been changed, even if that version of Node is already installed. When run from the command line when the version is already there, I get this: $ nvm install v0

Re: [ansible-project] RedHat buys Ansible?

2015-10-16 Thread Mark Maas
Well, for Ansible this is awesome! Congrats to you! I'm interested in what it will mean to users though. (Hoping on an open sourced Tower ;-) ) Mark On Friday, October 16, 2015 at 1:49:31 PM UTC+2, J Hawkesworth wrote: > > > > http://www.redhat.com/en/about/press-releases/red-hat-acquire-it-a

[ansible-project] Role within role syntax

2015-10-16 Thread Nathan Sowatskey
Hi I am working on this role: https://github.com/DevOps4Networks/ansible-opendaylight-devtools Within which I would like to use this role: https://github.com/William-Yeh/ansible-oracle-java I have tried adding the role via an include in this file: https://github.com/DevOps4Networks/ansible-op

Re: [ansible-project] RedHat buys Ansible?

2015-10-16 Thread J Hawkesworth
http://www.redhat.com/en/about/press-releases/red-hat-acquire-it-automation-and-devops-leader-ansible On Friday, October 16, 2015 at 9:40:53 AM UTC+1, Dick Davies wrote: > > Sounds likely to me - I know their Satellite system is basically Cobbler > and some extra gubbins, so there's certainly pr

[ansible-project] Re: Inventory issue

2015-10-16 Thread gabor . debreczeni
Thank you guys, I moved now all standalone hosts to the front of the inventory file (before the group definitions) and the issue is gone. On Thursday, 15 October 2015 18:05:31 UTC+1, esco real wrote: > > Hello, > > if you don't want to put lb3 in a group you would need this: > > lb3 > [lb] > lb[1

Re: [ansible-project] RedHat buys Ansible?

2015-10-16 Thread Dick Davies
Sounds likely to me - I know their Satellite system is basically Cobbler and some extra gubbins, so there's certainly prior art there. congratulations to the project if that's the case! On 16 October 2015 at 08:17, Mark Maas wrote: > Hi List, > > I'm hoping this is an early first of April joke,

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

2015-10-16 Thread Santosh Jambhlikar
I use following which works for me sudo: yes but user has sudo to ALL prilvilges On Thursday, 15 October 2015 21:20:21 UTC+5:30, Kevin Jaquier wrote: > > I'm having trouble executing my script from a user with sudo access > instead of root. > > I'm getting "permission denied" errors when playi

[ansible-project] RedHat buys Ansible?

2015-10-16 Thread Mark Maas
Hi List, I'm hoping this is an early first of April joke, but is this true:? http://venturebeat.com/2015/10/15/source-red-hat-is-buying-ansible-for-more-than-100m/ Has this actually happened? Thanks, Mark -- You received this message because you are subscribed to the Google Groups "Ansible Pr