# Latest

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

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

**Page:** 681

---

## [uri module and curl](https://forum.ansible.com/t/uri-module-and-curl/23839)

<div class="topic-metadata">

**Author:** [@John\_Norris](https://forum.ansible.com/u/John_Norris)\
**Replies:** 9\
**Last updated:** [March 2, 2017, 8:48pm UTC](https://forum.ansible.com/t/uri-module-and-curl/23839 "2017-03-02T20:48:19Z")

</div>

Hi, is the uri module a curl substitute? I ask because if, on the command line, I run curl, I get the expected json output from a tomcat rest application. In the logs is a 200 result. But if I run the same in uri then…

---

## [Manage Openstack with salt/ansible.](https://forum.ansible.com/t/manage-openstack-with-salt-ansible/23864)

<div class="topic-metadata">

**Author:** [@Pratik\_Bandarkar](https://forum.ansible.com/u/Pratik_Bandarkar)\
**Replies:** 2\
**Last updated:** [March 2, 2017, 8:10pm UTC](https://forum.ansible.com/t/manage-openstack-with-salt-ansible/23864 "2017-03-02T20:10:30Z")

</div>

I am plaining to work on automating tasks which admin generally performs after deploying Openstack.For ex. create/delete/manage instances/volumes/network/heat-stack etc. But, I am bit confused in between salt and ansibl…

---

## [How to automatically handle slight difference in configuring Master-slave setup](https://forum.ansible.com/t/how-to-automatically-handle-slight-difference-in-configuring-master-slave-setup/23860)

<div class="topic-metadata">

**Author:** [@ishan\_jain](https://forum.ansible.com/u/ishan_jain)\
**Replies:** 1\
**Last updated:** [March 2, 2017, 7:35pm UTC](https://forum.ansible.com/t/how-to-automatically-handle-slight-difference-in-configuring-master-slave-setup/23860 "2017-03-02T19:35:25Z")

</div>

I am preparing some Ansible scripts for a service that works in a master/slave setup. There is a single docker image for both but the master/slave behavior will be acquired after configuring some environment variables. W…

---

## [ansible gives AttributeError: 'AnsibleModule' object has no attribute '\_selinux\_special\_fs' when selinux enable](https://forum.ansible.com/t/ansible-gives-attributeerror-ansiblemodule-object-has-no-attribute-selinux-special-fs-when-selinux-enable/23868)

<div class="topic-metadata">

**Author:** [@Gowtham\_Shanmugam](https://forum.ansible.com/u/Gowtham_Shanmugam)\
**Replies:** 0\
**Last updated:** [March 2, 2017, 4:24pm UTC](https://forum.ansible.com/t/ansible-gives-attributeerror-ansiblemodule-object-has-no-attribute-selinux-special-fs-when-selinux-enable/23868 "2017-03-02T16:24:24Z")

</div>

ansible gives AttributeError: ‘AnsibleModule’ object has no attribute ‘\_selinux\_special\_fs’ when selinux enable

---

## [Ansible gives AttributeError: 'AnsibleModule' object has no attribute '\_selinux\_special\_fs'](https://forum.ansible.com/t/ansible-gives-attributeerror-ansiblemodule-object-has-no-attribute-selinux-special-fs/23867)

<div class="topic-metadata">

**Author:** [@Gowtham\_Shanmugam](https://forum.ansible.com/u/Gowtham_Shanmugam)\
**Replies:** 0\
**Last updated:** [March 2, 2017, 4:22pm UTC](https://forum.ansible.com/t/ansible-gives-attributeerror-ansiblemodule-object-has-no-attribute-selinux-special-fs/23867 "2017-03-02T16:22:19Z")

</div>

ansible gives AttributeError error when selinux is enables but if i disable selinux then this error is not came, why this problem is this bug or any problem with my setup. Anyone please give solution for this

---

## [New VMWare Modules in v2.2](https://forum.ansible.com/t/new-vmware-modules-in-v2-2/22956)

<div class="topic-metadata">

**Author:** [@Dylan\_Silva1](https://forum.ansible.com/u/Dylan_Silva1)\
**Replies:** 3\
**Last updated:** [March 2, 2017, 4:15pm UTC](https://forum.ansible.com/t/new-vmware-modules-in-v2-2/22956 "2017-03-02T16:15:35Z")

</div>

Hello all! In version 2.2, we released three new VMWare modules and we’d like some feedback. vmware\_guest vmware\_local\_user\_manager vmware\_vmotion And just to mention, there are 18 other VMWare modules that could use…

---

## [Ansible 2.2.0.0 does not have problems with tab spaces within playbooks ?](https://forum.ansible.com/t/ansible-2-2-0-0-does-not-have-problems-with-tab-spaces-within-playbooks/23866)

<div class="topic-metadata">

**Author:** [@ishan\_jain](https://forum.ansible.com/u/ishan_jain)\
**Replies:** 0\
**Last updated:** [March 2, 2017, 3:38pm UTC](https://forum.ansible.com/t/ansible-2-2-0-0-does-not-have-problems-with-tab-spaces-within-playbooks/23866 "2017-03-02T15:38:35Z")

</div>

I was working on Ansible version 2.2.0.0 and my playbook was working fine. I installed a new Ansible host with version 2.2.1.0 and executed the exact same playbook but this time i encountered some problems. After investi…

---

## [module (redhat\_subscription) is missing interpreter line](https://forum.ansible.com/t/module-redhat-subscription-is-missing-interpreter-line/23865)

<div class="topic-metadata">

**Author:** [@stack4cl](https://forum.ansible.com/u/stack4cl)\
**Replies:** 0\
**Last updated:** [March 2, 2017, 2:32pm UTC](https://forum.ansible.com/t/module-redhat-subscription-is-missing-interpreter-line/23865 "2017-03-02T14:32:58Z")

</div>

Imported ansible redhat\_subscription module from the Git hub and created a play book using this module . While running that play book I'm getting error- " fatal: \[10.224.2.42\]: FAILED! =\> {"failed": true, "msg": "modu…

---

## [ansible noob trying to ping hosts in hosts file](https://forum.ansible.com/t/ansible-noob-trying-to-ping-hosts-in-hosts-file/20679)

<div class="topic-metadata">

**Author:** [@markpattisondev](https://forum.ansible.com/u/markpattisondev)\
**Replies:** 1\
**Last updated:** [March 2, 2017, 11:45am UTC](https://forum.ansible.com/t/ansible-noob-trying-to-ping-hosts-in-hosts-file/20679 "2017-03-02T11:45:29Z")

</div>

Hi there. I just installed ansible on ubuntu 15 and am going through the getting started documentation found here: http://docs.ansible.com/ansible/intro\_getting\_started.html I’ve added two servers to my hosts file… but…

---

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

<div class="topic-metadata">

**Author:** [@konstantin](https://forum.ansible.com/u/konstantin)\
**Replies:** 0\
**Last updated:** [March 2, 2017, 9:50am UTC](https://forum.ansible.com/t/winrm-retries-and-timeout/23861 "2017-03-02T09:50:22Z")

</div>

is it possible to configure winrm connection with timeout and retries? for shh there is timeout, and retries settings in ansible config. But they are not applied when connection is winrm

---

## [Ansible Get\_url module response HTTP Bad Request](https://forum.ansible.com/t/ansible-get-url-module-response-http-bad-request/23853)

<div class="topic-metadata">

**Author:** [@Shyam\_Yenna](https://forum.ansible.com/u/Shyam_Yenna)\
**Replies:** 1\
**Last updated:** [March 2, 2017, 8:51am UTC](https://forum.ansible.com/t/ansible-get-url-module-response-http-bad-request/23853 "2017-03-02T08:51:46Z")

</div>

I am implementing below task and it throwing me HTTP Error: 400 Bad Request FAILED! =\> { “changed”: false, “dest”: “/tmp”, “failed”: true, “gid”: 0, “group”: “root”, “invocation”: { “module\_args”: { “backup”: fa…

---

## [docker\_container recreate doesn't seem to work](https://forum.ansible.com/t/docker-container-recreate-doesnt-seem-to-work/23856)

<div class="topic-metadata">

**Author:** [@MartinBBG](https://forum.ansible.com/u/MartinBBG)\
**Replies:** 0\
**Last updated:** [March 1, 2017, 10:02pm UTC](https://forum.ansible.com/t/docker-container-recreate-doesnt-seem-to-work/23856 "2017-03-01T22:02:56Z")

</div>

I have an docker\_container that creates a container with state started (lets called this docker container Service). It has a volume\_from another container (lets call that container Volume). When the Volume container chan…

---

## [Play recap data](https://forum.ansible.com/t/play-recap-data/23855)

<div class="topic-metadata">

**Author:** [@ansible\_starter](https://forum.ansible.com/u/ansible_starter)\
**Replies:** 0\
**Last updated:** [March 1, 2017, 5:44pm UTC](https://forum.ansible.com/t/play-recap-data/23855 "2017-03-01T17:44:41Z")

</div>

Hi,I ran the following playbook with two tasks. The play recap summary shows 3 OK and 2 changed. Is the OK tab the net amount of tasks which didn't fail(OK+Changed)? I was under the impression it was the number of tas…

---

## [Ansible play recap doubt](https://forum.ansible.com/t/ansible-play-recap-doubt/23854)

<div class="topic-metadata">

**Author:** [@ansible\_starter](https://forum.ansible.com/u/ansible_starter)\
**Replies:** 0\
**Last updated:** [March 1, 2017, 5:35pm UTC](https://forum.ansible.com/t/ansible-play-recap-doubt/23854 "2017-03-01T17:35:10Z")

</div>

In the play recap(summary) does the OK tab means the “total number of tasks which were not changed + which were changed”. In other words, the tasks which didn’t fail? I was under the impression it was the tasks which di…

---

## [Need help creating an Azure service principal for ansible. Redirect URI for ansible ?](https://forum.ansible.com/t/need-help-creating-an-azure-service-principal-for-ansible-redirect-uri-for-ansible/23299)

<div class="topic-metadata">

**Author:** [@Prasanna\_Dhandapani](https://forum.ansible.com/u/Prasanna_Dhandapani)\
**Replies:** 1\
**Last updated:** [March 1, 2017, 2:52pm UTC](https://forum.ansible.com/t/need-help-creating-an-azure-service-principal-for-ansible-redirect-uri-for-ansible/23299 "2017-03-01T14:52:07Z")

</div>

Hello, I’m new to Ansible and I’m running into an issue with getting the “azure\_rm\_storageaccount” module in ansible to work. Any help would be greatly appreciated. Goal: I would like to manage our Azure resources in ou…

---

## [ansible shell calling maven exec fails](https://forum.ansible.com/t/ansible-shell-calling-maven-exec-fails/23843)

<div class="topic-metadata">

**Author:** [@g.roberts](https://forum.ansible.com/u/g.roberts)\
**Replies:** 3\
**Last updated:** [March 1, 2017, 9:36am UTC](https://forum.ansible.com/t/ansible-shell-calling-maven-exec-fails/23843 "2017-03-01T09:36:20Z")

</div>

All, I would assume ansible would run a bash script exactly as if it were run from the CLI, but apparently not. Can any one help me understand the differences? I am using ansible shell to start a set of five long runni…

---

## [How to use regex to match a response using the expect module](https://forum.ansible.com/t/how-to-use-regex-to-match-a-response-using-the-expect-module/23834)

<div class="topic-metadata">

**Author:** [@David\_Williams1](https://forum.ansible.com/u/David_Williams1)\
**Replies:** 3\
**Last updated:** [March 1, 2017, 8:44am UTC](https://forum.ansible.com/t/how-to-use-regex-to-match-a-response-using-the-expect-module/23834 "2017-03-01T08:44:46Z")

</div>

I am stumped…I have been trying to use the expect module and format the expected response as a regex that can match multiple responses. I see posts all over where people are trying to match the response exactly and have …

---

## [ansible-pull, and upgrading ansible](https://forum.ansible.com/t/ansible-pull-and-upgrading-ansible/23849)

<div class="topic-metadata">

**Author:** [@Stephen\_Tan](https://forum.ansible.com/u/Stephen_Tan)\
**Replies:** 0\
**Last updated:** [February 28, 2017, 10:07pm UTC](https://forum.ansible.com/t/ansible-pull-and-upgrading-ansible/23849 "2017-02-28T22:07:20Z")

</div>

Hi all I have an interesting situation which I think the very clever people here could probably help me with. Our use case for ansible: We use ansible pull which runs a local connection. It allows us to scale nicely …

---

## [Help with ios\_config and login banner](https://forum.ansible.com/t/help-with-ios-config-and-login-banner/23848)

<div class="topic-metadata">

**Author:** [@Len\_Tucker](https://forum.ansible.com/u/Len_Tucker)\
**Replies:** 0\
**Last updated:** [February 28, 2017, 9:21pm UTC](https://forum.ansible.com/t/help-with-ios-config-and-login-banner/23848 "2017-02-28T21:21:35Z")

</div>

I am having a timeout issue with ios\_config and login banners. The playbook times out. Any help or examples of a working config would be appreciated. adminlen@len-nm-1:~/ansible$ ansible --version ansible 2.3.0 config…

---

## [Windows Working Group IRC meetings](https://forum.ansible.com/t/windows-working-group-irc-meetings/23847)

<div class="topic-metadata">

**Author:** [@Matt\_Davis](https://forum.ansible.com/u/Matt_Davis)\
**Replies:** 1\
**Last updated:** [February 28, 2017, 8:12pm UTC](https://forum.ansible.com/t/windows-working-group-irc-meetings/23847 "2017-02-28T20:12:03Z")

</div>

We’re pleased to announce that the Ansible Windows Working Group will begin biweekly IRC meetings in the Freenode #ansible-meeting channel on March 13/14, 2017 (depending on your time zone). This will be a regular develo…

---

## [Windows Working Group IRC meetings](https://forum.ansible.com/t/windows-working-group-irc-meetings/23846)

<div class="topic-metadata">

**Author:** [@Matt\_Davis](https://forum.ansible.com/u/Matt_Davis)\
**Replies:** 0\
**Last updated:** [February 28, 2017, 7:52pm UTC](https://forum.ansible.com/t/windows-working-group-irc-meetings/23846 "2017-02-28T19:52:11Z")

</div>

We’re pleased to announce that the Ansible Windows Working Group will begin biweekly IRC meetings in the Freenode #ansible-meeting channel on March 13/14, 2017 (depending on your time zone). This will be a regular develo…

---

## [Need help with deprecation warnings](https://forum.ansible.com/t/need-help-with-deprecation-warnings/22425)

<div class="topic-metadata">

**Author:** [@ayush.kumar](https://forum.ansible.com/u/ayush.kumar)\
**Replies:** 12\
**Last updated:** [February 28, 2017, 6:48pm UTC](https://forum.ansible.com/t/need-help-with-deprecation-warnings/22425 "2017-02-28T18:48:30Z")

</div>

Hey all, Just trying to figure out how to fix the deprecation warnings (recently updated to 2.1.1.0 from 1.7). I used to have the 4 individual tasks in the block below (I left the commented out when statements from the …

---

## [Variables and templates between roles](https://forum.ansible.com/t/variables-and-templates-between-roles/23844)

<div class="topic-metadata">

**Author:** [@gforster](https://forum.ansible.com/u/gforster)\
**Replies:** 1\
**Last updated:** [February 28, 2017, 6:23pm UTC](https://forum.ansible.com/t/variables-and-templates-between-roles/23844 "2017-02-28T18:23:38Z")

</div>

I may be way off in the way I’m trying to accomplish this, but I think I need to pass variables from one role to another. I am setting up svn on a Suse server. I’m using the geerlingguy.apache and a rather modified geer…

---

## ["when" and "with\_items" again, with a twist](https://forum.ansible.com/t/when-and-with-items-again-with-a-twist/21855)

<div class="topic-metadata">

**Author:** [@henrique.rodrigues](https://forum.ansible.com/u/henrique.rodrigues)\
**Replies:** 3\
**Last updated:** [February 28, 2017, 5:06pm UTC](https://forum.ansible.com/t/when-and-with-items-again-with-a-twist/21855 "2017-02-28T17:06:49Z")

</div>

Hi, I’m getting an error when using “when” and “with\_items” together. As I’ve read many times, this happens because “when” runs inside “with\_items”, so we can use “| default()” to bypass the error, but I think I found a…

---

## [Passing to a module a list of values](https://forum.ansible.com/t/passing-to-a-module-a-list-of-values/23842)

<div class="topic-metadata">

**Author:** [@stephane](https://forum.ansible.com/u/stephane)\
**Replies:** 3\
**Last updated:** [February 28, 2017, 4:54pm UTC](https://forum.ansible.com/t/passing-to-a-module-a-list-of-values/23842 "2017-02-28T16:54:45Z")

</div>

Hello, I’m currently trying to create a module to manage poudriere (which is a tool to manage package repository for FreeBSD). When I use the pkgng module this way, the command pkgng is actually called once, and the “n…

---

## [Action Plugins and Async Support](https://forum.ansible.com/t/action-plugins-and-async-support/23223)

<div class="topic-metadata">

**Author:** [@Mumshad\_Mannambeth](https://forum.ansible.com/u/Mumshad_Mannambeth)\
**Replies:** 1\
**Last updated:** [February 28, 2017, 4:41pm UTC](https://forum.ansible.com/t/action-plugins-and-async-support/23223 "2017-02-28T16:41:59Z")

</div>

I have two questions about action\_plugins: I wrote a custom ansible module that by default has async support. I wrote an action plugin for it like below. Now I get error - async mode is not supported for this module. A…

---

## [Dynamically include vaulted vars within playbook only for certain hosts](https://forum.ansible.com/t/dynamically-include-vaulted-vars-within-playbook-only-for-certain-hosts/23791)

<div class="topic-metadata">

**Author:** [@Pete\_Albrecht](https://forum.ansible.com/u/Pete_Albrecht)\
**Replies:** 1\
**Last updated:** [February 28, 2017, 4:25pm UTC](https://forum.ansible.com/t/dynamically-include-vaulted-vars-within-playbook-only-for-certain-hosts/23791 "2017-02-28T16:25:37Z")

</div>

Greetings! I’m trying to figure out the best way to dynamically include vaulted vars files in a playbook only for certain hosts. The situation is I’m building out production and pre-prod environments from a common playb…

---

## [Can we rely on play variables being re-calculated/re-templated for each host in a play?](https://forum.ansible.com/t/can-we-rely-on-play-variables-being-re-calculated-re-templated-for-each-host-in-a-play/22115)

<div class="topic-metadata">

**Author:** [@Jonathan\_Strootman](https://forum.ansible.com/u/Jonathan_Strootman)\
**Replies:** 1\
**Last updated:** [February 28, 2017, 4:19pm UTC](https://forum.ansible.com/t/can-we-rely-on-play-variables-being-re-calculated-re-templated-for-each-host-in-a-play/22115 "2017-02-28T16:19:22Z")

</div>

Hello, I know that you can, but it seems ambiguous on whether one should. For example: There is a role named “role\_1”, which has templated variables in both “defaults/main.yml” and “vars/main.yml”. I could create a p…

---

## [Syntax Error while loading YAML.](https://forum.ansible.com/t/syntax-error-while-loading-yaml/23837)

<div class="topic-metadata">

**Author:** [@Pankaj\_Navneet](https://forum.ansible.com/u/Pankaj_Navneet)\
**Replies:** 2\
**Last updated:** [February 28, 2017, 2:49pm UTC](https://forum.ansible.com/t/syntax-error-while-loading-yaml/23837 "2017-02-28T14:49:08Z")

</div>

Hi All, I have written a YAML to install Nginx on my AWS Slave server. But every time i got below error while running my playbook. I googled to resolve this issue, but unable to do so. Can you guys help me in sorting wh…

---

## [Multiple users running ansible on the same host causes blocking](https://forum.ansible.com/t/multiple-users-running-ansible-on-the-same-host-causes-blocking/23832)

<div class="topic-metadata">

**Author:** [@Andrew\_Martin](https://forum.ansible.com/u/Andrew_Martin)\
**Replies:** 2\
**Last updated:** [February 28, 2017, 2:11pm UTC](https://forum.ansible.com/t/multiple-users-running-ansible-on-the-same-host-causes-blocking/23832 "2017-02-28T14:11:42Z")

</div>

I am running Ansible 2.2.0 on Ubuntu 16.04. When I have more than one user running a playbook on hosts all from this same server, I sometimes observe this behavior: user 1 starts running a playbook on host A, playbook …

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

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