Re: [ansible-project] 1 big repo OR separate repo per app/group?

2016-02-11 Thread Michel Blanc
Le 10/02/2016 21:44, Guy Matz a écrit : Does anyone have an opinion as to whether it's better to keep all ansible code in one repo, or whether it's better to keep separate repos for each group/app/arbitrary distinction? I can see the benefits and pitfalls of both, but can't tell which

[ansible-project] ERROR! privilege output closed while waiting for password prompt: BECOME-SUCCESS

2016-02-11 Thread Mark Maas
Hi All, The following playbook worked fine with Ansible 1.9.4, but is breaking in 2.0.0.2: 1.9.4 version: --- - hosts: - all gather_facts: True - name: Do local stuff hosts: 127.0.0.1 connection: local tasks: - name: Add dev environment to hostsfile sudo: true

Re: [ansible-project] Re: galaxy vs. Ubuntu 15.10

2016-02-11 Thread nusenu
Chris Houseknecht: > Task runner infrastructure upgraded. Hopefully we'll see better > performance. thanks. > Added Ubuntu Wily. Does one has to use the codename? "15.10" does not seem to work still. -- You received this message because you are subscribed to the Google Groups "Ansible

[ansible-project] Re: wait_for a windows file

2016-02-11 Thread 'J Hawkesworth' via Ansible Project
Hmm wait_for is a python module. waiting for the port will work fine as that will presumably be happening on the ansible controller, rather than remotely on the machine you are trying to access. If only waiting for a file will do then you could try using the fetch module to pull the file back

[ansible-project] Re: Running NSSM from copied executables on windows and avoid installing NSSM

2016-02-11 Thread Joe Levis
Ishan, The raw module works pretty much the same on Windows as it does on Linux - anything you can run on the command line can be run using the raw module. So, if you are wanting to use this nssm.exe rather than actually installing nssm, you would simply specify the path to the executable and

Re: [ansible-project] 389 server stops after Ansible "hangs up"

2016-02-11 Thread Brian Coca
command/shell are not good ways of starting services, setup a init script/system|upstart configuration instead. But "if you must", add `nohup` to the command as Ansible immediately terminates the tty and the 'daemon' might not have detached yet or detach correctly which can stall/kill the

[ansible-project] Re: Can not attach CM rom in Vmware

2016-02-11 Thread Asaf Moalem
Hi, Were you able to connect the cdrom? I get the cdrom mounted with the ISO, but not connected. Thanks. Asaf. On Friday, October 16, 2015 at 7:12:32 PM UTC+3, Nick Vanadium wrote: > > Greetings all. Apologies if this is not the correct place to post this but > I wasn't able to find anything

[ansible-project] deploying ansible with ansible

2016-02-11 Thread Frederic Van Espen
Hi, We have an existing architecture where one host manages a number of hosts. Any of these hosts could be managing a number of other hosts. So we have a tree like architecture. MASTER HOST | / \

[ansible-project] Want EIP to move uncondtionally

2016-02-11 Thread Shaun Brady
Hello, Previously I had a playbook that would create an instance and associate an EIP with it. If this EIP was on another host, it would just be moved. I now get: Resource.AlreadyAssociated resource eipalloc-d26705b6 is already associated with associate-id eipassoc-f7bf1d8f

[ansible-project] Running NSSM from copied executables on windows and avoid installing NSSM

2016-02-11 Thread ishan jain
Hi, I am trying to create some services on my windows machines with the help of NSSM and would like to automate the process with Ansible. NSSM module for ansible requires NSSM to be installed on the windows machine but i cannot do that as internet is disabled on my windows machine. I want to

[ansible-project] Re: Copy/Template modules hang on AIX - sh.py

2016-02-11 Thread Mohamed Saffar
Thank you very very very much Matthew, we have the same problem on aix clients and it is a bloker issuer. I confirm that changing the ssh.py with -T option fixes the problem. -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe

