[ansible-project] Re: win_update performance

2016-09-06 Thread Matt Davis
Ansible isn't doing anything magic around Windows Updates (other than synchronous application)- we're just using the Windows Update client API, so it should take about the same amount of time via Ansible as it would to do it interactively. If you're doing something like booting a 2008R2 RTM

[ansible-project] Not able ping instances using dynamic inventory

2016-09-06 Thread challa . tek
I have downloaded ec2.py and ec2.ini files and placed them under /etc/ansible/inventory and i have changed the ansible.cfg to inventory = /etc/ansible/inventory/ec2.py i have environment variables set up as export AWS_ACCESS_KEY_ID="XXX" export

[ansible-project] Possible for ansible.log to have a DATE or TIMESTAMP in the name of the log?

2016-09-06 Thread johhue
Hello, is it possible to add a date or date/time extension to ansible.log files created? In ansible.cfg, I would like the log files to be created as ansible.log.20160906 I would think based on the other config options I see in ansible.cfg I could make use of the date/time variables, specify

[ansible-project] shameless plug for new windows modules

2016-09-06 Thread 'J Hawkesworth' via Ansible Project
Hello, I've created a couple of pull requests recently for two new windows modules, win_msg and win_say. win_msg will pop up messages on windows hosts (usefull for warning users to log out during upgrades, for example) win_say is a text to speech module, which will also optionally play a .wav

Re: [ansible-project] ERROR! Missing target hosts, yet --list-hosts shows targets

2016-09-06 Thread Brian Coca
You must run ansible-playbook not ansible, this one is for adhoc tasks, not plays. It expects a host list but you are supplying a file, hence the error. -- Brian Coca -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe

[ansible-project] Auth issue in script using Azure Powershell

2016-09-06 Thread Barney Sowood
Hi, I've got a powershell script that I'm currently invoking using the script module - assuming I can get this working I'll probably turn it into a module, but I need to get over some issues first. The purpose of the script is to configure Azure Online Backup on an on premise Windows Server. The

[ansible-project] Milestone and Label changes

2016-09-06 Thread Brian Coca
Hi, We have made some changes on how we use milestones and labeling in hopes of making things clearer: * Milestones are now used only for where an issue or pull request(PR) will be fixed/merged into. We used to use them for 'this affects version x'. This was confusing and did not work well as

[ansible-project] Re: PyCharm & Modules

2016-09-06 Thread Mumshad Mannambeth
I figured out a way to debug using PyCharm remote debugger. I have written down the steps here if anyone else needs info: https://github.com/mmumshad/debug-ansible-modules-pycharm Thanks Mumshad On Monday, 5 September 2016 22:10:30 UTC-4, Mumshad Mannambeth wrote: > > Hi Smith, > > Found any

Re: [ansible-project] ansible stuck at setup module

2016-09-06 Thread Sharuzzaman Ahmat Raslan
this issue was solved by my colleague it turns out that there is LVM lock that cause vgs command to stall clearing that lock, also allow vgs to complete, and ansible to work after that in summary, if you are stuck with setup, check your filesystem. On Tuesday, September 6, 2016 at 10:10:29

Re: [ansible-project] Re: Ansible windows modules

2016-09-06 Thread Stavros
Hello Takeshi, what do you actually mean by asking if the workaround has idempotence? That you run this and nothing changes/happens on the target host? If you tried it so far, then you can see if the .Net Framework is installed only by searching the installed Windows updates. There you will

[ansible-project] lineinfile able to change all occurrences of pattern?

2016-09-06 Thread Ryan Groten
If a regexp matches multiple lines in a file, lineinfile will only change the first occurrence. Is there a way to make change them all? I saw someone used another task to count the number of occurrences of a pattern and then loop using with_sequence in the lineinfile task but I'm wondering

[ansible-project] Unsupported config option error with docker_service module

