# Latest

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

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

**Page:** 736

---

## [Replace host name in yml file](https://forum.ansible.com/t/replace-host-name-in-yml-file/22267)

<div class="topic-metadata">

**Author:** [@Anushri\_Mishra](https://forum.ansible.com/u/Anushri_Mishra)\
**Replies:** 2\
**Last updated:** [August 10, 2016, 6:51pm UTC](https://forum.ansible.com/t/replace-host-name-in-yml-file/22267 "2016-08-10T18:51:53Z")

</div>

hi I have a question this is my main.yml file content: name: Start Tomcat service: name=tomcat7 state=restarted enabled=yes command: wget “http://admin:admin@10.1.33.155:8080/manager/text/stop?path=/externaluserwebapi…

---

## [Connection issues to Windows Server - Host not Reachable](https://forum.ansible.com/t/connection-issues-to-windows-server-host-not-reachable/22249)

<div class="topic-metadata">

**Author:** [@Anfield](https://forum.ansible.com/u/Anfield)\
**Replies:** 13\
**Last updated:** [August 10, 2016, 4:26pm UTC](https://forum.ansible.com/t/connection-issues-to-windows-server-host-not-reachable/22249 "2016-08-10T16:26:06Z")

</div>

Trying to connect from Ansible server to windows host and getting connection errors \[root@localhost ansible\]# ansible -i hosts -m ping all 10.10.128.0 | UNREACHABLE! =\> { “changed”: false, “msg”: “Failed to connect t…

---

## [Connecting to Windows Host Failing - (Fails Ansible Ping)](https://forum.ansible.com/t/connecting-to-windows-host-failing-fails-ansible-ping/22266)

<div class="topic-metadata">

**Author:** [@Dick\_Davies](https://forum.ansible.com/u/Dick_Davies)\
**Replies:** 0\
**Last updated:** [August 10, 2016, 4:15pm UTC](https://forum.ansible.com/t/connecting-to-windows-host-failing-fails-ansible-ping/22266 "2016-08-10T16:15:38Z")

</div>

The ping: task uses SSH - use http://docs.ansible.com/ansible/win\_ping\_module.html (disclaimer: I manage 0 windows hosts)

---

## [Running shell command in Ansible](https://forum.ansible.com/t/running-shell-command-in-ansible/22261)

<div class="topic-metadata">

**Author:** [@Enjoy\_The\_Silence](https://forum.ansible.com/u/Enjoy_The_Silence)\
**Replies:** 2\
**Last updated:** [August 10, 2016, 3:47pm UTC](https://forum.ansible.com/t/running-shell-command-in-ansible/22261 "2016-08-10T15:47:09Z")

</div>

Hello, Lately, I’ve started to use Ansible. I’m trying to write a script that pass a device as a parameter, and then chain a star sign for it. For example, if the device name is /dev/sda, i would like to count the coun…

---

## [Using dynamic variables with Ansible pull](https://forum.ansible.com/t/using-dynamic-variables-with-ansible-pull/22265)

<div class="topic-metadata">

**Author:** [@Sam\_S](https://forum.ansible.com/u/Sam_S)\
**Replies:** 1\
**Last updated:** [August 10, 2016, 3:26pm UTC](https://forum.ansible.com/t/using-dynamic-variables-with-ansible-pull/22265 "2016-08-10T15:26:28Z")

</div>

I have a role that pulls in the correct variable depending on the type of server (eg web vs perl). If I set the variable within an inventory file, I can’t get my task to access the variable in question. I think my issue …

---

## [Using the wait\_for module to check if the VM is up and running](https://forum.ansible.com/t/using-the-wait-for-module-to-check-if-the-vm-is-up-and-running/22262)

<div class="topic-metadata">

**Author:** [@Chethan\_S](https://forum.ansible.com/u/Chethan_S)\
**Replies:** 2\
**Last updated:** [August 10, 2016, 3:08pm UTC](https://forum.ansible.com/t/using-the-wait-for-module-to-check-if-the-vm-is-up-and-running/22262 "2016-08-10T15:08:37Z")

</div>

I am trying to develop a simple playbook (which would later be used in larger ones) to check if Windows VMs in the inventory are up and running. \`

---

## [Would love to disable lsblk when gathering facts](https://forum.ansible.com/t/would-love-to-disable-lsblk-when-gathering-facts/22255)

<div class="topic-metadata">

**Author:** [@Brian\_Beach](https://forum.ansible.com/u/Brian_Beach)\
**Replies:** 2\
**Last updated:** [August 10, 2016, 2:58pm UTC](https://forum.ansible.com/t/would-love-to-disable-lsblk-when-gathering-facts/22255 "2016-08-10T14:58:52Z")

</div>

Hi, I posted a comment to https://github.com/ansible/ansible/issues/10779, but it’s been closed, and the advice was to post to the group. So… At Backblaze, we use Ansible to manage our storage pods. Each storage pod ha…

---

## [silly trick: you can use variables in the "- name:" part of a playbook](https://forum.ansible.com/t/silly-trick-you-can-use-variables-in-the-name-part-of-a-playbook/22257)

<div class="topic-metadata">

**Author:** [@pixel\_fairy](https://forum.ansible.com/u/pixel_fairy)\
**Replies:** 2\
**Last updated:** [August 10, 2016, 2:44pm UTC](https://forum.ansible.com/t/silly-trick-you-can-use-variables-in-the-name-part-of-a-playbook/22257 "2016-08-10T14:44:17Z")

</div>

i realize itfits how yaml and jinja2 works so probably obvious to many of you. never thought about it until after doing this and seeing the result. could make for more readable output.

---

## [Ansible sunchronize module.](https://forum.ansible.com/t/ansible-sunchronize-module/22252)

<div class="topic-metadata">

**Author:** [@Amrit\_Bhandari](https://forum.ansible.com/u/Amrit_Bhandari)\
**Replies:** 1\
**Last updated:** [August 10, 2016, 12:49pm UTC](https://forum.ansible.com/t/ansible-sunchronize-module/22252 "2016-08-10T12:49:32Z")

</div>

Hello everyone, I am using Ansible 2.1.0.0 in a FEDORA environment.I have a playbook which is supposed to run a Python script.The Python script generates directories and subdirectories in /tmp/data/ of the remote machin…

---

## [Yum update with ansible](https://forum.ansible.com/t/yum-update-with-ansible/22263)

<div class="topic-metadata">

**Author:** [@Leandro\_Gomes](https://forum.ansible.com/u/Leandro_Gomes)\
**Replies:** 0\
**Last updated:** [August 10, 2016, 12:47pm UTC](https://forum.ansible.com/t/yum-update-with-ansible/22263 "2016-08-10T12:47:22Z")

</div>

How can I update a Redhat or Centos Server using yum module keeping the release version ? In my tests with update \* the server goes from 6.5 to 6.8 relase, when I want to keep in the 6.5 relase. In the command line in …

---

## [How can I use  ansible and ec2.py to manage multiple aws accounts](https://forum.ansible.com/t/how-can-i-use-ansible-and-ec2-py-to-manage-multiple-aws-accounts/22259)

<div class="topic-metadata">

**Author:** [@Bob\_Benson](https://forum.ansible.com/u/Bob_Benson)\
**Replies:** 1\
**Last updated:** [August 10, 2016, 11:30am UTC](https://forum.ansible.com/t/how-can-i-use-ansible-and-ec2-py-to-manage-multiple-aws-accounts/22259 "2016-08-10T11:30:57Z")

</div>

I’m trying to use one control ec2 machine to manage multiple machines in different aws accounts. what is the best way to setup static or dynamic inventories hosts file and various access keys. struggling with the concept…

---

## [mysql\_db won't use given password](https://forum.ansible.com/t/mysql-db-wont-use-given-password/22260)

<div class="topic-metadata">

**Author:** [@Barry\_Kaplan](https://forum.ansible.com/u/Barry_Kaplan)\
**Replies:** 1\
**Last updated:** [August 10, 2016, 9:53am UTC](https://forum.ansible.com/t/mysql-db-wont-use-given-password/22260 "2016-08-10T09:53:28Z")

</div>

I have not run any plays with mysql\_db since upgrading to 2.x. But now I keep getting TASK \[Create mysql database\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* fatal: \[10.0.192.187\]: FAILED! =\> {"changed": false,…

---

## [How to install RHEL on mutiple nodes using ansible](https://forum.ansible.com/t/how-to-install-rhel-on-mutiple-nodes-using-ansible/22120)

<div class="topic-metadata">

**Author:** [@PUJA\_MUDALIAR](https://forum.ansible.com/u/PUJA_MUDALIAR)\
**Replies:** 4\
**Last updated:** [August 10, 2016, 8:56am UTC](https://forum.ansible.com/t/how-to-install-rhel-on-mutiple-nodes-using-ansible/22120 "2016-08-10T08:56:40Z")

</div>

Please help me with the configuration of ansible for setting up servers with RHEL 7

---

## [Ansible 2.0.0.2 main.yml fails with "ERROR! no action detected in task"](https://forum.ansible.com/t/ansible-2-0-0-2-main-yml-fails-with-error-no-action-detected-in-task/20844)

<div class="topic-metadata">

**Author:** [@Daniel\_Osielczak](https://forum.ansible.com/u/Daniel_Osielczak)\
**Replies:** 14\
**Last updated:** [August 10, 2016, 8:47am UTC](https://forum.ansible.com/t/ansible-2-0-0-2-main-yml-fails-with-error-no-action-detected-in-task/20844 "2016-08-10T08:47:27Z")

</div>

Hi, I’m setting up an Ansible 2 environemnt and stumbled upon a problem: when I run main.yml (either as a separate playbook or using the main site.yml) I get an error “ERROR! no action detected in task”: \` \[root@inst…

---

## [ansible & joomla](https://forum.ansible.com/t/ansible-joomla/15186)

<div class="topic-metadata">

**Author:** [@jose\_moya\_carballo](https://forum.ansible.com/u/jose_moya_carballo)\
**Replies:** 3\
**Last updated:** [August 10, 2016, 8:46am UTC](https://forum.ansible.com/t/ansible-joomla/15186 "2016-08-10T08:46:39Z")

</div>

Hi everyone! I have been working with Ansible since April, so I have some questions. If you could answer me, it would be great: I don’t know how to install Joomla with Ansible.

---

## [win\_feature failing](https://forum.ansible.com/t/win-feature-failing/22247)

<div class="topic-metadata">

**Author:** [@Justin\_Dugan](https://forum.ansible.com/u/Justin_Dugan)\
**Replies:** 3\
**Last updated:** [August 10, 2016, 2:32am UTC](https://forum.ansible.com/t/win-feature-failing/22247 "2016-08-10T02:32:50Z")

</div>

I am trying to use win\_feature on a Windows 2008 R2 Server and reviving the following error: FAILED! =\> {“changed”: false, “failed”: true, “msg”: “Method invocation failed because \[System.Management.Automation.PSCustomO…

---

## [Matt Davis on PowerScripting Podcast](https://forum.ansible.com/t/matt-davis-on-powerscripting-podcast/22220)

<div class="topic-metadata">

**Author:** [@Mike\_Fennemore](https://forum.ansible.com/u/Mike_Fennemore)\
**Replies:** 3\
**Last updated:** [August 10, 2016, 1:11am UTC](https://forum.ansible.com/t/matt-davis-on-powerscripting-podcast/22220 "2016-08-10T01:11:49Z")

</div>

So was listening through my podcasts on the way to work and stumbled on this one https://powershell.org/episode-314-powerscripting-podcast-matt-davis-from-red-hat-on-ansible/. Very cool session Matt, looking forward to f…

---

## [Copy Module doesnt override destination file](https://forum.ansible.com/t/copy-module-doesnt-override-destination-file/22235)

<div class="topic-metadata">

**Author:** [@Anushri\_Mishra](https://forum.ansible.com/u/Anushri_Mishra)\
**Replies:** 4\
**Last updated:** [August 9, 2016, 10:07pm UTC](https://forum.ansible.com/t/copy-module-doesnt-override-destination-file/22235 "2016-08-09T22:07:27Z")

</div>

hi, so this is what I have in my yml file: name: Copy War File copy: src=externaluserwebapi.war dest=/usr/share/tomcat7/webapps become: True become\_method: sudo and this is what I get when I run playbook: ok: \[10…

---

## [winrm and https](https://forum.ansible.com/t/winrm-and-https/21842)

<div class="topic-metadata">

**Author:** [@Frantisek\_Griga](https://forum.ansible.com/u/Frantisek_Griga)\
**Replies:** 7\
**Last updated:** [August 9, 2016, 9:30pm UTC](https://forum.ansible.com/t/winrm-and-https/21842 "2016-08-09T21:30:56Z")

</div>

Hello, I have a problem with using Ansible to manage Windows machines. I have one virtual machine with Debian 8, Ansible 2.1.0.0 installed through PPA and Python 2.7.9. Then I have a second VM with Windows 10. I would …

---

## [Quotes and Jinja](https://forum.ansible.com/t/quotes-and-jinja/22250)

<div class="topic-metadata">

**Author:** [@Josh\_Smift1](https://forum.ansible.com/u/Josh_Smift1)\
**Replies:** 0\
**Last updated:** [August 9, 2016, 8:34pm UTC](https://forum.ansible.com/t/quotes-and-jinja/22250 "2016-08-09T20:34:03Z")

</div>

We have a task like - name: install thing and dependencies yum: name={{ item }} state=present with\_items: - thing-"{{ thing\_version }}" - dep1 - dep2 - dep3 where thing\_version i…

---

## [How to set \`ssh\_user\` and \`ssh\_key\_file\` in Ansible 2 Python API?](https://forum.ansible.com/t/how-to-set-ssh-user-and-ssh-key-file-in-ansible-2-python-api/22248)

<div class="topic-metadata">

**Author:** [@Neil\_Hooey](https://forum.ansible.com/u/Neil_Hooey)\
**Replies:** 0\
**Last updated:** [August 9, 2016, 6:37pm UTC](https://forum.ansible.com/t/how-to-set-ssh-user-and-ssh-key-file-in-ansible-2-python-api/22248 "2016-08-09T18:37:18Z")

</div>

How do you set ssh\_user and ssh\_key\_file when making a connection with the Ansible 2 Python API? Adding user, ssh\_user or remote\_user to the options variable in the code on the Ansible 2 Python API documentation page al…

---

## [anyway to run different tasks with different interpreters (ex: yum using py2.6, get\_url using py2.7)](https://forum.ansible.com/t/anyway-to-run-different-tasks-with-different-interpreters-ex-yum-using-py2-6-get-url-using-py2-7/22241)

<div class="topic-metadata">

**Author:** [@Sylvain\_Mougenot](https://forum.ansible.com/u/Sylvain_Mougenot)\
**Replies:** 1\
**Last updated:** [August 9, 2016, 5:22pm UTC](https://forum.ansible.com/t/anyway-to-run-different-tasks-with-different-interpreters-ex-yum-using-py2-6-get-url-using-py2-7/22241 "2016-08-09T17:22:11Z")

</div>

Hello, I’ve to maintain some node running on Centos 6 with Python 2.6 as default python. My problem is due to SSL download using gt\_url that require Python 2.7.9+ to work (related to SNI trouble). Aim : run all yum …

---

## [Installing from tarball to Mac](https://forum.ansible.com/t/installing-from-tarball-to-mac/22246)

<div class="topic-metadata">

**Author:** [@John\_Oliver](https://forum.ansible.com/u/John_Oliver)\
**Replies:** 0\
**Last updated:** [August 9, 2016, 4:55pm UTC](https://forum.ansible.com/t/installing-from-tarball-to-mac/22246 "2016-08-09T16:55:49Z")

</div>

I’d like get ansible installed on Macs that are not connected to the Internet. I’ve downloaded the tarball and am trying to install it on one that is connected to the Internet to find everything I need, but am getting a …

---

## [Time frame for end of support for Python-2.4 and Python-2.5 on managed machines](https://forum.ansible.com/t/time-frame-for-end-of-support-for-python-2-4-and-python-2-5-on-managed-machines/22245)

<div class="topic-metadata">

**Author:** [@Toshio\_Kuratomi](https://forum.ansible.com/u/Toshio_Kuratomi)\
**Replies:** 0\
**Last updated:** [August 9, 2016, 4:00pm UTC](https://forum.ansible.com/t/time-frame-for-end-of-support-for-python-2-4-and-python-2-5-on-managed-machines/22245 "2016-08-09T16:00:14Z")

</div>

All things must come to an end. In the case of Ansible’s support for managing hosts whose Python version is 2.4 or 2.5, that ending is within sight. Our plan is for the next 2.x release of Ansible after March of 2017 to …

---

## [trouble with shell egrep escaping chars](https://forum.ansible.com/t/trouble-with-shell-egrep-escaping-chars/22199)

<div class="topic-metadata">

**Author:** [@Kai1](https://forum.ansible.com/u/Kai1)\
**Replies:** 2\
**Last updated:** [August 9, 2016, 3:21pm UTC](https://forum.ansible.com/t/trouble-with-shell-egrep-escaping-chars/22199 "2016-08-09T15:21:00Z")

</div>

Dear all, I cannot get the following line to work: shell: "{{java\_home}}/bin/java -version 2\>&1 | grep 'java version' | egrep '{{ '1\\.\[789\]' | regex\_escape() }}'" Obviously this line already went through quite some i…

---

## [Setup custom facts under Windows Help?](https://forum.ansible.com/t/setup-custom-facts-under-windows-help/22217)

<div class="topic-metadata">

**Author:** [@Bob\_Tanner](https://forum.ansible.com/u/Bob_Tanner)\
**Replies:** 3\
**Last updated:** [August 9, 2016, 2:03pm UTC](https://forum.ansible.com/t/setup-custom-facts-under-windows-help/22217 "2016-08-09T14:03:45Z")

</div>

Trying to setup custom facts for Windows. In this case, the powershell info that is shown in $PSVersionTable. I have tasks to put it all into place and looking at the -vvvv output I do see the information encoded into s…

---

## [scp files with copy](https://forum.ansible.com/t/scp-files-with-copy/22238)

<div class="topic-metadata">

**Author:** [@Eric\_Marquez](https://forum.ansible.com/u/Eric_Marquez)\
**Replies:** 1\
**Last updated:** [August 9, 2016, 7:58am UTC](https://forum.ansible.com/t/scp-files-with-copy/22238 "2016-08-09T07:58:46Z")

</div>

I'm attempting to copy a large file to a remote SCP server(Cisco Nexus Switch). I verified I can copy it using SCP but I have a large number of server to copy the files too. The server also happens to be a switch that…

---

## [Best way to execute "tests" with Ansible and report meaning full error messages](https://forum.ansible.com/t/best-way-to-execute-tests-with-ansible-and-report-meaning-full-error-messages/22240)

<div class="topic-metadata">

**Author:** [@Damien\_Garros](https://forum.ansible.com/u/Damien_Garros)\
**Replies:** 0\
**Last updated:** [August 9, 2016, 3:37am UTC](https://forum.ansible.com/t/best-way-to-execute-tests-with-ansible-and-report-meaning-full-error-messages/22240 "2016-08-09T03:37:38Z")

</div>

Hi I’m trying to see if I can use Ansible to run some tests on network devices. My goal is to execute a lot of “tests”, similar to unit tests in software dev, and report what passed and what failed at the end. Right n…

---

## [ipaddr - python netaddr missing or not](https://forum.ansible.com/t/ipaddr-python-netaddr-missing-or-not/22236)

<div class="topic-metadata">

**Author:** [@Kai\_Stian\_Olstad](https://forum.ansible.com/u/Kai_Stian_Olstad)\
**Replies:** 0\
**Last updated:** [August 8, 2016, 11:10pm UTC](https://forum.ansible.com/t/ipaddr-python-netaddr-missing-or-not/22236 "2016-08-08T23:10:29Z")

</div>

And where did you install pyton-netaddr? It must be installed on the machine you run the ansible commands from.

---

## [Fact gathering when ansible run inside docker container](https://forum.ansible.com/t/fact-gathering-when-ansible-run-inside-docker-container/22210)

<div class="topic-metadata">

**Author:** [@menonprasad](https://forum.ansible.com/u/menonprasad)\
**Replies:** 1\
**Last updated:** [August 8, 2016, 8:20pm UTC](https://forum.ansible.com/t/fact-gathering-when-ansible-run-inside-docker-container/22210 "2016-08-08T20:20:49Z")

</div>

I have a docker container from inside which I’m running ansible. When I gather facts for the container (ansible -m setup localhost) , i see that the network related (ansible\_default\_ipv4) facts are not gathered. Is the…

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

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