[ansible-project] Proper way to handle host data coming from multiple CSV files

2016-02-11 Thread Con Hennessy
Hi, I'm new to ansible and coming from a system where we have multiple CSV files defining projects, hosts, and users which I cannot easily change. If I want to run certain commands I need to gather info from several files. Is there is recommended way of doing this ? I have been looking at

[ansible-project] How to make symbolic links in windows via Ansible ?

2016-02-11 Thread ishan jain
I am trying to make a lot symbolic links for my directories and files and manually i use mklink command to make them. Oddly enough, this command requires admin level privileges to create links. How can i use mklink via ansible with admin privileges to create symbolic links ? -- You received

[ansible-project] Re: Global hooks/tasks

2016-02-11 Thread Tobias Wolf
We had this discussion over lunch, i.e., we pondered how we could get ansible to trigger etckeeper on each host at the conclusion of the playbook. We excluded handlers because handlers are not executed once a playbook fails. Did you find a way to cleanly create a hook like this with having to

Re: [ansible-project] When conditional bug in Ansible 2.0.0.2 ?

2016-02-11 Thread Brian Coca
The previous exception was ignored in this case, 2.0 does not ignore exceptions, that is the main difference. ​This is not a deprecated feature, it was an unreported error.​ -- Brian Coca -- You received this message because you are subscribed to the Google Groups "Ansible Project"

Re: [ansible-project] When conditional bug in Ansible 2.0.0.2 ?

2016-02-11 Thread Brian Coca
see if this helps https://github.com/ansible/ansible/pull/14441 -- Brian Coca -- 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] Re: Help with setting ephemeral volume on EC2

2016-02-11 Thread Roy
What type of instance you are using, because not all instances comes with ephemeral -- 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

Re: [ansible-project] How to Export Ansible Tower job logs

2016-02-11 Thread Matt Martz
For tower questions please contact supp...@ansible.com or https://support.ansible.com This list is for the open source Ansible project. On Thursday, February 11, 2016, wrote: > Hi All, > > Can you please help me out to find a way to export Ansible tower job logs > (Ex:

Re: [ansible-project] When conditional bug in Ansible 2.0.0.2 ?

2016-02-11 Thread Brian Coca
I'm not saying that it is not a problem, just that it is not as easy to mark as 'deprecated' when there was no knob to 'turn off this feature' but a general tightening on propagating and capturing errors. -- Brian Coca -- You received this message because you are subscribed to the

[ansible-project] Ansible Contributor Summit

2016-02-11 Thread Robyn Bergeron
Greetings! Ansible will be holding our first contributor summit on Wednesday, February 17th in London, the day before AnsibleFest. The Ansible core team will be collaborating in person with some of the most prolific members of the Ansible community, and the session will be available to all via

Re: [ansible-project] How to Export Ansible Tower job logs

2016-02-11 Thread Brian Coca
for tower use supp...@ansible.com or http://support.ansible.com -- Brian Coca -- 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

Re: [ansible-project] When conditional bug in Ansible 2.0.0.2 ?

2016-02-11 Thread Mark Maas
Understood, we can call it all kinds of things, but companies and/or teams have been building playbooks with these things. They are now breaking. One team I know is now using it as an excuse to start using puppet again as "Ansible is still a moving target". This isn't a rant. ... ...well maybe a

[ansible-project] How to mount all ephemeral ?

2016-02-11 Thread Roy
Hi, I was creating a playbook to spin up an EC2 instance and then mount all available ephemeral mount to /mnt/ephemeral0, /mnt/ephemeral1 ... etc. First thing I want to do it activate all available ephemeral drive on specific instance in the playbook Then mount all drive to specific mount

[ansible-project] Debian/Ubuntu: Show available updates (or control if all updates are installed)

2016-02-11 Thread Johannes Kastl
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi everyone, is it possible to show all available updates on Debian/Ubuntu/... via apt? Or rather, check if all updates have been installed without errors? Basically something like this (which does not work, I have not tested why): > --- > > -

