[ansible-project] Re: fatal: [XXXX]: FAILED! => {"changed": false, "failed": true, "msg": "unable to open shell.

2017-08-16 Thread Sunil6057
ANy help. On Monday, August 14, 2017 at 10:52:45 AM UTC-5, Sunil6057 wrote: > > Hi > > When running playbook i am geting (running Ansible 2.4) > > fatal: [X]: FAILED! => {"changed": false, "failed": true, "msg": > "unable to open shell. > > Try host_key .False no use.. > > need

[ansible-project] I want to copy my python script which depends on my other python packages to remote node and run this scripts, is it possible?

2017-08-16 Thread Justin Ren
Hi all, I'm new user for ansible, I want to it's possible? Or it's only possible for module, but it not possible for normal script under files folder? Thanks, Justin -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this

[ansible-project] How to call roles & specify tags for those roles

2017-08-16 Thread Anfield
Trying to run an example from the ansible docs, and it seems to always run both the tagged portions of the playbook... Am I missing how calling a role with tags is supposed to be used? Ansible docs - http://docs.ansible.com/ansible/latest/playbooks_tags.html roles: - { role: webserver,

[ansible-project] Using when conditional to match string in output register

2017-08-16 Thread Ted Meller
Im unable to search my output variable for a specified string that im using for a when statement. The code below is supposed to check for the string "distribute-list" in the output variable but when run the playbook it gives the error. fatal: : FAILED! => {"failed": true, "msg": "The

Re: [ansible-project] Re: ec2_lc - launch configuration user data - uploads to aws OK but disappears!!

2017-08-16 Thread Pshem Kowalczyk
Hi, The user_data must be the actual script you want to run, so it shouldn't have any additional formatting and should start with #!/bin/bash. Something like this should work: user_data: | #!/bin/bash source /home/centos/startup.sh kind regards Pshem On Thu, 17 Aug 2017 at

Re: [ansible-project] can we setup HA Ansible server using community Ansible ?

2017-08-16 Thread htallur
we are looking for a centralized ansible infra. not to create silo's On Thursday, August 10, 2017 at 12:09:38 PM UTC-5, Kai Stian Olstad wrote: > > On 10. aug. 2017 01:12, htallur wrote: > > can we setup HA Ansible server using community Ansible ?. > > > > is there already such solution. >

[ansible-project] can ansible tower cluster nodes be grouped under auto scaling group in aws ?

2017-08-16 Thread htallur
can ansible tower cluster nodes be grouped under auto scaling group in aws ? - I am planning for a scenario when the number of aws instances increases is it possible to spin a ansible tower node part of cluster to handle the load any ideas on how to implement this solution. -- You received

[ansible-project] Examples of Ansible automated supporting and remediation

2017-08-16 Thread Connor Pinkney
Hello, Is there any examples of Ansible being used for automated supporting and remediation Thank you. -- 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] ansible-vault doesn't prompt to create vault password

2017-08-16 Thread Adrian Likins
And fixed in devel/ in https://github.com/ansible/ansible/pull/28185 On Mon, Aug 14, 2017 at 2:18 PM, Matt Mullen wrote: > That works, thanks! > > For anyone else hitting this, it was an already open issue: > https://github.com/ansible/ansible/issues/27885 > > > > On Mon,

[ansible-project] why handers sub topic is not indented same like tasks or vars

2017-08-16 Thread Sameer Modak
How understand and practice correct way of yml or indentation, so confusing - hosts: webservers vars: http_port: 80 max_clients: 200 remote_user: root tasks: - name: ensure apache is at the latest version > here no extra spaces like in handlers tag yum: name=httpd

[ansible-project] suggest me the steps for clearing the hadoop YARN Cache using Ansible

2017-08-16 Thread bibhu patnaik
Hello Group, I am new to Ansible , request you to provide me the Ansible script or suggestion to write the Script for the below steps I would like to delete all the cache folders in my hadoop clusters. please find the below steps and suggest me how can i proceed with Ansible script. 1. Stop

[ansible-project] suggest me the steps for clearing the hadoop YARN Cache using Ansible

2017-08-16 Thread bibhu patnaik
Hello Group, I am new to Ansible , request you to provide me the Ansible script or suggestion to write the Script for the below steps I would like to delete all the cache folders in my hadoop clusters. please find the below steps and suggest me how can i proceed with Ansible script. 1. Stop

Re: [ansible-project] Ansible python scripts and registers issue

2017-08-16 Thread Matt Martz
`pydict` is going to come with a `stdout` key, which will be a string of your dictionary. I don't know how you are printing the dict, but you should probably turn it into JSON and then print it. Then later you can use: (pydict.stdout|from_json).pykey On Wed, Aug 16, 2017 at 11:42 AM, Tom Monte

[ansible-project] Ansible python scripts and registers issue

2017-08-16 Thread Tom Monte
down votefavorite I am running a Ansible script that calls a python script, which manipulates some data and turns it into a dictionary. I want to redirect the python dictionary to a register and then use

Re: [ansible-project] Ansible tower inventories and variables

2017-08-16 Thread Andrew Latham
For tower questions and support please utilize https://access.redhat. com/products/ansible-tower-red-hat This mailing list is for the open source Ansible project. On Wed, Aug 16, 2017 at 10:03 AM, Asil Carlin wrote: > We've implemented the directory structure for multi-stage

[ansible-project] Re: Trigger a new jenkins job through ansible

2017-08-16 Thread 'J Hawkesworth' via Ansible Project
Maybe use the uri module to call jenkins rest api - see https://wiki.jenkins.io/display/JENKINS/Remote+access+API On Tuesday, August 15, 2017 at 4:50:00 PM UTC+1, Seeram Venkatesh wrote: > > Hi Techies, > > I'm looking for a solution where I want to trigger a Jenkins build through > Ansible.

[ansible-project] ansible tower, inventories, group and host_vars

2017-08-16 Thread Asil Carlin
We've implemented our ansible directory structure for multi-stage environments as per the digital ocean blogpost The inventory

[ansible-project] Ansible tower inventories and variables

2017-08-16 Thread Asil Carlin
We've implemented the directory structure for multi-stage environments as per the digital ocean blogpost The inventory files

[ansible-project] User data Not working

2017-08-16 Thread Rohit Maheshwari
Hi, I am putting the below config in ec2_lc module for the server to run the script at the time of start. user_data: { #!/bin/bash source /home/centos/startup.sh } But It is not working. It is giving me below error. 2017-08-15 16:12:46,441 -

[ansible-project] Re: ec2_lc - launch configuration user data - uploads to aws OK but disappears!!

2017-08-16 Thread Rohit Maheshwari
Hi Stephen, Can you please help me with the below script for the user data? I just wanted user data to run "source /home/centos/startup.sh" when the server starts. I had used this user_data: { #!/bin/bash source /home/centos/startup.sh } but it didn't work.

[ansible-project] Re: Use variables from host_vars and if not existent fall back to role vars

2017-08-16 Thread Frieder Heugel
Hi guys Sorry to spam the mailing list. It seems that my previous assumption was wrong and I can indeed use python in defaults. If I understand it correctly the issue was that when I have a hierarchical variable in defaults that gets overwritten by host_vars then the whole block must be

[ansible-project] Re: Use variables from host_vars and if not existent fall back to role vars

2017-08-16 Thread Frieder Heugel
Hi guys Ok it seems that I found the solution for the issue even though I don't understand why it didn't work before. At [1] in my previous post I posted the content of my ./roles/python/vars/main.yml file. There I have a hierarchical variable 'python.pip.pkgs'. When using it like this in the

[ansible-project] Does anybody have users stories about the use of multi -inventory introduced in ansible 2.4 ?

2017-08-16 Thread Vincent JOBARD
Hi everyone, I'm studiying ansible 2.4 behaviour and the impact of multi inventory possibilities to evaluate the impact on our project. I tried many things to try to understand how it will work, but I think it could be clearest with some users stories, and how ansible 2.4 will works. So this

Re: [ansible-project] Re: Skipping: no hosts matched

2017-08-16 Thread eclipxsydney
Thanks Kai for your reply. The Tower documentation was a reference to troubleshoot my problem through the steps they outline, the only reference to "Skipping: no hosts matched" from google search. On Tuesday, 15 August 2017 08:06:00 UTC+10, Kai Stian Olstad wrote: > > On 14. aug. 2017 08:28,