Re: [ansible-project] Module Suffix's and custom windows modules

2015-01-09 Thread Brian Coca
Can you test against the latest devel? there was an issue in which if you did not have the corresponding win_.py ansible would not correctly detect the module existence at 'play compile time'. -- Brian Coca -- You received this message because you are subscribed to the Google Groups "Ansible P

Re: [ansible-project] Can I loop over multipe actions?

2015-01-09 Thread Peter Mooshammer
thanks - good point!!! On Friday, January 9, 2015 at 4:38:06 PM UTC-8, Brian Coca wrote: > > there is not currently a way to loop through roles, you can make the > role accept a list and have it's tasks loop over it though. > > also i would advice to not use a variable named 'service' as it can

Re: [ansible-project] Can I loop over multipe actions?

2015-01-09 Thread Brian Coca
there is not currently a way to loop through roles, you can make the role accept a list and have it's tasks loop over it though. also i would advice to not use a variable named 'service' as it can conflict with the module of the same name. -- Brian Coca -- You received this message because yo

Re: [ansible-project] Can I loop over multipe actions?

2015-01-09 Thread Peter Mooshammer
thanks for getting back to me. Here is what i intended: I have a list of docker services: services: - servicename: zapp containername: zapp port: protocol: tcp exposed: false image: zapp - servicename: xox containername: xox port: protocol: udp ex

Re: [ansible-project] Problem with ansible 1.8.2 copy:

2015-01-09 Thread Brian Coca
I'm guessing there is a problem in your global_vars.yml file -- 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+unsubscr...@goog

Re: [ansible-project] How do u set Copr in 2 VPS?

2015-01-09 Thread Brian Coca
without knowledge of copr, I would say you can put this all in 1 playbook, including the git checkout which ansible can do. -- 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 emai

[ansible-project] More on the "include : {{ foo }}.yml" matter - a long and concrete example

2015-01-09 Thread jang
I've been stumbling over this, too. According to this: http://docs.ansible.com/playbooks_roles.html#task-include-files-and-encouraging-reuse and specifically, this: [[[ Note You can not conditionally path the location to an include file, like you can with vars_files. If you find yourself needi

[ansible-project] Ensure command-line tools (or xcode) are installed on OS X?

2015-01-09 Thread Bret Comnes
I was wondering what the best way to ensure that the apple command-line tools (or xcode) are installed on a OS X host. Does anyone know of a good way or of a pattern to ensure that this is the case with ansible? -- You received this message because you are subscribed to the Google Groups "Ans

[ansible-project] Problem with ansible 1.8.2 copy:

