[ansible-project] Re: Configuring Ansible to run play books through a bastion host on aws/ec2

2014-02-06 Thread Nicolas G
A different approach is to setup your bastion with an OpenVPN server, then your client as a laptop will be using the bastion server as a Network Gateway, the IP will be showing as your are connecting from the bastion server. On Wednesday, February 5, 2014 8:59:17 PM UTC+2, Jeff Lord wrote: > >

[ansible-project] node.js process manager provisioning + orchestration(?)

2014-02-06 Thread Nathan Walls
Hi all, I'm responsible for prepping some node.js services for provisioning + orchestration. Along the way, the engineering team passed along a default of pm2. Looking at how it'd be provisioned, it'd be more interesting than a coworker and I particularly care for. Our goal is to have an /etc/

[ansible-project] Include only_if

2014-02-06 Thread pcorchary .
Hello all - This question is for Ansible 1.2 only (required). Can I do an include with only_if: is_set(${some_var})? The idea is that if a top-level var is set then the playbook will be included and executed, and otherwise excluded. Any other way to accomplish the same thing? Or a template fo

Re: [ansible-project] lineinfile task that spans multiple lines

2014-02-06 Thread Walid
The one way i know of is either just use shell/command and use sed, or break this into tasks, the first counts and registers the line needs to be replaced again using shell/cmd "grep", and the second does the lineinfile per item using "with_sequence" and remember to add +1 to the number counted

Re: [ansible-project] Include only_if

2014-02-06 Thread Brian Coca
includes are not conditional, if anything the only_if will be applied to all the tasks included. -- 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-proj

[ansible-project] Re: gce module problems

2014-02-06 Thread Eric Johnson
That may be related, but your openssl commands look good so I suspect there's something else wrong. Unfortunately, I'm (poorly) masking the real error but my guess is that it's related to authentication. The best bet to get to the root of the problem would be to hack up the gce module (line 19

[ansible-project] handlers and role dependencies

2014-02-06 Thread James Martin
Let's say I have a role called haproxy which does basic installation and configuration of haproxy. I'd also have haproxy-riak & haproxy-riakcs roles, which would lay down a configuration file that is tuned for riak and riakcs. These roles would be dependent on haproxy. Is this a good way to use

[ansible-project] lineinfile task that spans multiple lines

2014-02-06 Thread Jeff Geerling
I'm trying to make my lineinfile command that uses multiple lines idempotent: - lineinfile: > dest=/etc/example.conf regexp='^\[test(.*)' line='[test]{{ '\n' }}secondline' I've tried this, and the following regexp variations: regexp=''/^\[test(.*)/s' # trying to get it to work multi

Re: [ansible-project] Get AttributeError: Values instance has no attribute 'su' on ansible == 3260e69

2014-02-06 Thread Paul Durivage
Hi Rinat, Looks like ansible-playbook is importing an older, unpatched version of the base_parser. Running from devel with su, I'm not having this problem. Attempt to fetch the latest version of the library and try again. 09:18 $ ansible-playbook --su --ask-su-pass -vv mine-local/test-su.yml -i

[ansible-project] Re: gce module problems

2014-02-06 Thread Warren Strange
As a follow up this looks like: https://github.com/ansible/ansible/issues/5583 This is what I used to create my .pem key openssl pkcs12 -in 968bebd2b23ddd47d1dbead594f0536ee98b9670-privatekey.p12 -passin pass:notasecret -nodes -nocerts | openssl rsa -out gce.pem On Thursday, February 6,

[ansible-project] gce module problems

2014-02-06 Thread Warren Strange
I am running into a problem the gce module. I suspect it has something to do with my environment. Any tips to further troubleshoot this would be welcome. I am running ansible from git (as of a couple of days ago), and using libcloud 0.14.0. I know there was an issue with the beta3 of libcloud

[ansible-project] Re: template with_items fails with more than one item

2014-02-06 Thread jepper
I spotted the problem..! Missing dash: - trp-adapter.xml - trp.properties -- 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.

[ansible-project] template with_items fails with more than one item

2014-02-06 Thread jepper
I am using templates and with_items to loop over a directory of templates. When I do just one item, in my list it works. With 2 lines it fails: Works: - name: replace variables in templates template: src={{item}}.j2 dest={{ mule }}/{{item}} with_items: # trp-adapter.xml trp.p

Re: [ansible-project] group_vars all organisation

2014-02-06 Thread Brian Coca
the files are pure yaml and get sucked in by the yaml parser, yaml has no way to include other files. -- Brian Coca Stultorum infinitus est numerus 0111011100100110010101101110001001110111011000010110011101010010011100110110110101110111001001110111 Pedo mello

[ansible-project] Get AttributeError: Values instance has no attribute 'su' on ansible == 3260e69

2014-02-06 Thread Rinat Shigapov
I get error when try to use ansible from devel: $ ansible-playbook -i inventories/production/local.ini provisioning/ru-appservers.yml --tag configuration --check - Traceback (most recent call last): File "/home/srk/envs/madmin/bin/ansible-playbook", line 10, in execfile(__file__) Fi

[ansible-project] Re: Vmware VCloud director api interaction with Ansible

2014-02-06 Thread Azul Inho
I have just started looking at ansible (like a hour ago) for this project I am working on. So not sure how some of the code I have is applicable to a playbook. Anyway, there a couple of libraries out there that manage vcloud, apache libcloud (python) which I have used in the past, vcloud-rest wh

[ansible-project] group_vars all organisation

2014-02-06 Thread jepper
I use roles. In group_vars for a role I have for 3 files that contain variables and values: esb mq httpd Sometimes esb needs info that is in httpd. I would like an "all" file to include one or more files, rather merging 3 files into "all", something like this: $cat all - include: esb,mq,httpd

[ansible-project] Re: Noob Question: Automating Playbook Execution

2014-02-06 Thread Wojciech Hajduczenia
Darren Chamberlain, *i would appreciate for any kind of tutorial how you can wrap ansible *playbooks within jenkins environment including any necessary initial setup to hosts/machine that operates jenkins and some simple scripts to test if it works. Thanks in advance On Friday, August 31, 20