[ansible-project] Task launch playbook with variables and --limit

2017-05-24 Thread Pierre Mavro
Hi, I have to run something like this in a playbook task: ansible-playbook sites/playbook.yml --limit=server1,server2 I would like to include this playbook in another playbook. How to add the --limit parameter: - name: my run list hosts: localhost connection: local gather_facts: False

[ansible-project] wait_for using bastion host

2017-05-24 Thread Igor Cicimov
Try to connect manually with the same ssh command with -vvv switch to find out what went wrong. Also use register in the ansible command and debug the returned value. My guess is missing/mismatch key or security group issue ie the instance has tcp port 22 blocked. -- You received this message

[ansible-project] wait_for using bastion host

2017-05-24 Thread Igor Cicimov
Try to connect manually with the same ssh command with -vvv switch to find out what went wrong. Also use register in the ansible command and debug the returned value. My guess is missing/mismatch key or security group issue ie the instance has tcp port 22 blocked. -- You received this message

[ansible-project] Re: Using powercli in Ansible

2017-05-24 Thread 'J Hawkesworth' via Ansible Project
I think you will almost certainly need to delegate the script task to a machine which has powercli installed on it. I think the bare metal esxi host is unlikely to have powercli installed on it. I am going to say again that it is well worth taking a look at the vmware_guest module (and associat

[ansible-project] Re: Load variables based on the environnement (test, val, prod)

2017-05-24 Thread 'J Hawkesworth' via Ansible Project
I use group_vars for each environment. But I also have some groups which I use in more than one of my inventory files. This is nice as it means things which can be shared across different environments, but not necessarily across all environments, can go in one settings file, and things which ar

[ansible-project] Redis Inventory Variable Template issue

2017-05-24 Thread 'J Hawkesworth' via Ansible Project
In your playbook, did you talk to both groups of hosts before templating? hosts: redis:haproxy (not your exact group names, but you get the idea you can specify multiple gost groups separated by colons here) gather_facts: True tasks: template... -- You received this message because you are s

[ansible-project] Redis Inventory Variable Template issue

2017-05-24 Thread Owen Corcoran
So I’m in a rut.. I have this line in my template. Basically I have set a variable in my inventory file and im trying to access it in my Jinja2 template but as you can guess it’s not working. I need to have the template add the slaveof line on hosts that don’t have the slave string set

[ansible-project] Re: Load variables based on the environnement (test, val, prod)

2017-05-24 Thread Wilfried Anuzet
Btw i found a solution. Not sure if it's the best pratices but it works well for my case. I've defined a variable for all server on the production, validation and testing file: [all:vars] env=production #or validation, testing I create production.yml, validation.yml and testing.yml file in role

[ansible-project] Re: Ansible-OpenStack:cannot ssh into the containers

2017-05-24 Thread Saugata Mallick
Please let me know if you have any solution to this problem. Thank you. On Thursday, 20 April 2017 00:55:57 UTC+5:30, HarJin Park wrote: > > I have same issue, too. > Anyone know how to solve it? > > On Tuesday, April 11, 2017 at 2:26:04 AM UTC+9, Saugata Mallick wrote: >> >> Even I am also facin

Re: [ansible-project] Re: wait_for using bastion host

2017-05-24 Thread Matt Martz
You need to delegate the wait_for task to the bastion server: delegate_to: bastion.host.com On Wed, May 24, 2017 at 7:06 AM 'Ansible Madness' via Ansible Project < ansible-project@googlegroups.com> wrote: > > Sadly I do not have an answer to your question, but as I am facing the > same situatio

[ansible-project] Re: wait_for using bastion host

2017-05-24 Thread 'Ansible Madness' via Ansible Project
Sadly I do not have an answer to your question, but as I am facing the same situation i was curious to know if you found a solution? Rod On Wednesday, 22 June 2016 13:39:46 UTC+2, Vincent Van der Kussen wrote: > > Hi, > > I'm currently testing Ansible for deploying instances on AWS. To reach

[ansible-project] Perform an action on a host if at least one of the other hosts has a certain feature

2017-05-24 Thread Martino Viganò
Good morning, My playboy works on all hosts and is invoked like this: Ansible-playbook -l customer main.yml The customer group in the inventory is done this way: [Customer] customer-ecas1 customer-ecas2 customer-ecas3 ... customer-ecasn customer-cti1 ... ... customer-CTIN What I would like to

[ansible-project] Re: Load variables based on the environnement (test, val, prod)

2017-05-24 Thread Wilfried Anuzet
Thanks for your answer, I don't know if your proposition fit well in my playbook. here my structure of a file like production, testing, validation that I call with: ansible-playbook -i testing install-all.yml Example file: # Actual Wildfly master node [master] wfy01 # Actual Wildfly slave

Re: [ansible-project] Relation between RHEL 7.4 and Ansible ?

2017-05-24 Thread Marcus Franke
On Wed, May 24, 2017 at 01:19:28AM -0700, Jean-Yves LENHOF wrote: > Hi, > > I read a topic about Ansible in the following announcement : > > https://www.redhat.com/en/about/blog/red-hat-enterprise-linux-74-beta-now-available > > But I can't find a reference about it in the release notes... > Wha

[ansible-project] Relation between RHEL 7.4 and Ansible ?

2017-05-24 Thread Jean-Yves LENHOF
Hi, I read a topic about Ansible in the following announcement : https://www.redhat.com/en/about/blog/red-hat-enterprise-linux-74-beta-now-available But I can't find a reference about it in the release notes... What it is about ? Regards, JYL -- You received this message because you are subs