[ansible-project] keycloak modules support or samples

2020-02-19 Thread Torsten Reinhard
Hi community, I started to provision a KeyCloak instance (based on the Docker image) with the available modules keycloak_client keycloak_group I could´nt find any thread regarding these modules - so my question is if there´s any experience out there? For example I´m interested in - how to c

[ansible-project] Force (dependant) roles with different params to be executed ?

2015-07-01 Thread Torsten Reinhard
Hi all, I have a playbook like: hosts: weblogic ... roles: - { role: weblogic, wls: "{{weblogic['12.1.3']}}" } - { role: weblogic, wls: "{{weblogic['12.1.1']}}" } The role "weblogic" itself has a dependency to a role "java/jdk" dependencies: - { role: java/jdk, jdk_version: "

[ansible-project] copy fails silently on remote host on small $HOME/.ansible/tmp

2015-06-25 Thread Torsten Reinhard
Hi, we are using Ansible 1.8.2, and we stumbled upon a problem after copying and unarchiving a (large) file: failed: [myhost.com] => {"failed": true} msg: Failed to find handler to unarchive. Make sure the required command to extract the file is installed. msg: Failed to find handler to una

[ansible-project] Re: directory layout for grouping playbooks - ansible.cfg ?

2015-05-28 Thread Torsten Reinhard
in addition, also the group_vars cannot be resolved - they are expected relative to the playbook(s) - or the inventory hosts file. => how do i define common group_vars/all.yml - when i want to structure my playbooks in (sub) directories ? Regards, Torsten -- You received this message because

[ansible-project] directory layout for grouping playbooks - ansible.cfg ?

2015-05-28 Thread Torsten Reinhard
Hi, we have several playbooks and roles in our project so I try to organize them in that way: \---deployment \---trunk | ansible.cfg | app1.yml | yml | app[N].yml +---files +---filter_plugins +---group_vars +---libr

[ansible-project] user: root ignored when running on hosts:localhost ?

2015-05-21 Thread Torsten Reinhard
Hi, I´m using Ansible 1.8.2 running on Virtualbox (CentOs6.5) with this small playbook: - name: Test playbook for roles/jdk hosts: localhost user: root vars: jdk_root: /tmp/opt/java roles: - { role: jdk, jdk_version: "1.8.0_40" } The role looks like: --- # # JDK #

[ansible-project] define common group for multiple inventory files?

2015-04-29 Thread Torsten Reinhard
Hi, we have to support several environments (Dev, Test, Preview, Prod) - so we have the following structure for our (static) inventory: inventory -- group dev - hosts - group_vars - host_vars test - hosts

[ansible-project] integrate Maven repository API (Aether) into Ansible?

2015-03-17 Thread Torsten Reinhard
Hi, our developers use Maven for their (local) builds which stores artifacts in the local filesystem (~/.m2/repository) The build server uses the same build - and uploads artifact to a repository server (Nexus), which is a quite common setup I guess. Now we have introduced Ansible - for deploy

[ansible-project] Unit testing python code ?

2015-03-09 Thread Torsten Reinhard
Hi, I´ve written a simple RegEx filter (filter_plugins/filter.py) which is used by some of our playbooks: import re def matchattr(objList, attrib, pattern): listFiltered = [] for item in objList: if re.match(pattern, item[attrib]) is not None: listFiltered.append(

[ansible-project] best practice to assign conditional variables, depending on --extra-vars values

2015-03-05 Thread Torsten Reinhard
Hi, I´ve a "best practice" question of how to define conditional variables, depending on other variables: The requirement is: - --extra-vars "extint_filter=regEx" should filter instances - --extra-vars "internalOnly=true" should filter instances by a 'build-in' filter,read from {{stag

[ansible-project] Re: variable access in a template being looped using with_items

2014-12-17 Thread Torsten Reinhard
looked like the variable isn´t properly passed to the template. Sorry for that, Torsten Am Mittwoch, 17. Dezember 2014 16:47:17 UTC+1 schrieb Torsten Reinhard: > > Hi, > > I have a playbook like: > > --- > ... > vars_files: > - vars/stage-{{stage}}.yml >

[ansible-project] variable access in a template being looped using with_items

2014-12-17 Thread Torsten Reinhard
Hi, I have a playbook like: --- ... vars_files: - vars/stage-{{stage}}.yml - vars/extint/stage-{{stage}}.yml roles: - { role: extint, params: "{{ extint_instance }}" } ... Inside the role "extint" I have this task, processing a template in a loop ... - name: create generate

[ansible-project] Validation of variables

2014-12-16 Thread Torsten Reinhard
Hi all, We currently have all our configuration properties bundled with the application-and therefore its almost a big challenge to change some values. I'm thinking now of extracting all those properties and configs - and move them to Ansible variables, var_files, inventory or whatever. Is there

[ansible-project] execute shell script that starts background process

2014-12-12 Thread Torsten Reinhard
Hi, our development team delivers a start script for a "Listener process". It looks like: #!/bin/sh BASEDIR=$(dirname $0) echo "> Starting Global Listener." ${BASEDIR}/cm listener & I can start this script manually and everything is fine. If I star

Re: [ansible-project] how to filter an item list - with_items filter using RegEx ?

2014-11-18 Thread Torsten Reinhard
roup specifier "hosts:" is the way to do it. > > To talk to all instances ending in that pattern > > - hosts: *_k > > The docs also show how to combine patterns and negate them. > > (The group_by module can also be used to create groups of arbitrary > crite

Re: [ansible-project] Ansible + Jenkins

2014-11-15 Thread Torsten Reinhard
Hi, why dont use a “Shell” Buildstep and inside just do: ansible-playbook –i /path/to/hosts playbook.yml –v –extra-vars . and so on? Of course you need an Ansible installation on your system, first. That´s the way how I´ve setup this – and all playbooks are executed immediately after a SV

[ansible-project] where to manage common inventory properties

2014-11-13 Thread Torsten Reinhard
Hi all, we started to create our inventory and in the beginning we were just fine with the host_vars and group_vars option to place our properties. Now, for some configuration we have almost the same settings on DEV, TEST and PROD environment and I´m think about where to put them. Of course, I

[ansible-project] how to filter an item list - with_items filter using RegEx ?

2014-11-13 Thread Torsten Reinhard
Hi all, like probably most of you, we have multiple servers with multiple application instances (Tomcat, Apache, ..) on it, for example structured like this: [cae:children] cae-1 cae-2 [cae-1] pbdelsweb001.mydomain.com [cae-2] pbdelsweb002.mydomain.com For each group we have a *.yml file at

Re: [ansible-project] deploy artifacts - but download them only once, not for each host ?

2014-11-05 Thread Torsten Reinhard
have multiple plays per file and per invocation. > > On Tue, Nov 4, 2014 at 7:00 AM, Torsten Reinhard > wrote: > >> Hi, >> >> we are working on some playbooks that will deploy Maven artifacts (*.tar, >> *.zip) to our target environments. >> Due to the f

[ansible-project] deploy artifacts - but download them only once, not for each host ?

2014-11-04 Thread Torsten Reinhard
Hi, we are working on some playbooks that will deploy Maven artifacts (*.tar, *.zip) to our target environments. Due to the fact the target environment cannot directly access the Nexus Server (artifact repository) we need first to download them onto the control-machine - and copy/ synchronize f

AW: [ansible-project] unregister a variable ?

2014-10-21 Thread Torsten Reinhard
unclear why this would be showing the behavior you're seeing. Is this the complete list of tasks, and/or there any other tasks that also use that registered variable name? On Mon, Oct 20, 2014 at 5:05 AM, Torsten Reinhard wrote: Hi all, is it possible to "clear" or "un

AW: [ansible-project] launch / shutdown a whole application

2014-10-21 Thread Torsten Reinhard
or if you really thought it needed to be split up "shutdown_foo" and "shutdown_bar", etc. On Wed, Oct 15, 2014 at 4:34 AM, Torsten Reinhard wrote: Hi, we have a huge application consisting of several components (Apache, Tomcat, Weblogic, ...Database) To shutdown th

[ansible-project] unregister a variable ?

2014-10-20 Thread Torsten Reinhard
Hi all, is it possible to "clear" or "unregister" a variable ? I have this situation: deploy.yml - include "deploy-apache.yml" - include "deploy-tomcat.yml" deploy-apache and deploy-tomcat both have a dependency to a "deliver-artifact" role, and both run on the same server(s). The {{installd

[ansible-project] launch / shutdown a whole application

2014-10-15 Thread Torsten Reinhard
Hi, we have a huge application consisting of several components (Apache, Tomcat, Weblogic, ...Database) To shutdown the system properly we want to follow a sequence starting at the "top" (Apache) down to the backend (Database) For launching the system we do the reverse order - starting at the

AW: [ansible-project] how to install tagged release

2014-10-07 Thread Torsten Reinhard
esting to figure out what's going on with your command that appears to hang and power through it. On Tue, Oct 7, 2014 at 9:17 AM, Torsten Reinhard wrote: Hi all, for weeks we´ve been successfully using Ansible 1.6.6 - now we got an update due to our current setup based just on "yu

[ansible-project] how to install tagged release

2014-10-07 Thread Torsten Reinhard
Hi all, for weeks we´ve been successfully using Ansible 1.6.6 - now we got an update due to our current setup based just on "yum install ansible", so we have version 1.7-1.el6. After this update I ran into some problems, Ansible hangs when invoking an "install.sh" in our playbook - without an

[ansible-project] how to install tagged release

2014-10-07 Thread Torsten Reinhard
Hi all, for weeks we´ve been successfully using Ansible 1.6.6 - now we got an update due to our current setup based just on "yum install ansible", so we have version 1.7-1.el6. After this update I ran into some problems, Ansible hangs when invoking an "install.sh" in our playbook - without an