Re: [ansible-project] Re: Dealing with a proliferation of playbooks

2016-05-11 Thread Stephen Granger
I'm interested in the best practices for multiple inventories with multiple 'group_vars' also. I've implemented a solution like this and found it cumbersome to have a default set of group_vars that were shared between the inventories. I guess from what I've written, it would make sense to set the

[ansible-project] Re: Dealing with a proliferation of playbooks

2016-05-11 Thread James Pearson Hughes
On Tuesday, May 10, 2016 at 10:27:58 PM UTC-7, J Hawkesworth wrote: > > I don't know what other people do - I suspect it varies a lot according to > use and team size - ansible is very flexible after all, but for what its > worth I moved all my playbooks out of root and into dirs a while ago as

[ansible-project] Re: Ansible Playbook Running Against Wrong Vagrant VM

2016-05-11 Thread Robert F
I just noticed that if I only bring the file server VM up and run the ansible setup command, I get an SSH error saying, "data could not be sent to the remote host". But if I bring the database VM up, the command against the file server runs but the ansible_hostname is "db00", not "fs00" as I

[ansible-project] Ansible Playbook Running Against Wrong Vagrant VM

2016-05-11 Thread Robert F
I have an Ansible playbook which, when I run it, executes its tasks against the wrong Vagrant VM. Here's how I built my VMs: # ~/playbooks/vagrant/Vagrantfile Vagrant.configure(2) do |config| config.ssh.insert_key = false config.vm.box = "vagrant_base" # Fresh

[ansible-project] EC2 dynamic inventory + windows hosts, any way to do a group_vars for that?

2016-05-11 Thread Josh Smift
We wanted a way to combine static and dynamic inventories with a single set of inventory variables, and wrote a script to do it; check out https://github.com/caredotcom/ansible-quartermaster and see if it's any help (either as-is, or as an example, or for humor value, or whatever).

[ansible-project] EC2 dynamic inventory + windows hosts, any way to do a group_vars for that?

2016-05-11 Thread Ricard Clau
Hi I was trying to use the EC2 dynamic inventory to manage a number of Windows and Linux instances and I am struggling trying to find a clean way to do something like a group_vars file in order to use winrm if the host is windows and ssh if the host is Linux Of course, in a static inventory,

[ansible-project] Private Key path for ec2_lc module under userdata field

2016-05-11 Thread Bhotu
I am trying to create new instance with ec2_lc module in ansible. At the time of bootstraping, I want to install some configurations. Those configurations come from the public github file, its basically the ansible playbook. But I need to mention the path for the private key file under

[ansible-project] Re: launch executable on remote node

2016-05-11 Thread 'J Hawkesworth' via Ansible Project
You can use the raw module to run console applications. Things that start a gui may not start due to the lack of an interactive user. - name: import a registry file raw: "reg.exe IMPORT C:\\settings.reg" (by the way, don't the above, use win_regedit or win_regmerge instead - just an example

[ansible-project] Re: Help test WinRM updates for NTLM, kerb delegation

2016-05-11 Thread 'J Hawkesworth' via Ansible Project
I have given this a quick sanity check and I haven't seen any problems yet, although haven't yet had chance to test new features so far... I don't use pip much - do you happen to know if there is an easy way to back out to existing pywinrm (not tried, but would put it onto shared server and

[ansible-project] launch executable on remote node

2016-05-11 Thread skinnedknuckles
Management Node: CentOs 7.1 Ansible 2.1 Remote Node: Windows 7 Powershell 3.0 How do I launch an executable on a remote node running Windows 7? As I understand win_scheduled_task only works with Windows Server 2012 and win_nssm is only for startup services. Is there any other way do do this?

Re: [ansible-project] "Using bare variables is deprecated." but the docs are showing me to use that syntax.?

2016-05-11 Thread Kai Stian Olstad
On 11. mai 2016 11:55, Mark Maas wrote: I've always been following along with the examples here: http://docs.ansible.com/ansible/playbooks_conditionals.html#the-when-statement for instance: ``` - name: Disable requiretty lineinfile: dest: /etc/sudoers regexp: "Defaultsrequiretty"

Re: [ansible-project] Re: tree/hierarchic structure for inventory?

2016-05-11 Thread Krzysztof Zarzycki
If someone come up with a solution (like a dynamic inventory script that reads some inverted inventory dsl), please share, I would be very interested! I see the need for such inverted inventory in the case, where I have a lot of interconnected services, where number of services is really

Re: [ansible-project] Build automation using ESXi, Ansible, Pysphere

2016-05-11 Thread Jason Hiatt
That looks correct, make sure CONTAINERHOSTNAME is changed to the hostname that is running your Docker container. > On May 10, 2016, at 23:04, Dibyendu Paul wrote: > > Thanks Jason. > Just to make sure that I am doing it right. > Could you please confirm if this is

[ansible-project] skip SSH authentication when using synchronize module

2016-05-11 Thread mondher khas
hello there , each time i excecute my playbook i enter passphrase to execute it , and my playbook contain a task synchronize to synchronize files from the contrle machine and remote host . but it's ask me again for the ssh passphrase .is there a method to skip the ssh authentication from

Re: [ansible-project] Python not found in Ubuntu 16.04 server

2016-05-11 Thread codfather
Andreas, when I implemented this, I had to put a line in the section to use sudo for the installation, which makes sense, just wondering if you had achieved that another way , just curious. I initially did these manually for testing, but this is obviously a much better solution for large scale

[ansible-project] Execution of shell module is giving "msg": "MODULE FAILURE", "parsed": false

2016-05-11 Thread Deepa Yr
Hi I am trying to run a setup file on linux machine from shell command and also by creating a custom python module to run the setup file. When it is run, it is failing with this error: {"changed": false, "failed": true, "module_stderr": "", "module_stdout": "", "msg": "MODULE FAILURE",

[ansible-project] "Using bare variables is deprecated." but the docs are showing me to use that syntax.?

2016-05-11 Thread Mark Maas
Hi List, I've always been following along with the examples here: http://docs.ansible.com/ansible/playbooks_conditionals.html#the-when-statement for instance: ``` - name: Disable requiretty lineinfile: dest: /etc/sudoers regexp: "Defaultsrequiretty" line: "# Defaults

[ansible-project] Re: Inventory level files and templates

2016-05-11 Thread Krzysztof Zarzycki
Sorry, the variables "node1","node2", "node3" or "master" were just example variables, unfortunate names. I just meant some children variables of some master variable. W dniu środa, 11 maja 2016 07:44:05 UTC+2 użytkownik J Hawkesworth napisał: > > Not sure I fully understand what you are