[ansible-project] Deprecated Warning: Using variables for task params is unsafe, but

2017-10-16 Thread Mark Eisenblätter
hello list, i wanted feed all needed Options to module os_server via a Lookup plugin. this way i would be able to out every logic we need in on plugin. but as i understand this feature is deprecated. I can use the lookup for every value of a param, but then i need a task for every combination

[ansible-project] Ansible-pull and cloud-init and HOME variable

2017-10-16 Thread Pshem Kowalczyk
Hi, I thought I share some info on what took me a few hours of debugging to discover when it comes to using ansible to hydrate ubuntu-based instances using cloud-init. It looks like cloud-init doesn't set HOME variable which prevents a number of modules from working correctly. The modules that

[ansible-project] Re: "here doc" in shell command

2017-10-16 Thread rurpy via Ansible Project
Ah, thank you very much! I actually had seen that SO post before but realize now when I tried it I screwed up (I had left the vertical bar character on the "shell" line, not the command line.) Now I see it does in fact work. But one further question... Where is "cmd" documented? -- You

[ansible-project] Re: Vault and "dictionaries" - bug or feature request?

2017-10-16 Thread Dan Linder
I've added an issue to the Ansible github project for this: https://github.com/ansible/ansible/issues/31705 For what it's worth, if I convert the variable to a dictionary (instead of a list) and pass that through the list Jinja2 filter it works as a list: --- - hosts: localhost gather_facts:

Re: [ansible-project] inbound webhook support

2017-10-16 Thread Dave Cottlehuber
On Mon, 16 Oct 2017, at 12:44, Dave Cottlehuber wrote: > hi folks > > I'd like to trigger ansible from a webhook - a github commit in this > case. How have other people done this? > > A+ > Dave I'm still interested to hear what others do, but here's a working solution from today's hacking using

[ansible-project] Ansible and vmware_guest

2017-10-16 Thread Reza Issany
Hi, Forgive me for my bad english. I'm actually experiencing some problems using the vmare_guest module. I want to create vms on vmware using this module. When I create a new vm, the two nic cards are not connected at boot. This is the first problem. The second one is that I can't change the

[ansible-project] email

2017-10-16 Thread WB Litty
gimme email porfavor mariah :) -- 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...@googlegroups.com. To post to this group, send

[ansible-project] Re: Problems with VMWARE and In-Memory Inventory

2017-10-16 Thread Sebastien Desbois
Hello, The probleme seems that Ansible do not that it needs to loop on the add_host part, since there is no parameter like {{ inventory_hostname }} to indicate it needs to loop on it. Maybe if you try to add a false variable set to the inventory_hostname, it could help it to loop ? Should

[ansible-project] isolated groups in tower 3.2 - rsyncs to itself rather than to one of the nodes in the isolated group?

2017-10-16 Thread Richard Sugg
I have a question about using ansible tower isolated groups. I have the following setup: • Nodes 1-3 are in the “tower” group and are also the controller nodes for Nodes 4-5, which are in the isolated group “restricted.” • I have two inventories, one localhost with instance group set to

[ansible-project] Kill AWS EC2 instances based on TAG (without success)

2017-10-16 Thread Ricardson
Hi All, I`m struggling to get this working without success.. Here my playbook. First a search my machines by tag and later try to terminate them. --- - name: EC2 Facts ec2_instance_facts: region: us-east-1 filters: "tag:Type": "staging" aws_access_key: "{{

[ansible-project] Re: Role to generate System documentation.

2017-10-16 Thread Stephen Eaton
sorry for the late reply, thanks for that will have a play this week On Friday, 7 July 2017 18:03:26 UTC+8, J Hawkesworth wrote: > > ansible-cmdb generates nice looking html pages from gathered facts, that > might be a good place to start. > > Jon > On Wednesday, July 5, 2017 at 11:54:11 PM

Re: [ansible-project] Re: Combine inventory listings

2017-10-16 Thread Brian Coca
Pre 2.4 you can just put the scripts and configuration in the same directory and use the directory as the inventory. There should be no need to wrap the dynamic inventories as they dont have overlapping settings, unless they are the same script. As for remote auth, I recommend setting up

[ansible-project] Ansible AWS Cloudformation Create EC2 instance from a template. I can't add quotes to the security group ID

2017-10-16 Thread David Eaton
Hi, I've searched as much as I can and tried loads of different options to get this to work, but I'm completely stuck. >From an Ansible script, I'm creating Cloudformation stacks that consist of a network stack and a instance stack. Within the network stack I create a security group, then

[ansible-project] Ansible AWS Cloudformation Create EC2 instance from template. I can't add quotes to the security group ID

2017-10-16 Thread David Eaton
Hi, I've searched as much as I can and tried loads of different options to get this to work, but I'm completely stuck. >From an Ansible script, I'm creating Cloudformation stacks that consist of a network stack and a instance stack. Within the network stack I create a security group,

[ansible-project] Re: "here doc" in shell command

2017-10-16 Thread thomas . lehmann
- name: fun fun fun shell: cmd: | #!/bin/bash SCRIPT=$(cat > > I am trying to use a "here doc" in

[ansible-project] inbound webhook support

2017-10-16 Thread Dave Cottlehuber
hi folks I'd like to trigger ansible from a webhook - a github commit in this case. How have other people done this? A+ Dave -- 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,

[ansible-project] Re: Combine inventory listings

2017-10-16 Thread Yannig Perre
In this case, maybe you need to wrap your dynamic inventory script with a shell script that set env variables correctly. Le lundi 16 octobre 2017 10:17:16 UTC+2, Scott a écrit : > > Thats sounds like what I need although (apart from an upgrade from 2.2) > I'm wondering how would that handle the

[ansible-project] Problems with VMWARE and In-Memory Inventory

2017-10-16 Thread Mariano Obarrio Miles
Hi all, I don't know what I do wrong... I try create VMs (vmware) and provisioning after that. But when try add this new vms to inventory with add_host only add one. The task "Gather VM facts (vmware_guest_facts)" recover 2 IPs but then "Add Host to inventory" only add one IP to in-memory

[ansible-project] Re: Combine inventory listings

2017-10-16 Thread Scott
Thats sounds like what I need although (apart from an upgrade from 2.2) I'm wondering how would that handle the different authentication credentials needed for each cloud dynamic scripts? -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To

[ansible-project] Re: Combine inventory listings

2017-10-16 Thread Yannig Perre
Hi, With last version of Ansible (2.4), you can specify multiple inventory files (-i inventory1 -i inventory2). Maybe this is what you're looking for? Regards Le lundi 16 octobre 2017 10:01:51 UTC+2, Scott a écrit : > > Hi, > > I am working with multiple Openstack and AWS clouds and need to

[ansible-project] Combine inventory listings

2017-10-16 Thread Scott
Hi, I am working with multiple Openstack and AWS clouds and need to run application installation on instances across across them. I currently run my playbooks against each cloud separately using the dynamic openstack.py and ec2.py as I need the dynamic functionality thes provide. Apart from

[ansible-project] Templates: how to handle file encoding and line endings?

2017-10-16 Thread thomas . lehmann
Hi, I'm looking forward to *migrate a large configuration package* to Ansible. With a verification script we check that the finally distributed files are the same as we have without Ansible. In first phase we moved everything into the template folder of the role; reducing configuration code with