2016-09-06 Thread Valentin Chartier
Unsupported config option error with docker_service module Hello, I am having some trouble using the docker_service module and I 'm looking for some suggestions on how to troubleshoot this. I have the docker_container working properly. The issue is with the new docker_service module. According

[ansible-project] Parallel deployment

2016-09-06 Thread marcoskv
Hello Ansible users! I am looking for suggestions for my particular use case, for which I could not find many other solution online. Let's say my web application runs on 2 servers: 1 web-server + 1 db server. To deploy each one of my servers, I have a playbook like one of the followings.

[ansible-project] "Unsupported config option" error with the docker_service module

2016-09-06 Thread Valentin Chartier
Hello, I am having some trouble using the docker_service module and I 'm looking for some suggestions on how to troubleshoot this. I have the docker_container working properly. The issue is with the new docker_service module. According to the docker_service module

[ansible-project] Re: Unarchive Module Failing with Return Code 11

2016-09-06 Thread Stuart Begg
Hi, Stephen I think I'm seeing a similar outcome. I suspect something has changed with the way unarchive works in more recent versions. I have a playbook that has the following lines in it: - name: copy and unpack the artifacts to the host unarchive: src=../build/dist/jj.tar.gz

[ansible-project] Re: Baremetal provisioning on Windows Hyper-V

2016-09-06 Thread Mike Fennemore
Why not go the route of powershell from the Ansible control machine? Would the hyper-v module need to have feature parity with vmware module? -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving

[ansible-project] Re: How clone git repository on windows using SSH keys and ssh-agent?

2016-09-06 Thread Mike Fennemore
Personally I would just use the client https://git-scm.com. At least that will also give you the option to add to Windows Path environmental variable. -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop

[ansible-project] Re: How clone git repository on windows using SSH keys and ssh-agent?

2016-09-06 Thread Mike Fennemore
Which version of Windows are you using? Are you using Cygwin or OpenSSH for the sshd-agent? On Tuesday, September 6, 2016 at 4:38:16 PM UTC+2, Андрей Круглов wrote: > > Ansible has not git_win module (see here: >

[ansible-project] Re: How clone git repository on windows using SSH keys and ssh-agent?

2016-09-06 Thread Андрей Круглов
Control host is Centos 7, clients -- Windows 10. I use msysgit, it has some wrappers in /cmd folder (git.exe, gitk.cmd and start-ssh-agent.cmd). Should i change git client on windows hosts? вторник, 6 сентября 2016 г., 17:44:36 UTC+3 пользователь Mike Fennemore написал: > > Which version of

[ansible-project] How clone git repository on windows using SSH keys and ssh-agent?

2016-09-06 Thread Андрей Круглов
Ansible has not git_win module (see here: https://groups.google.com/forum/#!searchin/ansible-project/git$20windows|sort:relevance/ansible-project/-uSBtqDPg0s/gPWlTlw3BwAJ ) I use msysgit to clone git repository under windows. Something like: - name: clone repositories > raw:

[ansible-project] win_update performance

2016-09-06 Thread Mike Fennemore
Ansible has the functionality to be used for configuration management but it seems the win_update module takes a considerable amount of time to run. Are there plans to improve the performance of the module? I would ideally like to be able to use it to force immediate installation of updates

[ansible-project] How to ignore all task errors in a playbook?

2016-09-06 Thread Josh Smift
HG> I am going to write a long playbook where every single task can fail, HG> yet the playbook must proceed. If I write down "ignore_errors" in each HG> task, the playbook will get too long and too verbose. Can you put the whole thing in a block? A short example: - hosts: localhost tasks:

Re: [ansible-project] register with with_together not working

2016-09-06 Thread Kai Stian Olstad
On 05.09.2016 07:16, AnsiNoob wrote: My register works fine with usual playbooks but the moment I use register with with_together then no value is saved in variable? :( That's because all the with_ that combines data have a different schema than ordinary register. *My playbook:* - name: