# Archives

**URL:** https://forum.ansible.com/c/archives/31.md?page=559

[Latest](https://forum.ansible.com/latest.md) · [Categories](https://forum.ansible.com/categories.md) · [Tags](https://forum.ansible.com/tags.md)

**Page:** 560

---

## [ssh connection other than root user](https://forum.ansible.com/t/ssh-connection-other-than-root-user/22403)

<div class="topic-metadata">

**Author:** [@Athul\_Devadas](https://forum.ansible.com/u/Athul_Devadas)\
**Replies:** 0\
**Last updated:** [August 26, 2016, 7:28pm UTC](https://forum.ansible.com/t/ssh-connection-other-than-root-user/22403 "2016-08-26T19:28:59Z")

</div>

Hi I am new to Ansible and ssh. I have two Linux machine. I have a user named test in both. Copied the public key from the controller machine to node and i try to connect it through ansible. I am not able to connect. D…

---

## [Unable to ping](https://forum.ansible.com/t/unable-to-ping/22360)

<div class="topic-metadata">

**Author:** [@RICCARDO\_RUSSO](https://forum.ansible.com/u/RICCARDO_RUSSO)\
**Replies:** 1\
**Last updated:** [August 26, 2016, 7:06pm UTC](https://forum.ansible.com/t/unable-to-ping/22360 "2016-08-26T19:06:11Z")

</div>

Hello, the following ansible 2.1.1.0 command hangs: ansible@ansible:~/playbooks/APS/test$ ansible -vvv 10.162.38.161 -m ping -i /home/ansible/playbooks/APS/inventory/inventory.cfg

---

## [Inventory variable not available in hostvars](https://forum.ansible.com/t/inventory-variable-not-available-in-hostvars/22375)

<div class="topic-metadata">

**Author:** [@Douglas\_Hammond](https://forum.ansible.com/u/Douglas_Hammond)\
**Replies:** 1\
**Last updated:** [August 26, 2016, 6:39pm UTC](https://forum.ansible.com/t/inventory-variable-not-available-in-hostvars/22375 "2016-08-26T18:39:16Z")

</div>

I’m trying to create client configs for each host in a group. When the template is parsed the inventory set variable is not available in the template. bareos/Defaults/main.yml bareos\_client\_fileset: SomeFileSet bareos…

---

## [SSH not working to client machine (ssh from command line works) - Ansible 2.1.0](https://forum.ansible.com/t/ssh-not-working-to-client-machine-ssh-from-command-line-works-ansible-2-1-0/22373)

<div class="topic-metadata">

**Author:** [@Anfield](https://forum.ansible.com/u/Anfield)\
**Replies:** 5\
**Last updated:** [August 26, 2016, 6:07pm UTC](https://forum.ansible.com/t/ssh-not-working-to-client-machine-ssh-from-command-line-works-ansible-2-1-0/22373 "2016-08-26T18:07:49Z")

</div>

When I run ansible all -m ping -vvvv 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 POR…

---

## [include\_role](https://forum.ansible.com/t/include-role/22401)

<div class="topic-metadata">

**Author:** [@Brian\_Coca](https://forum.ansible.com/u/Brian_Coca)\
**Replies:** 0\
**Last updated:** [August 26, 2016, 6:01pm UTC](https://forum.ansible.com/t/include-role/22401 "2016-08-26T18:01:09Z")

</div>

So hoping to get this ironed out for the 2.2 release, I’ve merged include\_role into devel which now allows you to use ‘roles as tasks’. I know this is a feature many of you are eager to play with, so I thought we should…

---

## [Merging dictionaries for "environment" parameter](https://forum.ansible.com/t/merging-dictionaries-for-environment-parameter/15827)

<div class="topic-metadata">

**Author:** [@Steven\_Ringo](https://forum.ansible.com/u/Steven_Ringo)\
**Replies:** 15\
**Last updated:** [August 26, 2016, 4:35pm UTC](https://forum.ansible.com/t/merging-dictionaries-for-environment-parameter/15827 "2016-08-26T16:35:43Z")

</div>

Hi, I am wanting to use the environment task parameter with dictionaries taken from two roles, e.g. in roles/ruby/vars/main.yml: ruby\_environment: GEM\_HOME: "/home/deploy/.gem/ruby/2.1.2" PATH: "/home/depl…

---

## [Retrying a command until a JSON response contains a specific key](https://forum.ansible.com/t/retrying-a-command-until-a-json-response-contains-a-specific-key/22398)

<div class="topic-metadata">

**Author:** [@Jean-Denis\_Vauguet](https://forum.ansible.com/u/Jean-Denis_Vauguet)\
**Replies:** 0\
**Last updated:** [August 26, 2016, 4:34pm UTC](https://forum.ansible.com/t/retrying-a-command-until-a-json-response-contains-a-specific-key/22398 "2016-08-26T16:34:25Z")

</div>

Hi, I have somewhat of an edge-case I just have no idea how to properly handle using Ansible. In a playbook, I’m provisioning an AWS Elasticsearch domain, an asynchronous task. On AWS, booting the cluster takes a few m…

---

## [How to \<git submodule update\> with Ansible's Git module ?](https://forum.ansible.com/t/how-to-git-submodule-update-with-ansibles-git-module/22397)

<div class="topic-metadata">

**Author:** [@Soren\_Jentzsch](https://forum.ansible.com/u/Soren_Jentzsch)\
**Replies:** 0\
**Last updated:** [August 26, 2016, 2:06pm UTC](https://forum.ansible.com/t/how-to-git-submodule-update-with-ansibles-git-module/22397 "2016-08-26T14:06:24Z")

</div>

Hi Ansible-Community, first of all I would like to mention that I am quite proud to be part of the Ansible Community. I introduced Ansible within some innovative Robotic-related projects inside a large company where I …

---

## [replacing public ip with private in /etc/hosts](https://forum.ansible.com/t/replacing-public-ip-with-private-in-etc-hosts/22396)

<div class="topic-metadata">

**Author:** [@Auto-mate](https://forum.ansible.com/u/Auto-mate)\
**Replies:** 0\
**Last updated:** [August 26, 2016, 1:50pm UTC](https://forum.ansible.com/t/replacing-public-ip-with-private-in-etc-hosts/22396 "2016-08-26T13:50:45Z")

</div>

I am trying to replace public ip with private ip in /etc/hosts for bulk of hosts . Current setup PUBLIC\_IP hostname shot\_hostname Needed : PRIVATE \_IP hostname short\_hostname How I can do it using ansible? I wonder …

---

## [Processing ansible's output in shell script](https://forum.ansible.com/t/processing-ansibles-output-in-shell-script/22380)

<div class="topic-metadata">

**Author:** [@ankur.cool](https://forum.ansible.com/u/ankur.cool)\
**Replies:** 11\
**Last updated:** [August 26, 2016, 1:05pm UTC](https://forum.ansible.com/t/processing-ansibles-output-in-shell-script/22380 "2016-08-26T13:05:13Z")

</div>

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 c…

---

## [Role Dependencies Skipping Included Files](https://forum.ansible.com/t/role-dependencies-skipping-included-files/22395)

<div class="topic-metadata">

**Author:** [@steve5](https://forum.ansible.com/u/steve5)\
**Replies:** 0\
**Last updated:** [August 26, 2016, 12:26pm UTC](https://forum.ansible.com/t/role-dependencies-skipping-included-files/22395 "2016-08-26T12:26:09Z")

</div>

I have a scenario where I have two top level roles in a playbook: {role: roleA, tag: roleA} {role: roleB, tag: roleB} Role A and Role both depend on Role C in their meta/main.yml meta/main.yml for Role A dependencies…

---

## [Tower Notification Template - Hipchat Fails](https://forum.ansible.com/t/tower-notification-template-hipchat-fails/22391)

<div class="topic-metadata">

**Author:** [@Dave\_Karakas](https://forum.ansible.com/u/Dave_Karakas)\
**Replies:** 1\
**Last updated:** [August 26, 2016, 3:09am UTC](https://forum.ansible.com/t/tower-notification-template-hipchat-fails/22391 "2016-08-26T03:09:03Z")

</div>

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 (Ansible Documentation), I have configured a notification t…

---

## [Tower: setup.sh fails with "Please configure passwords in the inventory file before running setup"](https://forum.ansible.com/t/tower-setup-sh-fails-with-please-configure-passwords-in-the-inventory-file-before-running-setup/22085)

<div class="topic-metadata">

**Author:** [@Vasily\_Kirichenko](https://forum.ansible.com/u/Vasily_Kirichenko)\
**Replies:** 1\
**Last updated:** [August 25, 2016, 9:29pm UTC](https://forum.ansible.com/t/tower-setup-sh-fails-with-please-configure-passwords-in-the-inventory-file-before-running-setup/22085 "2016-08-25T21:29:51Z")

</div>

inventory: \[primary\] localhost ansible\_connection=local \[secondary\] \[database\] \[all:vars\] admin\_password=‘p1’ redis\_password=‘p1’ pg\_password=‘p1’ #pg\_host=‘’ #pg\_port=‘’ pg\_database=‘awx’ pg\_username=‘awx’ …

---

## [Variable declared in inventory not what is put in file - sometimes](https://forum.ansible.com/t/variable-declared-in-inventory-not-what-is-put-in-file-sometimes/22390)

<div class="topic-metadata">

**Author:** [@richard\_kappler](https://forum.ansible.com/u/richard_kappler)\
**Replies:** 2\
**Last updated:** [August 25, 2016, 8:32pm UTC](https://forum.ansible.com/t/variable-declared-in-inventory-not-what-is-put-in-file-sometimes/22390 "2016-08-25T20:32:39Z")

</div>

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 fi…

---

## [Roles purpose](https://forum.ansible.com/t/roles-purpose/22383)

<div class="topic-metadata">

**Author:** [@Alan\_Evangelista](https://forum.ansible.com/u/Alan_Evangelista)\
**Replies:** 2\
**Last updated:** [August 25, 2016, 7:15pm UTC](https://forum.ansible.com/t/roles-purpose/22383 "2016-08-25T19:15:52Z")

</div>

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 d…

---

## [task using raw module is always skipped with "VARIABLE NOT DEFINED!" error](https://forum.ansible.com/t/task-using-raw-module-is-always-skipped-with-variable-not-defined-error/22387)

<div class="topic-metadata">

**Author:** [@Deep18](https://forum.ansible.com/u/Deep18)\
**Replies:** 1\
**Last updated:** [August 25, 2016, 6:55pm UTC](https://forum.ansible.com/t/task-using-raw-module-is-always-skipped-with-variable-not-defined-error/22387 "2016-08-25T18:55:18Z")

</div>

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 …

---

## [running ansible-galaxy install in a playbook](https://forum.ansible.com/t/running-ansible-galaxy-install-in-a-playbook/22389)

<div class="topic-metadata">

**Author:** [@eric\_skaggs1](https://forum.ansible.com/u/eric_skaggs1)\
**Replies:** 0\
**Last updated:** [August 25, 2016, 6:21pm UTC](https://forum.ansible.com/t/running-ansible-galaxy-install-in-a-playbook/22389 "2016-08-25T18:21:48Z")

</div>

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: local…

---

## [How to change Linux guest OS  name after clone vmware Linux VM](https://forum.ansible.com/t/how-to-change-linux-guest-os-name-after-clone-vmware-linux-vm/22386)

<div class="topic-metadata">

**Author:** [@Danny\_Ben\_Av](https://forum.ansible.com/u/Danny_Ben_Av)\
**Replies:** 0\
**Last updated:** [August 25, 2016, 5:03pm UTC](https://forum.ansible.com/t/how-to-change-linux-guest-os-name-after-clone-vmware-linux-vm/22386 "2016-08-25T17:03:27Z")

</div>

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 . T…

---

## [Ansible module npm always updates again and again an unchanged npm module](https://forum.ansible.com/t/ansible-module-npm-always-updates-again-and-again-an-unchanged-npm-module/22385)

<div class="topic-metadata">

**Author:** [@Franck\_R](https://forum.ansible.com/u/Franck_R)\
**Replies:** 0\
**Last updated:** [August 25, 2016, 3:20pm UTC](https://forum.ansible.com/t/ansible-module-npm-always-updates-again-and-again-an-unchanged-npm-module/22385 "2016-08-25T15:20:54Z")

</div>

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…

---

## [Can a Callback change the output of a module](https://forum.ansible.com/t/can-a-callback-change-the-output-of-a-module/22376)

<div class="topic-metadata">

**Author:** [@Damien\_Garros](https://forum.ansible.com/u/Damien_Garros)\
**Replies:** 3\
**Last updated:** [August 25, 2016, 12:54pm UTC](https://forum.ansible.com/t/can-a-callback-change-the-output-of-a-module/22376 "2016-08-25T12:54:21Z")

</div>

Hi I’m trying to build my own Callback plugin and I’m still struggling to understand if it’s possible to modify the JSON structured returned by a module within a Callback plugin or not. I would like to collect informat…

---

## [Processing ansible's output in shell script](https://forum.ansible.com/t/processing-ansibles-output-in-shell-script/22381)

<div class="topic-metadata">

**Author:** [@ankur.cool](https://forum.ansible.com/u/ankur.cool)\
**Replies:** 0\
**Last updated:** [August 25, 2016, 9:46am UTC](https://forum.ansible.com/t/processing-ansibles-output-in-shell-script/22381 "2016-08-25T09:46:34Z")

</div>

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…

---

## [execute  command  using ansible  hang](https://forum.ansible.com/t/execute-command-using-ansible-hang/22379)

<div class="topic-metadata">

**Author:** [@Yao](https://forum.ansible.com/u/Yao)\
**Replies:** 0\
**Last updated:** [August 25, 2016, 8:55am UTC](https://forum.ansible.com/t/execute-command-using-ansible-hang/22379 "2016-08-25T08:55:01Z")

</div>

when run a command using ansible: ansible -vvvv 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…

---

## [Configure a network interface according to its macaddress](https://forum.ansible.com/t/configure-a-network-interface-according-to-its-macaddress/22378)

<div class="topic-metadata">

**Author:** [@Derrick\_Lin](https://forum.ansible.com/u/Derrick_Lin)\
**Replies:** 0\
**Last updated:** [August 25, 2016, 5:40am UTC](https://forum.ansible.com/t/configure-a-network-interface-according-to-its-macaddress/22378 "2016-08-25T05:40:36Z")

</div>

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”: …

---

## [execute any module returns MODULE FAILURE except raw module](https://forum.ansible.com/t/execute-any-module-returns-module-failure-except-raw-module/22377)

<div class="topic-metadata">

**Author:** [@hzj.zh](https://forum.ansible.com/u/hzj.zh)\
**Replies:** 0\
**Last updated:** [August 25, 2016, 3:34am UTC](https://forum.ansible.com/t/execute-any-module-returns-module-failure-except-raw-module/22377 "2016-08-25T03:34:26Z")

</div>

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 …

---

## [Unable to pass ec2 variable from one ansible host to another](https://forum.ansible.com/t/unable-to-pass-ec2-variable-from-one-ansible-host-to-another/22372)

<div class="topic-metadata">

**Author:** [@deepak.dimri2016](https://forum.ansible.com/u/deepak.dimri2016)\
**Replies:** 0\
**Last updated:** [August 24, 2016, 5:46pm UTC](https://forum.ansible.com/t/unable-to-pass-ec2-variable-from-one-ansible-host-to-another/22372 "2016-08-24T17:46:49Z")

</div>

I want to pass “private\_dns\_name” of my newly created ec2 instances to some other host in my ansible play book. I have tried using set\_fact module to define the variable but no luck! This is ansible playbook entries for …

---

## [Ansible documentation search function](https://forum.ansible.com/t/ansible-documentation-search-function/22361)

<div class="topic-metadata">

**Author:** [@TheUnicornXXL](https://forum.ansible.com/u/TheUnicornXXL)\
**Replies:** 6\
**Last updated:** [August 24, 2016, 4:31pm UTC](https://forum.ansible.com/t/ansible-documentation-search-function/22361 "2016-08-24T16:31:08Z")

</div>

Hi, does anybody know where search function on the ansible doc homepage is? Probably I'm blind, but I doesn't find this function. Stefan

---

## [Recording generated template configurations](https://forum.ansible.com/t/recording-generated-template-configurations/22344)

<div class="topic-metadata">

**Author:** [@Soren\_Olegnowicz](https://forum.ansible.com/u/Soren_Olegnowicz)\
**Replies:** 6\
**Last updated:** [August 24, 2016, 4:10pm UTC](https://forum.ansible.com/t/recording-generated-template-configurations/22344 "2016-08-24T16:10:36Z")

</div>

Anybody know of a way to deploy a template to multiple servers, but have each configuration simultaneously centralized on another server? I do not want the servers speaking with each other, so synchronize would not reall…

---

## [Ansible 2.2 Feature Freeze Sep. 5th](https://forum.ansible.com/t/ansible-2-2-feature-freeze-sep-5th/22371)

<div class="topic-metadata">

**Author:** [@James\_Cammarata](https://forum.ansible.com/u/James_Cammarata)\
**Replies:** 0\
**Last updated:** [August 24, 2016, 3:40pm UTC](https://forum.ansible.com/t/ansible-2-2-feature-freeze-sep-5th/22371 "2016-08-24T15:40:36Z")

</div>

Hi all, In preparation for major releases, we will be instituting a “feature freeze” before the first release candidate. For 2.2, the last day to add features will be Monday, September 5th. During this period, no new f…

---

## [Commas in Docker env option for values of environment variables?](https://forum.ansible.com/t/commas-in-docker-env-option-for-values-of-environment-variables/17545)

<div class="topic-metadata">

**Author:** [@James\_Webster](https://forum.ansible.com/u/James_Webster)\
**Replies:** 2\
**Last updated:** [August 24, 2016, 2:54pm UTC](https://forum.ansible.com/t/commas-in-docker-env-option-for-values-of-environment-variables/17545 "2016-08-24T14:54:40Z")

</div>

I’m using Consul in combination with a service registration framework (progrium/registrator Docker image) to play around with distributed service discovery. Plus Ansible to start up my Docker containers, etc. However I’m…

---

## [ansible-playbook command, remote host unreachable, but ssh is fine](https://forum.ansible.com/t/ansible-playbook-command-remote-host-unreachable-but-ssh-is-fine/22363)

<div class="topic-metadata">

**Author:** [@jguillette](https://forum.ansible.com/u/jguillette)\
**Replies:** 1\
**Last updated:** [August 24, 2016, 2:11pm UTC](https://forum.ansible.com/t/ansible-playbook-command-remote-host-unreachable-but-ssh-is-fine/22363 "2016-08-24T14:11:23Z")

</div>

Hi there, I’m new to Ansible, and jumping into it for a project at work. Right now I’m trying to update our AWS instance machine using ansible-playbook. More specifically, I’m running ansible-playbook --private-key ~/k…

[Previous page](https://forum.ansible.com/c/archives/31.md?page=558)

[Next page](https://forum.ansible.com/c/archives/31.md?page=560)
