Re: [ansible-project] Variable precedence and why to over rule ?

2017-12-12 Thread akazia . info
OMG! I complete over saw this. Thanks a lot! Am Dienstag, 12. Dezember 2017 20:57:03 UTC+1 schrieb Kai Stian Olstad: > > On Tuesday, 12 December 2017 20.46.26 CET akazi...@gmail.com > wrote: > > there is a quite simple setup I am sure many of us came across this: > > 1. you have lean, slim

[ansible-project] Variable precedence and why to over rule ?

2017-12-12 Thread akazia . info
Hello, there is a quite simple setup I am sure many of us came across this: 1. you have lean, slim and dedicate Roles 2. every role has its own role vars 3. playbooks include the roles Up to this point nothing spezial Now: lest assume you have an base path for an application, most likely you

[ansible-project] Re: How to hot deploy to tomcat with ansible?

2017-12-10 Thread akazia . info
Hello part 1: according to this post the uri does not support src... So no upload can take place. Also the doc seem not to mention src for the uri. does anyone fond a workaround beside doing the curl command via a ansible

[ansible-project] 3 Solutions to structure a deployment ?

2017-11-24 Thread akazia . info
Hello I am currently deploying a new product and came across some problems to structure my Playbook and roles. I have three different solutions and hope to get some input which path might be the best. The product is a webapp on a windows server. The following steps are needed to deploy (high

[ansible-project] How to run only one role out of a playbook?

2017-11-21 Thread akazia . info
Hello I have a site.yml which imports several playbooks. - import_playbook: webservers.yml - Every playbook "calls" several roles: - name: apply the webserver configuration hosts: webservers roles: - javajdk - tomcat - apache Now how can I run lets say only the javajdk role ?

[ansible-project] Re: Are Tags from the dark side ???

2017-11-21 Thread akazia . info
Here is a littel edit: I struggle to find the correct place where I would add the tag for the role. I do not want to tag the role in webservers.yml since this would not be a global definition. But I failed to find the correct place in roles/javajdk - is there any? Other option: assuming i have

[ansible-project] Are Tags from the dark side ???

2017-11-20 Thread akazia . info
Hello I have been reading squilions of articles but I am still unsure if the usage of tags is a good practice. It seems to me that adding tags to tasks quickly leads to a cumbersome situation. How ever a tag on a role might be ok? I think of having a main yaml like sites.yml which includes

[ansible-project] Best practices for folder structure in Ansible

2017-11-20 Thread akazia . info
Hello experts, after going over the ansible documentation I have found this mix of recommendations a good starting point to setup a brand new structure. Here is the idea: 1. Inventory: I split it into two so that I can decouple prod from staging. Concerning the variables would place here only

[ansible-project] Tomcat Role for Windows

2017-11-16 Thread akazia . info
Hello, I am kind of new to ansible. I did my first steps and got the ping from my control server to a windows machine up and working. So far so good. Now I need to install Tomcat from scratch and add later on some patches. I was in the hope to find some example roles on ansible-galaxy but there