[ansible-project] Re: yum task fails in playbook

2016-02-11 Thread bryan . yu
Figured out the issue. I set some environmental variables (for Oracle sqlplus) in my playbook that caused conflicts with the yum module. On Thursday, February 4, 2016 at 1:45:20 PM UTC-6, brya...@santecapital.com wrote: > > Ansible 2.0.0.2 > > I can run the yum module via ansible ad-hoc command

[ansible-project] How to Export Ansible Tower job logs

2016-02-11 Thread txavier
Hi All, Can you please help me out to find a way to export Ansible tower job logs (Ex: Job number, Start time, End time etc) Thanks in advance. Regards Thomas Xavier -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this

[ansible-project] Re: Using ansible to call python script with subprocess module to run sqlplus script, Ansible shows missing sqlplus...?

2016-02-11 Thread bryan . yu
Environment variables needed to be set for sqlplus + ansible interaction using shell module with executable /bin/bash and setting specific environment variables (without referencing other env vars) fixed this. If anyone else uses ansible with sqlplus, here's a better play for you - name: Run

[ansible-project] Using ansible to call python script with subprocess module to run sqlplus script, Ansible shows missing sqlplus...?

2016-02-11 Thread bryan . yu
Hello all, I am using ansible to deploy and provision some instances then runs a python script at the very end. The python script uses the subprocess module to call a sql script and generate flat text files. When I directly

[ansible-project] Re: win_copy failing

2016-02-11 Thread 'J Hawkesworth' via Ansible Project
I don't think win_copy can collect from a share like you are trying to do in the example above. The assumption is that the source file you are copying is on the ansible controller. One trick you could use is to run smbclient on the ansible controller to collect the files you want to deploy to

[ansible-project] Re: Adding Multiple Lines to file (Windows Servers)

2016-02-11 Thread 'J Hawkesworth' via Ansible Project
blockinfile is not a windows module unfortunately. There is an as yet un merged module for manipulating the windows hosts file though - perhaps give that a try - https://github.com/ansible/ansible-modules-extras/pull/1455 Hope that helps, Jon On Thursday, 11 February 2016 10:34:55 UTC, Mark

[ansible-project] Adding Multiple Lines to file (Windows Servers)

2016-02-11 Thread Mark Matthews
Hi I am trying to add multiple lines to the host file on some Windows servers. If I use the following playbook I can add one line: --- - name: Add host file entries hosts: all tasks: - name: Check if line is present in config win_lineinfile: dest:

[ansible-project] Re: Adding Multiple lines to file

2016-02-11 Thread 'J Hawkesworth' via Ansible Project
Lots of examples of the various ways to loop here: http://docs.ansible.com/ansible/playbooks_loops.html#standard-loops Depending on what you are trying to achieve, you might actually find the win_template module is easier to work with rather than multiple calls to win_lineinfile Hope this

[ansible-project] Re: Unpack tar.gz on Windows Server?

2016-02-11 Thread 'J Hawkesworth' via Ansible Project
If you want an example role to install 7zip - have a look in the integration tests test/integration/roles/test-win-msi/ All the best, Jon On Wednesday, 10 February 2016 21:55:55 UTC, Slim Slam wrote: > > The easiest way seems to be to install 7z http://www.7-zip.org and use > that. It can

[ansible-project] When conditional bug in Ansible 2.0.0.2 ?