2015-01-09 Thread Tore Lindberg Åbodsvik
Ansible V. 1.8.2 fails with copy: Following book --- - hosts: host tasks: - include_vars: ./packages/files/global_vars.yml - copy: src=/tmp/demo dest=/tmp/demo fails with the following error: TASK: [copy src=/tmp/demo dest=/tmp/demo] * fatal: [192

[ansible-project] How do u set Copr in 2 VPS?

2015-01-09 Thread Ray Dobie
Hi guys, I need to set a Copr for community use, and I got vgologuz's email said there r new playbooks for Copr: http://infrastructure.fedoraproject.org/infra/ansible/playbo oks/groups/copr-backend.yml http://infrastructure.fedoraproject.org/infra/ansible/playbo

Re: [ansible-project] Run task only if server belong to some group.

2015-01-09 Thread Dhruvin Shah
Surprisingly simple and powerful. It works like a charm. Thanks Michael and everyone. On Wednesday, October 9, 2013 at 8:07:58 AM UTC-7, Michael DeHaan wrote: > > Yep, as this says, this is a YAML syntax error. > > Since you started the line with a quote, YAML was expecting the whole line > to be

Re: [ansible-project] Configuring IAM permissions/roles via module

2015-01-09 Thread Chris Church
There is an open PR for an IAM module ( https://github.com/ansible/ansible-modules-core/pull/590), but nothing merged that I'm aware of. On Fri, Jan 9, 2015 at 2:25 PM, Gary Malouf wrote: > Are there any roles/module for configuring IAM users, roles, permissions, > etc? > > -- > You received th

Re: [ansible-project] Ansible tower setup fails (centos 6.5)

2015-01-09 Thread Guy Knights
Oh, my apologies. Will do :) On Thursday, January 8, 2015 at 3:45:29 PM UTC-8, Michael DeHaan wrote: > > Hi, > > Please ask Tower questions to sup...@ansible.com - this > list is for the open source project. We'll be super happy to help you > over there. > > Thanks! > > --Michael > > > > On T

[ansible-project] Configuring IAM permissions/roles via module

2015-01-09 Thread Gary Malouf
Are there any roles/module for configuring IAM users, roles, permissions, etc? -- 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+unsubscr...@go

[ansible-project] yum not found?

2015-01-09 Thread Chris Short
I have a test ansible box setup (CentOS 6.6) in a lab environment (it has ansible installed for other to use if they desire, tinkering, etc.) but, I am working off my local machine generally. Interestingly enough, the ansible lab box has issues with being managed by Ansible, specifically yum: I

Re: [ansible-project] Customizing how 'su' is used?

2015-01-09 Thread Michael DeHaan
Replacing the name of the command is not presently possible -- Sudo flags (those sent to sudo) are controllable, however. On Thu, Jan 8, 2015 at 7:14 PM, Ian Whitney wrote: > Can not. This a battle that has come up before. > > Although it's a very different tool, I know that Capistrano I can o

Re: [ansible-project] Re: Can Ansible automatically install and configure the logentries agent?

2015-01-09 Thread Brian Coca
First thing, you don't need to do this: shell: sudo you can do: shell: sudo: true and ansible can take care of passwords (if any) and avoid prompting issues, you can even set sudo: true at play level. A few ways to make this nicer and not rely on shell so much (and avoid us

[ansible-project] Re: Can Ansible automatically install and configure the logentries agent?

2015-01-09 Thread josh
Solved it! Here's the code to set up logentries with ansible on Ubuntu 14.04, just replace --- #Ubuntu 14.04 - name: get source code shell: sudo echo 'deb http://rep.logentries.com/ trusty main' > /etc/apt/sources.list.d/logentries.list creates=/etc/le/config - name: get keys shell: sudo gpg

Re: [ansible-project] Re: collecting "items" across roles and then iterating over them in a handler

2015-01-09 Thread Mark Janssen
Note that this only works in 1.7.x and beyond ... I just ran it on a host still running 1.6.10 and couldn't get it to work until upgrading to 1.7.x Mark On Fri, Jan 9, 2015 at 4:05 PM, Brian Coca wrote: > name the vars differently so they don't override, then you can > mix/match as you please >

Re: [ansible-project] Re: collecting "items" across roles and then iterating over them in a handler

2015-01-09 Thread Brian Coca
name the vars differently so they don't override, then you can mix/match as you please type1_jenkins_mods: - git type2_jenkins_mods: - svn - pipeline common_jenkins_mods: - chuck-norris they you can with_items: "{{common_jenkins_mods|union(type1_jenkins_mods)}}" for example. On Fr

[ansible-project] Re: collecting "items" across roles and then iterating over them in a handler

2015-01-09 Thread Matthew Macdonald-Wallace
Hi Bryan and thanks for the reply. The problem I'm trying to solve is collecting multiple jenkins plugins across roles but only executing the installation of them once. At the moment, I have to list and then install the plugins in each individual /tasks/main.yml whereas what I'd like to do is s

[ansible-project] Re: include: "{{ ansible_os_family }}.yml" not working

2015-01-09 Thread Matthew Macdonald-Wallace
FWIW, we have the following at the top of all of our tasks/main.yml: # include the distro-specific stuff - include: debian.yml when: ansible_distribution == 'Debian' or ansible_distribution == 'Ubuntu' - include: rhel.yml when: ansible_distribution == 'CentOS' or ansible_distribution == 'Red

[ansible-project] Re: Exception: host not found issue with v1.8.2

2015-01-09 Thread James Morgan
Dev environments use Python 2.6.6 Docket has Python 2.7.3 That could well be the root of my issue and why you are unable to reproduce and why I can't on docker -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group a

Re: [ansible-project] Re: SIGHUP sent using ansible ?

2015-01-09 Thread Florian Gysin
I resorted to calling *nohup myservice* which solved the problem, although I'll give the sleep a try as well. On Thursday, January 8, 2015 at 7:24:41 PM UTC+1, Tomasz Kontusz wrote: > > Try sudo /etc/init.d/myservice start && sleep 2. Some services don't > isolate themselves properly on time. >

[ansible-project] Re: Exception: host not found issue with v1.8.2

2015-01-09 Thread James Morgan
I have done some digging and there seems to be a problem with *to_nice_json* . if I use -{{ hostvars | *to_nice_json* }} it breaks if I use -{{ hostvars | *to_json* }} It works correctly def to_json(a, *args, **kw): ''' Convert the value to JSON ''' return json.dumps(a, *args, **kw

Re: [ansible-project] Can I loop over multipe actions?

2015-01-09 Thread Tomasz Kontusz
The solution you've shown is the only one at the moment. Peter Mooshammer napisał: >Hello, > >So include and with_items is depricated and I am wondering how to >implement >the following: > >I have to create a couple of similar services: >(I know this is not working) >- name: loopy > shell: down

[ansible-project] Can I loop over multipe actions?

2015-01-09 Thread Peter Mooshammer
Hello, So include and with_items is depricated and I am wondering how to implement the following: I have to create a couple of similar services: (I know this is not working) - name: loopy shell: download something template: src: dest: service: name={{ service }} state=started with_item