Re: [ansible-project] Tower Notification Template - Hipchat Fails

2016-08-25 Thread Matt Martz
For tower support, please use supp...@ansible.com or utilize https://support.ansible.com This list is for the open source Ansible project. On Thursday, August 25, 2016, Dave Karakas wrote: > I'm trying to configure a HipChat Notification Template in Tower (v3.0.0), >

[ansible-project] Tower Notification Template - Hipchat Fails

2016-08-25 Thread Dave Karakas
I'm trying to configure a HipChat Notification Template in Tower (v3.0.0), however this is not working as expected. Following the guidance provided in the docs (https://docs.ansible.com/ansible-tower/latest/html/userguide/notifications.html), I have configured a notification template however

[ansible-project] Configuring AWS EC2 instance after it's created through Ansible

2016-08-25 Thread Michael Ludvig
Hi there I've got a play that creates an AWS EC2 instance through a CloudFormation template. After it's created I would like to configure it - I can use the AWS tools to do that but I prefer to use Ansible to be consistent with our other deployments. What I have now is: --- - name: Create

[ansible-project] Re: Tower: setup.sh fails with "Please configure passwords in the inventory file before running setup"

2016-08-25 Thread Slawek W
in Your file there is empy pg pass: pg_password=' ' correct it and start install again W dniu piątek, 22 lipca 2016 14:35:40 UTC+2 użytkownik Vasily Kirichenko napisał: > > inventory: > > [primary] > localhost ansible_connection=local > > [secondary] > > [database] > > [all:vars] >

Re: [ansible-project] Processing ansible's output in shell script

2016-08-25 Thread Kai Stian Olstad
On 25. aug. 2016 22:13, ankur.c...@gmail.com wrote: Hi Brian, can you please provide me with an example or any link to samples of this custom call back? https://docs.ansible.com/ansible/developing_plugins.html#callbacks -- Kai Stian Olstad -- You received this message because you are

Re: [ansible-project] Variable declared in inventory not what is put in file - sometimes

2016-08-25 Thread richard kappler
As a matter of fact they all do start with zero. I understand your explanation, but one thing bothers me about it: when this playbook ran earlier on four machines, those site numbers all started with 0 and we had no problem, and on this run all 6 started with 0 and we only had the problem on 4

Re: [ansible-project] Processing ansible's output in shell script

2016-08-25 Thread ankur . cool
Hi Brian, can you please provide me with an example or any link to samples of this custom call back? On Thursday, August 25, 2016 at 8:53:34 PM UTC+5:30, Brian Coca wrote: > > You might want to use a custom callback to modify the output to a format > you want to consume. > > -- > Brian

Re: [ansible-project] Roles purpose

2016-08-25 Thread Chris Boertien
Although you are free to define 'role' whichever way you want, I like to think of 'role' as analogous to 'component' rather than a 1:1 relation to a host group, even though in most cases each host group will likely include a component that is 1:1 with a host group. For example, on a recent

Re: [ansible-project] Variable declared in inventory not what is put in file - sometimes

2016-08-25 Thread Matt Martz
Without knowing what those 4 digit identifiers are, it would be hard to say. Do they start with the number 0? If so, they may have been treated as oct instead of int, and then the int was placed in that file. Such as 0456 being the same as 302, where 0456 was oct, and 302 is the int value. On

[ansible-project] Variable declared in inventory not what is put in file - sometimes

2016-08-25 Thread richard kappler
I have run a playbook that updates an app of ours on numerous customer VM's. This playbook has run fine many times, but today when I ran it to update 6 servers, one of my variables was not properly put into the target files on 4 of the 6 VM's. More specifically, this variable is a four digit

Re: [ansible-project] SSH not working to client machine (ssh from command line works) - Ansible 2.1.0

2016-08-25 Thread Anfield
yes I am logged into the controller as admin and also yes I as admin I can run ssh 10.10.128.2 (Client IP) and connect just using command line.. -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop

Re: [ansible-project] task using raw module is always skipped with "VARIABLE NOT DEFINED!" error

2016-08-25 Thread Kai Stian Olstad
On 25. aug. 2016 19:08, Deep18 wrote: - name: install virtual environment tags: - InstallWiresharkService - InstallVirtualEnv command: virtualenv C:\Users\voiceqa\venv any_errors_fatal: true when: not stat_file.stat.exists register: out - debug: var=out.stderr_lines tags:

Re: [ansible-project] SSH not working to client machine (ssh from command line works) - Ansible 2.1.0

2016-08-25 Thread Anfield
No - all I am doing here is a ping to validate that the controller and target can communicate. This should work before I setup playbooks. Since I read somewhere that it makes sense to setup an ansible user on each machine for use with ansible I had the admin user on each server previously

[ansible-project] running ansible-galaxy install in a playbook

2016-08-25 Thread eric_skaggs
Running ansible 2.1.0 I'm trying to run ansible-galaxy install in a play book to download the needed roles in an automated fashion to my local machine and it seems to skip the task. So far I have tried: - hosts: localhost connection: local tasks: - name: install required roles

[ansible-project] running ansible-galaxy install from a playbook

2016-08-25 Thread eric_skaggs
Running ansible 2.1.0 I'm trying to run ansible-galaxy install in a play book to download the needed roles in an automated fashion and it seems to skip the task. So far I have tried: - hosts: localhost connection: local tasks: - name: install required roles command: galaxy install

[ansible-project] How to run local play with remote inventory?

