# Archives

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

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

**Page:** 565

---

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

---

## [Variable (for Windows/Powershell) that contains a character which must by escaped?](https://forum.ansible.com/t/variable-for-windows-powershell-that-contains-a-character-which-must-by-escaped/22231)

<div class="topic-metadata">

**Author:** [@Matt\_Gagliardi](https://forum.ansible.com/u/Matt_Gagliardi)\
**Replies:** 1\
**Last updated:** [August 8, 2016, 5:52pm UTC](https://forum.ansible.com/t/variable-for-windows-powershell-that-contains-a-character-which-must-by-escaped/22231 "2016-08-08T17:52:06Z")

</div>

I searched around but didn’t see anything that appeared to apply to the Windows/Powershell application I need advice on. I’ve got a playbook that works 100% fine as long as a certain variable doesn’t contain a “$” charac…

---

## [cant find /opt/bin/python even though the environment path is specified](https://forum.ansible.com/t/cant-find-opt-bin-python-even-though-the-environment-path-is-specified/22226)

<div class="topic-metadata">

**Author:** [@Gallo](https://forum.ansible.com/u/Gallo)\
**Replies:** 2\
**Last updated:** [August 8, 2016, 5:20pm UTC](https://forum.ansible.com/t/cant-find-opt-bin-python-even-though-the-environment-path-is-specified/22226 "2016-08-08T17:20:02Z")

</div>

Hey guys, i have a coreOS system running python and pip with toolbox localhost ~ # cat /etc/rele |grep DISTRIB\_RELEASE ; which python ;which pip DISTRIB\_RELEASE=1068.8.0 /opt/bin/python /opt/bin/pip $ ls -l total 1…

---

## [Windows playbooks causes cryptographic, windows remote management services to crash](https://forum.ansible.com/t/windows-playbooks-causes-cryptographic-windows-remote-management-services-to-crash/22151)

<div class="topic-metadata">

**Author:** [@Michael\_Perzel](https://forum.ansible.com/u/Michael_Perzel)\
**Replies:** 9\
**Last updated:** [August 8, 2016, 3:26pm UTC](https://forum.ansible.com/t/windows-playbooks-causes-cryptographic-windows-remote-management-services-to-crash/22151 "2016-08-08T15:26:34Z")

</div>

Since upgrading to ansible 2.0 my windows playbooks have been failing with the following error. This error has been seen when running setup, win\_template, script tasks. The easiest way to repeat it is to have multiple si…

---

## [How the get the output of module.log calls in a custom module?](https://forum.ansible.com/t/how-the-get-the-output-of-module-log-calls-in-a-custom-module/22234)

<div class="topic-metadata">

**Author:** [@Jakub\_Holy1](https://forum.ansible.com/u/Jakub_Holy1)\
**Replies:** 0\
**Last updated:** [August 8, 2016, 12:50pm UTC](https://forum.ansible.com/t/how-the-get-the-output-of-module-log-calls-in-a-custom-module/22234 "2016-08-08T12:50:27Z")

</div>

Hello! I am trying to write an Ansible (2.1.x) module. In the module, I make calls to module.log(“some message”) (where module is an instance of ansible.module\_utils.basic.AnsibleModule). I am not able to find any way …

---

## [ansible\_vault\_password\_file](https://forum.ansible.com/t/ansible-vault-password-file/22232)

<div class="topic-metadata">

**Author:** [@fanvalt](https://forum.ansible.com/u/fanvalt)\
**Replies:** 3\
**Last updated:** [August 8, 2016, 9:09am UTC](https://forum.ansible.com/t/ansible-vault-password-file/22232 "2016-08-08T09:09:29Z")

</div>

Hello, I try to run a playbook to connect to a windows server with host external parameters set this way: In my inventory file, I only want to set these parameter: ansible\_host and ansible\_user \[windows\] ansible\_host…

---

## [Start tomcat through tomcat-standalone](https://forum.ansible.com/t/start-tomcat-through-tomcat-standalone/22229)

<div class="topic-metadata">

**Author:** [@Anushri\_Mishra](https://forum.ansible.com/u/Anushri_Mishra)\
**Replies:** 2\
**Last updated:** [August 7, 2016, 1:13pm UTC](https://forum.ansible.com/t/start-tomcat-through-tomcat-standalone/22229 "2016-08-07T13:13:58Z")

</div>

hi, I am using tomcat standalone example from git-examples to start tomcat server but customised it a little meaning I already have tomcat installed and it starts fine by sudo service tomcat7 start. So this is my main.x…

---

## [Best way to handle nginx config/vhosts](https://forum.ansible.com/t/best-way-to-handle-nginx-config-vhosts/22228)

<div class="topic-metadata">

**Author:** [@michaeleaton](https://forum.ansible.com/u/michaeleaton)\
**Replies:** 0\
**Last updated:** [August 6, 2016, 6:47pm UTC](https://forum.ansible.com/t/best-way-to-handle-nginx-config-vhosts/22228 "2016-08-06T18:47:00Z")

</div>

So I’m trying to find a role/create a role for my Ansible config to configure nginx. Here’s how it currently (manually!) works: I have numerous nginx conf files for each website that I host on this machine. api.p123.d…

---

## [How to check for each value in a list that if the value exists somewhere in another using jinja2 templates](https://forum.ansible.com/t/how-to-check-for-each-value-in-a-list-that-if-the-value-exists-somewhere-in-another-using-jinja2-templates/22218)

<div class="topic-metadata">

**Author:** [@ishan\_jain](https://forum.ansible.com/u/ishan_jain)\
**Replies:** 2\
**Last updated:** [August 6, 2016, 8:52am UTC](https://forum.ansible.com/t/how-to-check-for-each-value-in-a-list-that-if-the-value-exists-somewhere-in-another-using-jinja2-templates/22218 "2016-08-06T08:52:18Z")

</div>

I am trying to check if a given mount point exists for each host in my playbook. I am trying to generate a kind of report by printing Success or Failed using if-else, loops and flags (need something better than flags) in…

---

## [Having trouble with Ansible Ad-hoc commands (page 28 of 'Ansible for DevOps' book)](https://forum.ansible.com/t/having-trouble-with-ansible-ad-hoc-commands-page-28-of-ansible-for-devops-book/22191)

<div class="topic-metadata">

**Author:** [@P\_Retzel](https://forum.ansible.com/u/P_Retzel)\
**Replies:** 3\
**Last updated:** [August 6, 2016, 3:24am UTC](https://forum.ansible.com/t/having-trouble-with-ansible-ad-hoc-commands-page-28-of-ansible-for-devops-book/22191 "2016-08-06T03:24:37Z")

</div>

From page 28 in the book “Ansible for DevOps”, the author says to try the following examples: $ ansible multi -s -a "service ntpd stop" $ ansible multi -s -a "ntpdate -q 0.rhel.pool.ntp.org" $ ansible multi -s -a "servi…

---

## [How to install linux server using ansible-playbook in cloud](https://forum.ansible.com/t/how-to-install-linux-server-using-ansible-playbook-in-cloud/22170)

<div class="topic-metadata">

**Author:** [@pvlrjr](https://forum.ansible.com/u/pvlrjr)\
**Replies:** 1\
**Last updated:** [August 5, 2016, 9:54pm UTC](https://forum.ansible.com/t/how-to-install-linux-server-using-ansible-playbook-in-cloud/22170 "2016-08-05T21:54:19Z")

</div>

Hi Team, I requesting you, is there any possibility to install linux server using ansible-playbook in cloud? If possible could you please share how we can achieve… Regards, Jagadesh

---

## [Passing dynamic variable into a role](https://forum.ansible.com/t/passing-dynamic-variable-into-a-role/22116)

<div class="topic-metadata">

**Author:** [@Sam\_S](https://forum.ansible.com/u/Sam_S)\
**Replies:** 1\
**Last updated:** [August 5, 2016, 9:52pm UTC](https://forum.ansible.com/t/passing-dynamic-variable-into-a-role/22116 "2016-08-05T21:52:22Z")

</div>

For each of our servers (webs and perls), we have different mount points for each type of servers. So for web servers, I want to use the entries for “web\_mounts” and perls would be “perl\_mounts.” If I hard code “web\_mou…

---

## [loop over roles?](https://forum.ansible.com/t/loop-over-roles/22150)

<div class="topic-metadata">

**Author:** [@Dick\_Visser](https://forum.ansible.com/u/Dick_Visser)\
**Replies:** 1\
**Last updated:** [August 5, 2016, 9:37pm UTC](https://forum.ansible.com/t/loop-over-roles/22150 "2016-08-05T21:37:45Z")

</div>

Hi I have a bunch of roles in my playbook: roles: - role\_1 - role\_b - { role: install\_app, install\_dir=/opt/foo } - { role: install\_app, install\_dir=/opt/bar } - { role: install\_app, install\_dir=/opt/baz…

---

## [Insert hosts and host variables into a python script](https://forum.ansible.com/t/insert-hosts-and-host-variables-into-a-python-script/22158)

<div class="topic-metadata">

**Author:** [@Dana\_Christo](https://forum.ansible.com/u/Dana_Christo)\
**Replies:** 1\
**Last updated:** [August 5, 2016, 9:32pm UTC](https://forum.ansible.com/t/insert-hosts-and-host-variables-into-a-python-script/22158 "2016-08-05T21:32:39Z")

</div>

Hello, Is it possible to take a hostname and other information in the hosts file and insert each one into a python file as an ansible playbook runs the python file for each host?

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

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