[ansible-project] Playbook doesn't fail with EC2 when no hosts return

2017-03-02 Thread irfad
Usually ansible playbook task fails when there's no host found when using static inventory. But when using EC2.py and when there's no host returns playbook doesn't fail which prevents us from notifying that task has not been run on particular instance with automated tasks. Below is the output o

Re: [ansible-project] idempotent way to convert directory into a link?

2017-03-02 Thread sunnz
thanks kai, i got the stat to work in this way: --- # make /tmp/link-dir--test a link. # delete it if it already exists. - hosts: localhost become: false vars: path__test_dir_link: /tmp/link-dir--test tasks: - name: check if dest is a link stat: path: "{{ path__test_di

[ansible-project] Re: Showing Syntax error in a module

2017-03-02 Thread nexio . global
Thank you for helping me I tried that solution but now it is showing syntax error on different module The offending line appears to be: - name: Update default Apache site ^ here Can you please check the whole script and tell me all the mistakes I have been done in this. It would be very thank

[ansible-project] Re: Ansible Windows become_user per task?

2017-03-02 Thread Matt Davis
Yeah, docs forthcoming for this stuff, but you need to specify a couple more things to make it work (since the global *nix defaults don't make sense under Windows): First and foremost, you never actually said you want to "become", just "who" you want to become- you need to add "become: yes" (th

Re: [ansible-project] uri module and curl

2017-03-02 Thread Dick Davies
I was thinking of a wait_for: task *before* the uri: check, just to give tomcat enough time to start a http connector (I don't think wait_for on its own would work, as there's no option to send a GET to the port). The more I think about it, the more I prefer your idea; I've seen plenty of WARs tha

[ansible-project] Re: Manage Openstack with salt/ansible.

2017-03-02 Thread Pratik Bandarkar
Thanks for reply. I have deployed newton setup and currently I am playing with ansible modules. It seems to be ansible is handy here as there are lots of ansible modules than saltstack states. I might be wrong. Regards, Pratik. On Thursday, 2 March 2017 14:56:36 UTC, Dennis Klein wrote: > >

Re: [ansible-project] How to automatically handle slight difference in configuring Master-slave setup

2017-03-02 Thread Dave Cottlehuber
On Thu, 2 Mar 2017, at 10:19, ishan jain wrote: > I am preparing some Ansible scripts for a service that works in a > master/slave setup. There is a single docker image for both but the > master/slave behavior will be acquired after configuring some environment > variables. > > When i explicitl

Re: [ansible-project] uri module and curl

2017-03-02 Thread Dave Cottlehuber
On Tue, 28 Feb 2017, at 14:38, norricorp wrote: > many thanks to both of you for the replies. > I tried both shell and command modules with the curl command and a > curl: (7) Failed connect to centos7-ansible:8080; Connection > refused" I would check to see if this is resolving to an

Re: [ansible-project] Re: Alternatives to ansible tower.

2017-03-02 Thread Dick Davies
Was about to suggest Rundeck (purely because we already use it for deployments, jenkins sounds like a good option too) - haven't tried this plugin myself but it looks interesting: https://github.com/Batix/rundeck-ansible-plugin On 2 March 2017 at 17:49, Simon Wydooghe wrote: > To pitch in, anoth

[ansible-project] Re: Ansible and Jenkins integration

2017-03-02 Thread Ted Zlatanov
On Thu, 2 Mar 2017 01:27:54 -0800 (PST) ishan jain wrote: ij> I would suggest that you add server2 as a slave in your Jenkins. Create a ij> Jenkins job, configure it to run on this slave and specify the Ansible ij> commands in the build step just like you execute any other shell command. Als

[ansible-project] ansible gives AttributeError: 'AnsibleModule' object has no attribute '_selinux_special_fs' when selinux enable

2017-03-02 Thread Gowtham Shanmugam
ansible gives AttributeError: 'AnsibleModule' object has no attribute '_selinux_special_fs' when selinux enable -- 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

[ansible-project] Ansible gives AttributeError: 'AnsibleModule' object has no attribute '_selinux_special_fs'

2017-03-02 Thread Gowtham Shanmugam
ansible gives AttributeError error when selinux is enables but if i disable selinux then this error is not came, why this problem is this bug or any problem with my setup. Anyone please give solution for this -- You received this message because you are subscribed to the Google Groups "Ansib

[ansible-project] Re: Alternatives to ansible tower.

2017-03-02 Thread Simon Wydooghe
To pitch in, another job runner could be Rundeck. Also, this could be extended with ARA perhaps (https://github.com/openstack/ara). I haven't set up any of this yet, but a Rundeck / ARA combination seems like a nice proof of concept to work out. On Thursday, March 2, 2017 at 11:29:30 AM UTC+1,

Re: [ansible-project] Apply Task for one Host

2017-03-02 Thread Kai Stian Olstad
On 02. mars 2017 11:27, Dennis Klein wrote: Hello, i'm not sure if i understand the Ansible structure correctly and if Ansible is the best solution for us. Our scenario: We are a webhosting company with about 200 VMs (and counting) with mostly individual websites. We also have 4 server farms wh

Re: [ansible-project] Showing Syntax error in a module

2017-03-02 Thread Kai Stian Olstad
On 02. mars 2017 08:47, nexio.glo...@gmail.com wrote: Hello, I am trying to deploying wordpress using Ansible for first time. I installed LAMP on my remote server using Ansible but there was a syntax error while I was trying to install wordpress. it shows-- The error appears to have been in '/ho

Re: [ansible-project] Re: New VMWare Modules in v2.2

2017-03-02 Thread KSS
Personally, I've been using the vcenter module (link below) for over 2 years. I started using it simply because it always used PyVmomi and already had the functionality to create/delete vm snapshots. https://github.com/whereismyjetpack/ansible_vcenter_module It would be great if snapshot capabi

[ansible-project] Ansible 2.2.0.0 does not have problems with tab spaces within playbooks ?

2017-03-02 Thread ishan jain
I was working on Ansible version 2.2.0.0 and my playbook was working fine. I installed a new Ansible host with version 2.2.1.0 and executed the exact same playbook but this time i encountered some problems. After investigating, i realized that my playbook had some tabs which are not valid for Y

[ansible-project] Re: win_shell hangs

2017-03-02 Thread Hmdi Bz
Hello, thank you for the reply, the issue is within the "someApp", even if I start the app manually a cmd windows pops up to start it and when I run the C:\someApp\bin\stop.bat the App stops however the opened cmd windows never closes and that leads the powershell to keep the session alive on u

[ansible-project] Re: Ansible and Jenkins integration

2017-03-02 Thread vu001
Thank you...that is one solution for my problem...I've tested it and works fine Dana četvrtak, 2. ožujka 2017. u 10:27:54 UTC+1, korisnik ishan jain napisao je: > > I would suggest that you add server2 as a slave in your Jenkins. Create a > Jenkins job, configure it to run on this slave and spe

Re: [ansible-project] Alternatives to ansible tower.

2017-03-02 Thread Spike
Rafal, could you elaborate on your needs? I have not tried Tower, but I looked into semaphore and i'm not convinced by it either, I'm not looking for a GUI to manage ansible, which is what it felt like, I just want an api to run jobs and have accounting/logging of what ran where. I'm already work

[ansible-project] Re: Manage Openstack with salt/ansible.

2017-03-02 Thread Dennis Klein
Have you looked at the included modules both have? https://docs.ansible.com/ansible/list_of_cloud_modules.html#openstack https://docs.saltstack.com/en/latest/topics/cloud/openstack.html Am Donnerstag, 2. März 2017 14:19:51 UTC+1 schrieb Pratik Bandarkar: > > > I am plaining to work on automating

[ansible-project] module (redhat_subscription) is missing interpreter line

2017-03-02 Thread stack4cl
Imported ansible redhat_subscription module from the Git hub and created a play book using this module . While running that play book I'm getting error- " fatal: [10.224.2.42]: FAILED! => {"failed": true, "msg": "module (redhat_subscription) is missing interpreter line " . Any idea about this e

[ansible-project] Manage Openstack with salt/ansible.

2017-03-02 Thread Pratik Bandarkar
I am plaining to work on automating tasks which admin generally performs after deploying Openstack.For ex. create/delete/manage instances/volumes/network/heat-stack etc. But, I am bit confused in between salt and ansible. Which one is mature for my usecase with good documentation? Can anyone

[ansible-project] Re: Using Win-regedit module to change ie hardening

2017-03-02 Thread Trent Scholl
Did you end up getting this working? I'm having the same issue with win_regedit On Friday, 17 February 2017 13:32:31 UTC+10, chall...@gmail.com wrote: > > currently i am using power shell > Set-ItemProperty 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet > Settings\ZoneMap\' -Name 'IEH

[ansible-project] Apply Task for one Host

2017-03-02 Thread Dennis Klein
Hello, i'm not sure if i understand the Ansible structure correctly and if Ansible is the best solution for us. Our scenario: We are a webhosting company with about 200 VMs (and counting) with mostly individual websites. We also have 4 server farms where multiple VMs serve one website. (3x We

[ansible-project] Play recap data

2017-03-02 Thread ansible starter
Hi,I ran the following playbook with two tasks. The play recap summary shows 3 OK and 2 changed. Is the OK tab the net amount of tasks which didn't fail(OK+Changed)? I was under the impression it was the number of tasks which didnt change the system status. PLAY [all] ***

[ansible-project] Re: ansible noob trying to ping hosts in hosts file

2017-03-02 Thread Dennis Klein
Have you added your public key in the ~/.ssh/authorized_keys file on the hosts to be allowed to log in with your ssh key? Am Donnerstag, 25. Februar 2016 18:37:17 UTC+1 schrieb markpat...@gmail.com: > > Hi there. > > I just installed ansible on ubuntu 15 and am going through the getting > start

[ansible-project] docker_container recreate doesn't seem to work

2017-03-02 Thread MartinBBG
I have an docker_container that creates a container with state started (lets called this docker container Service). It has a volume_from another container (lets call that container Volume). When the Volume container changes to a new image, we need to recreate the Service container. In ansible,

Re: [ansible-project] Re: New VMWare Modules in v2.2

2017-03-02 Thread Yosemite Sam
Hello, I've been using vmware_guest and vmware_vmotion successfully PyVmomi is a nice addition to Ansible. My wish list includes storage vmotion and snapshot modules. Right now I'm working around their absence with Powershell and PowerCLI for Linux. Jack On Wed, Mar 1, 2017 at 8:00 AM, Dylan

[ansible-project] Showing Syntax error in a module

2017-03-02 Thread nexio . global
Hello, I am trying to deploying wordpress using Ansible for first time. I installed LAMP on my remote server using Ansible but there was a syntax error while I was trying to install wordpress. it shows-- The error appears to have been in '/home/nxadmin/wordpress-ansible/roles/wordpress/tasks/ma

[ansible-project] winrm retries and timeout

2017-03-02 Thread konstantin
is it possible to configure winrm connection with timeout and retries? for shh there is timeout, and retries settings in ansible config. But they are not applied when connection is winrm -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To uns

[ansible-project] Ansible play recap doubt

2017-03-02 Thread ansible starter
In the play recap(summary) does the OK tab means the "total number of tasks which were not changed + which were changed". In other words, the tasks which didn't fail? I was under the impression it was the tasks which didn't change. But the following task output says otherwise. I could not find a

[ansible-project] Alternatives to ansible tower.

2017-03-02 Thread Rafał Radecki
Hi All. I had the pleasure to test Ansible Tower a few months ago. It looked overall well but did not have as many unique features for us to pay for it. Are there any mature open source alternatives? I found semaphore (https://github.com/ansible-semaphore/semaphore) and will check it out. Thank

[ansible-project] Re: Ansible and Jenkins integration

2017-03-02 Thread ishan jain
I would suggest that you add server2 as a slave in your Jenkins. Create a Jenkins job, configure it to run on this slave and specify the Ansible commands in the build step just like you execute any other shell command. On Wednesday, 1 March 2017 16:00:01 UTC+1, vu001 wrote: > > Hi to all! > > I

[ansible-project] How to automatically handle slight difference in configuring Master-slave setup

2017-03-02 Thread ishan jain
I am preparing some Ansible scripts for a service that works in a master/slave setup. There is a single docker image for both but the master/slave behavior will be acquired after configuring some environment variables. When i explicitly setup each container, this is roughly how my playbook wou

Re: [ansible-project] Ansible Get_url module response HTTP Bad Request

2017-03-02 Thread Dick Visser
On 1 March 2017 at 16:14, Shyam Yenna wrote: > I am implementing below task and it throwing me HTTP Error: 400 Bad Request That's not a task, but the (failed) output of it. Since you didn't post your actual task, I will guess that you're downloading a ZIP file, but forgot to escape the spaces i