2016-08-25 Thread Daniel Q. Miranda
Greetings, I'm using Ansible 2.1.1.0 to manage EC2 hosts, with the ec2.py inventory script. I want to run a play locally that uses the EC2 inventory to generate configuration, but I'm having some trouble. If I use: hosts: 127.0.0.1 connection: local I have to manually override the inventory,

[ansible-project] task using raw module is always skipped with "VARIABLE NOT DEFINED!" error

2016-08-25 Thread Deep18
I am running winrm from my Mac with ansible: here is my task thats causes a failure, don't know what variable is being referred here, any help appreciated. *My task file for the playbook with the role:* - name: check if virtualenv exists tags: - InstallWiresharkService -

[ansible-project] Re: winrm Unable to connect to windows10 desktop

2016-08-25 Thread Deep18
I had to delete the 127.0.0.1 port from listening on the http to get the win_ping working. On Monday, August 22, 2016 at 11:57:11 PM UTC-7, J Hawkesworth wrote: > > So ... you are getting connection refused. So winrm is connecting but > isn't happy with something. > Have a look in the event

[ansible-project] How to change Linux guest OS name after clone vmware Linux VM

2016-08-25 Thread Danny Ben Av
Hello, I new user with Ansible , I use this Playbook , but how can i change the Linux guest vm after cloning . when i clone the vm machine i get the same host name . i would like to use the name in the *host.vms* file . Thank You , this is my playbook #> ansible-playbook -i hosts.vms

Re: [ansible-project] SSH not working to client machine (ssh from command line works) - Ansible 2.1.0

2016-08-25 Thread Kai Stian Olstad
On 24. aug. 2016 22:03, Anfield wrote: When I run ansible all -m ping - from the controller to the client (ubuntu) I get the following - Loaded callback minimal of type stdout, v2.0 <10.10.128.0> ESTABLISH WINRM CONNECTION FOR USER: Administrator on PORT 5986 TO 10.10.128.0 <10.10.128.2>

Re: [ansible-project] Roles purpose

2016-08-25 Thread Dave Martin
Even in a small environment, roles are quite useful. I use them for clusters as small as 4. Roles do not have to be 1:1 to host groups (but can be). You might have roles apache, and postgres. Each of those would install the base packages on top of your basic config, which might be handled by

[ansible-project] Ansible change host name after clone in vmware

2016-08-25 Thread Danny Ben Av
Hello , I write an ansible playbook to clone vm linux gues , t but how can change the guest name after the clone ? the command i use to run is : ansible-playbook -i hosts.vms clone_playbook.yml hosts.vms mfp-svt-trial77 datastore='Qa-DataStore' network='NET-10.100.227.0/25'

[ansible-project] Ansible module npm always updates again and again an unchanged npm module

2016-08-25 Thread Franck R
Hi I use Ansible module npm, and it always updates again and again an unchanged npm module. I use a git+https url, state is set to present (try latest, but it s not waht i need). Something must be wrong, anyone has an experience of the kind of thing ? Thx Franck -- You received this

Re: [ansible-project] Processing ansible's output in shell script

2016-08-25 Thread Brian Coca
You might want to use a custom callback to modify the output to a format you want to consume. -- 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

[ansible-project] execute command using ansible hang

2016-08-25 Thread Yao
when run a command using ansible: ansible - test -m shell -a "df -h" Using /etc/ansible/ansible.cfg as config file Loaded callback minimal of type stdout, v2.0 ESTABLISH SSH CONNECTION FOR USER: root SSH: EXEC ssh -C -vvv -o ControlMaster=auto -o ControlPersist=60s -o

[ansible-project] Roles purpose

2016-08-25 Thread Alan Evangelista
I'm a little confused in understanding the exact purpose of roles. Reading http://docs.ansible.com/ansible/playbooks_roles.html , the first examples use a 1:1 association between role and hosts group (eg webservers and dbservers). This makes the "role" terminology meaningful to me, as it is

[ansible-project] Processing ansible's output in shell script

2016-08-25 Thread ankur . cool
Hi All, I have shell script that invokes a playbook. This playbook is check status of my services. What I want to achieve is, after execution of playbook I want this status information in my shell script so that I can do some stuff based on status. So how can we pass data from playbook to

[ansible-project] Processing ansible's output in shell script

2016-08-25 Thread ankur . cool
Hi All, I have a shell script from which I am invoking an ansible playbook. My playbook checks for some status of my services and I want this information to be available in my shell script after playbook execution is complete. I have to share data from ansible to shell script that invoked

[ansible-project] Re: SSH not working to client machine (ssh from command line works) - Ansible 2.1.0

2016-08-25 Thread Anfield
Anyone? -- 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 post to this group, send email to

[ansible-project] Configure a network interface according to its macaddress

2016-08-25 Thread Derrick Lin
Dear all, I am implementing a task which should configure a network interface according to the macaddress. For example: "ansible_eth1": { "active": true, "device": "eth1", "id": "8000.0050568d1cf8", "interfaces": [ "peth1"

[ansible-project] execute any module returns MODULE FAILURE except raw module

2016-08-25 Thread hzj...@foxmail.com
hello, if anyone came across this problem ? SUMMARY execute any module returns MODULE FAILURE except raw module ANSIBLE VERSION ansible 2.1.0.0 config file = /etc/ansible/ansible.cfg configured module search path = Default w/o overrides CONFIGURATION remote_tmp = /tmp/${USER}/ansible