# Latest

**URL:** https://forum.ansible.com/latest.md?page=731

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

**Page:** 732

---

## [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…

---

## [testing python / ansible modules](https://forum.ansible.com/t/testing-python-ansible-modules/22369)

<div class="topic-metadata">

**Author:** [@Alex\_Leonhardt](https://forum.ansible.com/u/Alex_Leonhardt)\
**Replies:** 0\
**Last updated:** [August 24, 2016, 2:05pm UTC](https://forum.ansible.com/t/testing-python-ansible-modules/22369 "2016-08-24T14:05:23Z")

</div>

Hi All, I was wondering if anyone ever wrote tests for an ansible module ? I’m trying to instantiate m = AnsibleModule(argument\_spec=dict()) but it keeps failing with “Error: Module unable to decode valid JSON on stdin…

---

## [common library for multiple modules](https://forum.ansible.com/t/common-library-for-multiple-modules/22367)

<div class="topic-metadata">

**Author:** [@Victor\_Volle](https://forum.ansible.com/u/Victor_Volle)\
**Replies:** 1\
**Last updated:** [August 24, 2016, 1:46pm UTC](https://forum.ansible.com/t/common-library-for-multiple-modules/22367 "2016-08-24T13:46:48Z")

</div>

We are currently refactoring the digitalocean modules (not use an external library, migrate everything to the v2 API). all modules (do\_droplet, do\_tag, do\_sshkey, do\_domain, do\_storage) will need some common code. The …

---

## [Module "include\_vars" fails with when using "file" parameter](https://forum.ansible.com/t/module-include-vars-fails-with-when-using-file-parameter/22359)

<div class="topic-metadata">

**Author:** [@Frank\_Thommen](https://forum.ansible.com/u/Frank_Thommen)\
**Replies:** 1\
**Last updated:** [August 24, 2016, 10:45am UTC](https://forum.ansible.com/t/module-include-vars-fails-with-when-using-file-parameter/22359 "2016-08-24T10:45:57Z")

</div>

Hi, when using the include\_module with the "file" parameter, it fails with AttributeError: 'NoneType' object has no attribute 'startswith'. This works fine: ----- testmyvars\_1.yml -----------

---

## [Howto to use a ansible-galaxy role in a task](https://forum.ansible.com/t/howto-to-use-a-ansible-galaxy-role-in-a-task/22368)

<div class="topic-metadata">

**Author:** [@Nathan\_Husken](https://forum.ansible.com/u/Nathan_Husken)\
**Replies:** 0\
**Last updated:** [August 24, 2016, 10:32am UTC](https://forum.ansible.com/t/howto-to-use-a-ansible-galaxy-role-in-a-task/22368 "2016-08-24T10:32:59Z")

</div>

Hi, I have a ansible playbook which setups the configuration of my work computer (which uses fedora). I discovered https://galaxy.ansible.com/eddyhub/gnome\_shell/ which allows me to install gnome extensions. But I am u…

---

## [ansible  become time out issue](https://forum.ansible.com/t/ansible-become-time-out-issue/22366)

<div class="topic-metadata">

**Author:** [@hzj.zh](https://forum.ansible.com/u/hzj.zh)\
**Replies:** 0\
**Last updated:** [August 24, 2016, 8:38am UTC](https://forum.ansible.com/t/ansible-become-time-out-issue/22366 "2016-08-24T08:38:19Z")

</div>

hello， come accross a problem, there is this special hosts, i just cannot use ansible to become root user; here is the ouput \[root@localhost ~\]# ansible host1 -m raw -a ‘uname -a’ -u admin4A -b --become-method=su -k …

---

## [Ansible playbook freezes at getting output with communicate()](https://forum.ansible.com/t/ansible-playbook-freezes-at-getting-output-with-communicate/22365)

<div class="topic-metadata">

**Author:** [@Ahmed1](https://forum.ansible.com/u/Ahmed1)\
**Replies:** 0\
**Last updated:** [August 24, 2016, 7:37am UTC](https://forum.ansible.com/t/ansible-playbook-freezes-at-getting-output-with-communicate/22365 "2016-08-24T07:37:14Z")

</div>

I’m using Ansible to auto configure a device that has an OS similar to Cisco IOS, the below playbook works fine but every 4 or 5 times I run it, it freezes, I’m setting ANSIBLE\_DEBUG=1, when it freezes, it does at the fo…

---

## [Ansible 2.1.0 docker\_container module not pulling image when missing on remote host](https://forum.ansible.com/t/ansible-2-1-0-docker-container-module-not-pulling-image-when-missing-on-remote-host/22364)

<div class="topic-metadata">

**Author:** [@ishan\_jain](https://forum.ansible.com/u/ishan_jain)\
**Replies:** 0\
**Last updated:** [August 24, 2016, 6:22am UTC](https://forum.ansible.com/t/ansible-2-1-0-docker-container-module-not-pulling-image-when-missing-on-remote-host/22364 "2016-08-24T06:22:37Z")

</div>

The documentation says: Repository path and tag used to create the container. If an image is not found or pull is true, the image will be pulled from the registry. But a simple usage of docker\_container: - name: start…

---

## [Apt-get simulate command](https://forum.ansible.com/t/apt-get-simulate-command/22338)

<div class="topic-metadata">

**Author:** [@Remi\_Morel](https://forum.ansible.com/u/Remi_Morel)\
**Replies:** 4\
**Last updated:** [August 24, 2016, 5:59am UTC](https://forum.ansible.com/t/apt-get-simulate-command/22338 "2016-08-24T05:59:10Z")

</div>

Hello, I have spend a lot of time to find a solution at this issue. I have a task : \` name: check updated package (Debian) command: apt-get -s install {{ item.item }} register: updateD when: (ansible\_os\_family ==…

---

## [group\_vars behavior changed in 2.1?](https://forum.ansible.com/t/group-vars-behavior-changed-in-2-1/22311)

<div class="topic-metadata">

**Author:** [@Vincent\_Jorgensen](https://forum.ansible.com/u/Vincent_Jorgensen)\
**Replies:** 5\
**Last updated:** [August 24, 2016, 5:07am UTC](https://forum.ansible.com/t/group-vars-behavior-changed-in-2-1/22311 "2016-08-24T05:07:19Z")

</div>

Hi all, I have an ansible project with a groups\_vars directory, with a subdirectory called all beneath it, like so: /project/group\_vars/all/ami.yml /project/group\_vars/all/dns.yml /project/group\_vars/all/key.yml Prev…

---

## [Ansible docs help](https://forum.ansible.com/t/ansible-docs-help/22318)

<div class="topic-metadata">

**Author:** [@Donald\_Blodgett](https://forum.ansible.com/u/Donald_Blodgett)\
**Replies:** 5\
**Last updated:** [August 23, 2016, 3:41pm UTC](https://forum.ansible.com/t/ansible-docs-help/22318 "2016-08-23T15:41:14Z")

</div>

I am trying to find the listing of descriptions, valid and default values for playbook play parameters similar to the module index that lists these for each of the modules. Can anyone point me in the correct direction? T…

---

## [stdout looks empty, but 'when' thinks it isn't?](https://forum.ansible.com/t/stdout-looks-empty-but-when-thinks-it-isnt/22342)

<div class="topic-metadata">

**Author:** [@Steve\_Kersley](https://forum.ansible.com/u/Steve_Kersley)\
**Replies:** 3\
**Last updated:** [August 23, 2016, 2:58pm UTC](https://forum.ansible.com/t/stdout-looks-empty-but-when-thinks-it-isnt/22342 "2016-08-23T14:58:32Z")

</div>

As an Ansible newcomer, I’m trying to write some scripts to standardize Cisco switch configuration. Unfortunately since Cisco doesn’t offer a way to clear existing configuration before setting (in this instance I’m wanti…

---

## [Running playbook ios\_command through bastion host](https://forum.ansible.com/t/running-playbook-ios-command-through-bastion-host/22305)

<div class="topic-metadata">

**Author:** [@Bharath\_Bharadwaj](https://forum.ansible.com/u/Bharath_Bharadwaj)\
**Replies:** 5\
**Last updated:** [August 23, 2016, 2:08pm UTC](https://forum.ansible.com/t/running-playbook-ios-command-through-bastion-host/22305 "2016-08-23T14:08:33Z")

</div>

Hi All, I have followed instructions on setting up bastion host from this article “https://gagor.pl/2016/04/use-bastion-host-with-ansible/” while I’m able to connect to my cisco switch through bastion host from a comman…

---

## [How to access inventory from custom action plugin v2](https://forum.ansible.com/t/how-to-access-inventory-from-custom-action-plugin-v2/22358)

<div class="topic-metadata">

**Author:** [@James\_Kinley](https://forum.ansible.com/u/James_Kinley)\
**Replies:** 1\
**Last updated:** [August 23, 2016, 1:39pm UTC](https://forum.ansible.com/t/how-to-access-inventory-from-custom-action-plugin-v2/22358 "2016-08-23T13:39:20Z")

</div>

Hi, How does one get access to the inventory from a custom action plugin? I’m able to do something like this to access host vars: task\_vars\[“hostvars”\]\[“my\_host”\]\[“ansible\_host”\] but I need to be able to iterate all ho…

---

## [Windows question - is anyone managing Applocker with Ansible?](https://forum.ansible.com/t/windows-question-is-anyone-managing-applocker-with-ansible/22303)

<div class="topic-metadata">

**Author:** [@nikobelia](https://forum.ansible.com/u/nikobelia)\
**Replies:** 2\
**Last updated:** [August 23, 2016, 1:23pm UTC](https://forum.ansible.com/t/windows-question-is-anyone-managing-applocker-with-ansible/22303 "2016-08-23T13:23:33Z")

</div>

Hi ansible-devel, Quick question for anyone running Ansible on Windows: has anyone used Ansible to configure Applocker? It’s a security/hardening/audit tool for Windows, replacing Software Restriction Policies. The nat…

---

## [lxd\_container changed on each playbook run](https://forum.ansible.com/t/lxd-container-changed-on-each-playbook-run/22357)

<div class="topic-metadata">

**Author:** [@Jonathan\_Rosser](https://forum.ansible.com/u/Jonathan_Rosser)\
**Replies:** 0\
**Last updated:** [August 23, 2016, 8:16am UTC](https://forum.ansible.com/t/lxd-container-changed-on-each-playbook-run/22357 "2016-08-23T08:16:32Z")

</div>

I create containers using the lxd\_containers module. The “apply\_container\_configs” action is run each time the playbook runs so the task is “changed” on every playbook run. Here is the verbose output http://pastebin.com…

---

## [Playbook freezes at "getting output with communicate()"](https://forum.ansible.com/t/playbook-freezes-at-getting-output-with-communicate/22356)

<div class="topic-metadata">

**Author:** [@Ahmed1](https://forum.ansible.com/u/Ahmed1)\
**Replies:** 0\
**Last updated:** [August 23, 2016, 7:54am UTC](https://forum.ansible.com/t/playbook-freezes-at-getting-output-with-communicate/22356 "2016-08-23T07:54:46Z")

</div>

Hello, I’m using Ansible to manage configuration of a device that has a similar terminal to Cisco devices, The below playbook works fine but for every 4 or 5 times it freezes at sometimes. I use Ansible-Debug=1, when t…

---

## [Module "include\_vars" fails with when using "file" parameter](https://forum.ansible.com/t/module-include-vars-fails-with-when-using-file-parameter/22355)

<div class="topic-metadata">

**Author:** [@Frank\_Thommen](https://forum.ansible.com/u/Frank_Thommen)\
**Replies:** 0\
**Last updated:** [August 23, 2016, 7:34am UTC](https://forum.ansible.com/t/module-include-vars-fails-with-when-using-file-parameter/22355 "2016-08-23T07:34:25Z")

</div>

Hi, when using the include\_module with the "file" parameter, it fails with AttributeError: 'NoneType' object has no attribute 'startswith'. This works fine: ----- testmyvars\_1.yml -----------

[Previous page](https://forum.ansible.com/latest.md?page=730)

[Next page](https://forum.ansible.com/latest.md?page=732)
