Re: [ansible-project] Re: looping over set of tasks (roles?)

2016-10-19 Thread Nick Tkach
Thank you very much! No wonder I hadn't figured this out earlier! I'm sure there's just some aspect I never looked into. Just for the next person who comes along what I got to work was playbook.yml --- - hosts: localhost become: false tasks: - include: "roles/httpd/tasks/main.yml"

[ansible-project] Re: How to read variable file each iteration of a task?

2016-10-19 Thread Nick Tkach
of Ansible for now). So unfortunately I don't think we can take advantage of inventory or group. On Wednesday, October 19, 2016 at 8:39:35 AM UTC-5, Nick Tkach wrote: > > Yes, thanks I think that does help some. I think the part I'm missing > still is how to somehow pull in each file name one

[ansible-project] Re: How to read variable file each iteration of a task?

2016-10-19 Thread Nick Tkach
t;My site {{ site_name }} is running on port {{ port_number > }}." > > ... > > # vim: ft=ansible: > > Sorry if the formatting is a little wonky the code widget is a little > weird sometimes. > > Hope this helps, best of luck. > > Alex > > > > On Tues

[ansible-project] How to read variable file each iteration of a task?

2016-10-18 Thread Nick Tkach
So, the general idea is I've got a playbook that has a set of "property" files (yaml format). Different filenames, but the variable names inside are the same: group_vars/siteA.yml --- site_name: appA port: 8080 group_vars/siteB.yml --- site_name: appB port: 8090 and so on. I want to run a

[ansible-project] Examples of Multiple Instances of a "thing" on a single box

2016-09-20 Thread Nick Tkach
Does anyone know of any good examples of having more than one instance of an app per box? Most examples seem to be grouped into something like web_servers group has boxes 1,2,3 and has a nice, neat *one* httpd on 1, *one* httpd on 2, and *one* httpd on 3. Problem I'm having is that I'm

[ansible-project] Reset vars between plays on same host

2015-07-14 Thread Nick Tkach
Is there a way to somehow reset variables in-between plays? What I'm trying to do is make a playbook that creates my standard tomcat instance layout. So given the setup below, as I understand it you'd have app files group_vars where you could set whatever things specific to that app instance