2016-02-11 Thread Mark Maas
Hi List, So I got this great thing here: ``` - name: Copy custom nrpe plugins template: src: "{{ item }}" dest: "{{ nrpe.plugins }}" mode: 0755 owner: "{{ nrpe.user }}" group: "{{ nrpe.user }}" tags: update_nrpe notify: restart nrpe with_fileglob:

Re: [ansible-project] Random undefined variables (facts) since ansible 2.0 upgrade

2016-02-11 Thread Michael Baydoun
In our case, the facts are being gathered, and used other plays included in site.yml, but later on in a subsequent play the a fact that was defined previously is suddenly undefined, on some random hosts, but not all. It's happening on windows and linux hosts. On Thursday, February 11, 2016

Re: [ansible-project] When conditional bug in Ansible 2.0.0.2 ?

2016-02-11 Thread Matt Martz
This is expected. `when` statements work on each iteration of the `with_` loop, and as such the `when` statements are effectively inspected *after* `with_` loops. Ansible 1.9 may have allowed this to pass due to a bug in logic, however 2.0 is more strict, and is properly failing. On Thu, Feb

Re: [ansible-project] When conditional bug in Ansible 2.0.0.2 ?

2016-02-11 Thread Mark Maas
Interesting. But people would expect a time of "deprecated but works" at the least. And besides, I find the original way more logical. (Which will be so for more people, necessitating a deprecation warning, not a complete failure) I'm noticing a lot of stuff gone, sort of broken, changed

Re: [ansible-project] deploying ansible with ansible

2016-02-11 Thread Brian Coca
You can also define hosts D & E with connection settings that use host A as an ssh proxycommand. -- Brian Coca -- 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

Re: [ansible-project] 389 server stops after Ansible "hangs up"

2016-02-11 Thread Joshua J. Kugler
On Thursday, February 11, 2016 09:40:23 Brian Coca wrote: > command/shell are not good ways of starting services, setup a init > script/system|upstart configuration instead. > > But "if you must", add `nohup` to the command as Ansible immediately > terminates the tty and the 'daemon' might not

[ansible-project] Suppress URI module when combined with UNTIL

2016-02-11 Thread Ben Friedman
I'm interfacing with a REST API using the URI module. I need to wait until the return data from the API has a parameter set to a certain string. I also have to use 'no_log: true' so that the URI module does not print sensitive data(uri username/password) to the screen as other

[ansible-project] Re: ping multiple gateways

2016-02-11 Thread wintelgeeks
If I'm understanding it correctly, you are looking for a way to validate if your gateways are pingable. I usually do it using a Excel Ping script where i mention the gateway IPs and hit execute to test if they are reachable. Link to the script.

[ansible-project] ::[ansible-playbook] "--check" as default

2016-02-11 Thread Benjamin Redling
Hi everybody, is it possible to make "--check" the default behaviour? I could only think of a wrapper or aliases, but would prefer to set it in ansible.cfg I have only found always_run=true as the opposite case Regards, Benjamin -- FSU Jena | JULIELab.de/Staff/Benjamin+Redling.html vox: +49

Re: [ansible-project] ::[ansible-playbook] "--check" as default

2016-02-11 Thread Brian Coca
It is not currently possible, but you can open a feature request or pull request to make it so. On Thu, Feb 11, 2016 at 10:42 AM, Benjamin Redling < benjamin.ra...@uni-jena.de> wrote: > Hi everybody, > > is it possible to make "--check" the default behaviour? > > I could only think of a wrapper

[ansible-project] mount volumes based on size

2016-02-11 Thread Govindaraj Venkatesan
Hi All, Currently we are mounting the volume as below - name: mkfs the volume filesystem: fstype=ext4 dev=/dev/vdb tags: mount_zookeeper_fs is there a way we can mount volumes based on the size? sometimes our dev=/dev/vdb changes and is not constant. But the size remains the same.

[ansible-project] lineinfile

2016-02-11 Thread Govindaraj Venkatesan
Hi Team, I have the file with the below content. "Bamboo": { "Endpoint": "http://xx.xx.xxx.xxx:800;, "Zookeeper": { "Host": "//xx.xxx.xxx.xx:2181,xx.xxx.xxx.xx:2181,xx.xxx.xxx.xx:2181", "Path": "/marathon-haproxy/state", "ReportingDelay": 5 } }, I wanted to

[ansible-project] iterating over IPv4/IPv6 (parallel) + TCP ports (nested)

2016-02-11 Thread nusenu
Hi, similar to a question from about a year ago [1], I'm looking for the best way to loop over 3 lists: - {{ ansible_all_ipv4_addresses }} - {{ ansible_all_ipv6_addresses | ipv6('public') }} - tcpports ipv4 and ipv6 IPs should iterate in parallel (I'll check that their list lengths are

[ansible-project] Ansible playbook to deploy a VM in a PXEBOOT envrionment

2016-02-11 Thread Stuart Cracraft
My present Ansible playbook can spin-up a VM in the interactive Ubuntu installation (e.g. waiting for you to select the language on the first screen), but I've not been able to get it instead to go to the PXEBOOT/KICKSTART server on the same network. The P/K works fine when F12 is pressed and

[ansible-project] Re: Can not attach CM rom in Vmware

2016-02-11 Thread kesten broughton
I saw the same problem and have not found a fix for it yet. -- 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

[ansible-project] Re: How to Export Ansible Tower job logs

2016-02-11 Thread txavier
Sure, i will contact the same. Thanks much. Regards Tom On Friday, February 12, 2016 at 1:50:29 AM UTC+5:30, txa...@marketshare.com wrote: > > Hi All, > > Can you please help me out to find a way to export Ansible tower job logs > (Ex: Job number, Start time, End time etc) > Thanks in

[ansible-project] Re: How do I use multiple ansible versions on the same machine for different playbooks that require specific versions?

2016-02-11 Thread ProfHase
I would propose you to use python's virtualenvs: virtualenv ansible17 source ansible17/bin/activate pip install ansible==1.7 # work with it deactivate # next time source ansible17/bin/activate It is the same approach as you are using, but as virtualenv encapsulates the whole environment, so

[ansible-project] Re: How do I use multiple ansible versions on the same machine for different playbooks that require specific versions?

2016-02-11 Thread ProfHase
I would propose you to use python's virtualenvs: virtualenv ansible17 source ansible17/bin/activate pip install ansible==1.7 # work with it deactivate # next time source ansible17/bin/activate It is the same approach as you are using, but as virtualenv encapsulates the whole environment, so

[ansible-project] Re: How to make symbolic links in windows via Ansible ?

2016-02-11 Thread 'J Hawkesworth' via Ansible Project
Obviously you will need to connect as an Administrator user. You don't mention which version of windows you are controlling but you may just need to temporarily disable UAC prompt for Administrator users. On Server 2012 the setting for this is in

Re: [ansible-project] ping multiple gateways

2016-02-11 Thread Benjamin Redling
On 2016-02-09 20:04, Portia Wong wrote: > Currently at my workplace, our hosts have multiple connections to different > gateways. I am trying to find a way to see whether I can easily ping 4-5 > gateways by either running an ad-hoc command or through a playbook to help > me verify that after

Re: [ansible-project] Re: Copy/Template modules hang on AIX - sh.py

2016-02-11 Thread Brian Coca
There is no need to change ssh.py you can set -T in the ssh arguments (globally or for the group/hosts) and it will override the -tt as user options get appended. -- -- Brian Coca -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To

[ansible-project] Powershell Script playbook no running on servers

2016-02-11 Thread Mark Matthews
Hi I have a playbook that is running the below powershell script. If I run the script on the actual server it works perfectly. But when I run the playbook nothing happens on the server. The job returns as changedbut nothing has happened. The playbook does seem to run quite quickly and I was

Re: [ansible-project] Re: Global hooks/tasks

2016-02-11 Thread Brian Coca
i would just have something like incron on the target that triggers etckeeper On Thu, Feb 11, 2016 at 8:11 AM, Tobias Wolf wrote: > We had this discussion over lunch, i.e., we pondered how we could get > ansible to trigger etckeeper on each host at the conclusion of the >

Re: [ansible-project] Random undefined variables (facts) since ansible 2.0 upgrade

2016-02-11 Thread 'J Hawkesworth' via Ansible Project
Do you have fact gathering set to smart in your ansible.cfg? On Thursday, 11 February 2016 13:28:38 UTC, Michael Baydoun wrote: > > In our case, the facts are being gathered, and used other plays included > in site.yml, but later on in a subsequent play the a fact that was defined > previously

[ansible-project] Re: Adding Multiple Lines to file (Windows Servers)

2016-02-11 Thread Mark Matthews
Thanks Jon I will take a look at the link and see if it can help me. Cheers On Thursday, February 11, 2016 at 10:34:55 AM UTC, Mark Matthews wrote: > > Hi > > I am trying to add multiple lines to the host file on some Windows servers. > > If I use the following playbook I can add one line: > >

[ansible-project] Re: Adding Multiple lines to file

2016-02-11 Thread Mark Matthews
Hi Jon Thanks for the response. I was actually able to find a work around. Not a great solution, so will look at win_template. --- - name: Add host file entries hosts: all tasks: - name: Add host file entries win_lineinfile: dest: C:\Windows\System32\drivers\etc\hosts

[ansible-project] Re: Powershell Script playbook no running on servers

2016-02-11 Thread 'J Hawkesworth' via Ansible Project
Hmm, not sure what is going on there. Try running with -v so you can see stdout from script module output Also check the event log to see if there is anything there. When run on the server do you have accept UAC prompt? Might need to turn that off to run remotely via ansible. Hope this

Re: [ansible-project] Possible to loop over conditional variables?

2016-02-11 Thread Brian Huddleston
Thanks for the feedback, it took a bit for me to understand. I think I might be better off declare them individually in my example since that is much easier for other to read and add to and I can see possible text errors with all the brackets and parens that have to be used for each additional

Re: [ansible-project] Random undefined variables (facts) since ansible 2.0 upgrade

2016-02-11 Thread Michael Baydoun
Turning off fact caching completely did not improve the situation. On Thursday, February 11, 2016 at 12:32:02 PM UTC-5, Michael Baydoun wrote: > > We do, and have been looking at that. The facts for all hosts are getting > gathered/refreshed during the first included playbook in site.yml, and

[ansible-project] Re: Adding Multiple lines to file

2016-02-11 Thread Mark Matthews
Hi Matt How exactly would that look like in a playbook? Cheers Mark On Wednesday, February 10, 2016 at 5:11:21 PM UTC, Mark Matthews wrote: > > Hi > > I want to add multiple lines to a host file on some Windows machines. > > I tried using win_lineinfile in the following playbook below...but it

Re: [ansible-project] Re: galaxy vs. Ubuntu 15.10

2016-02-11 Thread Chris Houseknecht
As taken from meta/main.yml created using `ansible-galaxy init` after Ubuntu Wily was added: #- name: Ubuntu # versions: # - all # - lucid # - maverick # - natty # - oneiric # - precise # - quantal # - raring # - saucy # - trusty # - utopic # - vivid # -

Re: [ansible-project] Random undefined variables (facts) since ansible 2.0 upgrade

2016-02-11 Thread Michael Baydoun
We do, and have been looking at that. The facts for all hosts are getting gathered/refreshed during the first included playbook in site.yml, and the cache is not supposed to be expiring for 3 hours, with our entire run taking less than 2 hours. The cache files are present on disk, etcetera.

Re: [ansible-project] Suppress URI module when combined with UNTIL

2016-02-11 Thread Brian Coca
this is a bug, please open a ticket in github using https://raw.githubusercontent.com/ansible/ansible/devel/ISSUE_TEMPLATE.md On Thu, Feb 11, 2016 at 11:16 AM, Ben Friedman wrote: > I'm interfacing with a REST API using the URI module. I need to wait > until the return data