# Archives

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

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

**Page:** 592

---

## [Deregister EC2 instances from an ELB one by one, transnsfer a .deb package & install  and register each onto same ELB back.](https://forum.ansible.com/t/deregister-ec2-instances-from-an-elb-one-by-one-transnsfer-a-deb-package-install-and-register-each-onto-same-elb-back/21445)

<div class="topic-metadata">

**Author:** [@Raj\_Boruah](https://forum.ansible.com/u/Raj_Boruah)\
**Replies:** 0\
**Last updated:** [May 15, 2016, 2:56pm UTC](https://forum.ansible.com/t/deregister-ec2-instances-from-an-elb-one-by-one-transnsfer-a-deb-package-install-and-register-each-onto-same-elb-back/21445 "2016-05-15T14:56:44Z")

</div>

Hi, I am new to Ansible and trying to automate the following scenario on AWS: Get the instance ids registered to an elb from within an elb. (I do not want to specify the instaces in a harcoded way) Deregister one inst…

---

## [How do I continue a handler task on failure?](https://forum.ansible.com/t/how-do-i-continue-a-handler-task-on-failure/21421)

<div class="topic-metadata">

**Author:** [@Gilberto\_Valentin](https://forum.ansible.com/u/Gilberto_Valentin)\
**Replies:** 8\
**Last updated:** [May 15, 2016, 9:03am UTC](https://forum.ansible.com/t/how-do-i-continue-a-handler-task-on-failure/21421 "2016-05-15T09:03:19Z")

</div>

I currently have a playbook (not completed) that installs some packages and sets up MySQL. I have one task that notifies several handlers if that task is changed. However, one of the handler tasks, which uses the ‘expect…

---

## [skip SSH authentication when using synchronize module](https://forum.ansible.com/t/skip-ssh-authentication-when-using-synchronize-module/21443)

<div class="topic-metadata">

**Author:** [@Johannes\_Kastl](https://forum.ansible.com/u/Johannes_Kastl)\
**Replies:** 0\
**Last updated:** [May 15, 2016, 8:19am UTC](https://forum.ansible.com/t/skip-ssh-authentication-when-using-synchronize-module/21443 "2016-05-15T08:19:26Z")

</div>

man ssh-agent Johannes

---

## [Error while trying to install vim using Python API](https://forum.ansible.com/t/error-while-trying-to-install-vim-using-python-api/20447)

<div class="topic-metadata">

**Author:** [@Shreyas\_Patil](https://forum.ansible.com/u/Shreyas_Patil)\
**Replies:** 2\
**Last updated:** [May 15, 2016, 7:49am UTC](https://forum.ansible.com/t/error-while-trying-to-install-vim-using-python-api/20447 "2016-05-15T07:49:26Z")

</div>

Hi, I get the following error while I try to install vim on the remote server using python ansible API. fatal: \[162.243.55.156\]: FAILED! =\> {“changed”: false, “cmd”: “apt-get update ‘&&’ apt-get install python-apt -y -…

---

## [chown failed](https://forum.ansible.com/t/chown-failed/21434)

<div class="topic-metadata">

**Author:** [@MangusB\_rother](https://forum.ansible.com/u/MangusB_rother)\
**Replies:** 3\
**Last updated:** [May 15, 2016, 7:17am UTC](https://forum.ansible.com/t/chown-failed/21434 "2016-05-15T07:17:01Z")

</div>

I am getting a “chown failed” error when i am running the file module to try and chown an archive file on my machine using ansible. I have no clue what this could be caused by. Help please :slight\_smile: I have the foll…

---

## [Ansible & firewalld Part Two: "Avoiding losing the connection by changing the port before starting firewalld" and the joys of ansible\_check\_mode](https://forum.ansible.com/t/ansible-firewalld-part-two-avoiding-losing-the-connection-by-changing-the-port-before-starting-firewalld-and-the-joys-of-ansible-check-mode/21442)

<div class="topic-metadata">

**Author:** [@Johannes\_Kastl](https://forum.ansible.com/u/Johannes_Kastl)\
**Replies:** 0\
**Last updated:** [May 14, 2016, 8:18pm UTC](https://forum.ansible.com/t/ansible-firewalld-part-two-avoiding-losing-the-connection-by-changing-the-port-before-starting-firewalld-and-the-joys-of-ansible-check-mode/21442 "2016-05-14T20:18:39Z")

</div>

Hi again, another issue with firewalld: To get ansible's firewalld module working, firewalld has to be started. When I am using a ssh port different from the standard, firewalld gets started and the rest of the play …

---

## [Ansible firewalld-module: Avoiding useless errors when firewalld is not running during check\_mode](https://forum.ansible.com/t/ansible-firewalld-module-avoiding-useless-errors-when-firewalld-is-not-running-during-check-mode/21441)

<div class="topic-metadata">

**Author:** [@Johannes\_Kastl](https://forum.ansible.com/u/Johannes_Kastl)\
**Replies:** 0\
**Last updated:** [May 14, 2016, 8:06pm UTC](https://forum.ansible.com/t/ansible-firewalld-module-avoiding-useless-errors-when-firewalld-is-not-running-during-check-mode/21441 "2016-05-14T20:06:34Z")

</div>

Hi all, ansible's firewalld-module is kinda picky when it comes to testing. To work it needs a started firewalld. Even in check mode. So if I test my playbook which installs firewalld, starts it and then does some st…

---

## [Dealing with a proliferation of playbooks](https://forum.ansible.com/t/dealing-with-a-proliferation-of-playbooks/21397)

<div class="topic-metadata">

**Author:** [@James\_Pearson\_Hughes](https://forum.ansible.com/u/James_Pearson_Hughes)\
**Replies:** 6\
**Last updated:** [May 14, 2016, 7:57pm UTC](https://forum.ansible.com/t/dealing-with-a-proliferation-of-playbooks/21397 "2016-05-14T19:57:29Z")

</div>

As our company is growing and our use of Ansible grows with it, we’re starting to struggle a bit with organization of our Ansible configs. The primary problem is that while we have things organized according to the docum…

---

## [Return variables on task includes not working anymore](https://forum.ansible.com/t/return-variables-on-task-includes-not-working-anymore/21246)

<div class="topic-metadata">

**Author:** [@dcodix](https://forum.ansible.com/u/dcodix)\
**Replies:** 2\
**Last updated:** [May 14, 2016, 5:26pm UTC](https://forum.ansible.com/t/return-variables-on-task-includes-not-working-anymore/21246 "2016-05-14T17:26:31Z")

</div>

I use to be able to do things like: included\_general\_task.yml

---

## [All host unreachable](https://forum.ansible.com/t/all-host-unreachable/21440)

<div class="topic-metadata">

**Author:** [@Johannes\_Kastl](https://forum.ansible.com/u/Johannes_Kastl)\
**Replies:** 0\
**Last updated:** [May 14, 2016, 8:06am UTC](https://forum.ansible.com/t/all-host-unreachable/21440 "2016-05-14T08:06:23Z")

</div>

What happens if you add this to your ansible.cfg? \[ssh\_connection\] control\_path = %(directory)s/%%C Maybe your control\_path gets to long (being set to ansible-ssh-%h-%p-%r) and thus you run into the BROKEN PIPE error…

---

## [win\_dsc as an extras module?](https://forum.ansible.com/t/win-dsc-as-an-extras-module/21439)

<div class="topic-metadata">

**Author:** [@pixel\_fairy](https://forum.ansible.com/u/pixel_fairy)\
**Replies:** 1\
**Last updated:** [May 13, 2016, 10:47pm UTC](https://forum.ansible.com/t/win-dsc-as-an-extras-module/21439 "2016-05-13T22:47:08Z")

</div>

Why is win\_dsc,https://github.com/trondhindenes/Ansible-win\_dsc not distributed with ansible? is it stable and production ready?

---

## [how to generate an iterable on with\_items with the attributes of a group's members ??](https://forum.ansible.com/t/how-to-generate-an-iterable-on-with-items-with-the-attributes-of-a-groups-members/21435)

<div class="topic-metadata">

**Author:** [@Alejandro\_Comisario](https://forum.ansible.com/u/Alejandro_Comisario)\
**Replies:** 2\
**Last updated:** [May 13, 2016, 9:24pm UTC](https://forum.ansible.com/t/how-to-generate-an-iterable-on-with-items-with-the-attributes-of-a-groups-members/21435 "2016-05-13T21:24:52Z")

</div>

Hi guys, suppose i have this task like the one below, where i want all servers from the haproxy group to access a specific mysql database

---

## [Does the s3 module support a src from a URL?](https://forum.ansible.com/t/does-the-s3-module-support-a-src-from-a-url/21436)

<div class="topic-metadata">

**Author:** [@Sam\_Mingolelli](https://forum.ansible.com/u/Sam_Mingolelli)\
**Replies:** 0\
**Last updated:** [May 13, 2016, 8:44pm UTC](https://forum.ansible.com/t/does-the-s3-module-support-a-src-from-a-url/21436 "2016-05-13T20:44:52Z")

</div>

I tried something like this but it didn’t seem to work: \`

---

## [get\_service\_mgr\_facts error](https://forum.ansible.com/t/get-service-mgr-facts-error/21381)

<div class="topic-metadata">

**Author:** [@Francisco\_Reyes](https://forum.ansible.com/u/Francisco_Reyes)\
**Replies:** 5\
**Last updated:** [May 13, 2016, 8:38pm UTC](https://forum.ansible.com/t/get-service-mgr-facts-error/21381 "2016-05-13T20:38:16Z")

</div>

Trying to switch from Ansible 1.94 to Ansible 2.X (whatever the current latest is… just did a git clone) A playbook that works in 1,94 give me the error below. fatal: \[lunap2.nsinf.net\]: FAILED! =\> {“changed”: false, “…

---

## [Install SW across different distributions](https://forum.ansible.com/t/install-sw-across-different-distributions/21194)

<div class="topic-metadata">

**Author:** [@Riccardo\_Murri1](https://forum.ansible.com/u/Riccardo_Murri1)\
**Replies:** 2\
**Last updated:** [May 13, 2016, 8:26pm UTC](https://forum.ansible.com/t/install-sw-across-different-distributions/21194 "2016-05-13T20:26:04Z")

</div>

Hello, I am editing some playbooks that should be able to install software across different distrubutions. Since Ansible 2.0 there is the OS-independent package manager module; however, actual package names vary acr…

---

## [Template replacement](https://forum.ansible.com/t/template-replacement/21428)

<div class="topic-metadata">

**Author:** [@Pushparaj\_BS](https://forum.ansible.com/u/Pushparaj_BS)\
**Replies:** 1\
**Last updated:** [May 13, 2016, 8:21pm UTC](https://forum.ansible.com/t/template-replacement/21428 "2016-05-13T20:21:59Z")

</div>

Have a template which updates the host name of an webserver configuration file . I'm good here , the host gets updated properly. I use the template src tag to do this. After this task ,the deployment task runs for the …

---

## [Enabling firewalld kills ansible 2.0.2.0](https://forum.ansible.com/t/enabling-firewalld-kills-ansible-2-0-2-0/21424)

<div class="topic-metadata">

**Author:** [@Dejay\_Clayton](https://forum.ansible.com/u/Dejay_Clayton)\
**Replies:** 3\
**Last updated:** [May 13, 2016, 6:44pm UTC](https://forum.ansible.com/t/enabling-firewalld-kills-ansible-2-0-2-0/21424 "2016-05-13T18:44:56Z")

</div>

I’ve recently started running into a problem that I didn’t have before I upgraded from ansible 2.0.1.0 to 2.0.2.0. I don’t conclusively know whether the upgrade itself is responsible for the new behavior I’m seeing. Whe…

---

## [Ansible Retry Color](https://forum.ansible.com/t/ansible-retry-color/21426)

<div class="topic-metadata">

**Author:** [@james4](https://forum.ansible.com/u/james4)\
**Replies:** 6\
**Last updated:** [May 13, 2016, 6:03pm UTC](https://forum.ansible.com/t/ansible-retry-color/21426 "2016-05-13T18:03:53Z")

</div>

It looks like when you use retry it uses a black font. On a black terminal you can barely see it. Anyway to change the color?

---

## [Ansible iterate a dictionary with lists and templates](https://forum.ansible.com/t/ansible-iterate-a-dictionary-with-lists-and-templates/21433)

<div class="topic-metadata">

**Author:** [@swen.b](https://forum.ansible.com/u/swen.b)\
**Replies:** 1\
**Last updated:** [May 13, 2016, 3:38pm UTC](https://forum.ansible.com/t/ansible-iterate-a-dictionary-with-lists-and-templates/21433 "2016-05-13T15:38:02Z")

</div>

Hi, my goal is to use multiple dictionaries within a template. I want one file per username with all projects in it of this user. My playbook looks like: - name: create files template: src=vhost.conf.j2 dest=/tmp/{{ …

---

## [semanage fcontext in ansible?](https://forum.ansible.com/t/semanage-fcontext-in-ansible/16688)

<div class="topic-metadata">

**Author:** [@Dimon](https://forum.ansible.com/u/Dimon)\
**Replies:** 2\
**Last updated:** [May 13, 2016, 2:45pm UTC](https://forum.ansible.com/t/semanage-fcontext-in-ansible/16688 "2016-05-13T14:45:28Z")

</div>

Hi, I’ve got a playbook that needs to set some SELinux labels etc. And I’ve come up with two questions: So far I’ve used direct invocation of "semanage fcontext -a -t logwatch\_cache\_t “/var/lib/logwatch(/.\*)?”. I have…

---

## [Using bare variables is deprecated](https://forum.ansible.com/t/using-bare-variables-is-deprecated/21432)

<div class="topic-metadata">

**Author:** [@Noam\_Greenberg](https://forum.ansible.com/u/Noam_Greenberg)\
**Replies:** 1\
**Last updated:** [May 13, 2016, 1:50pm UTC](https://forum.ansible.com/t/using-bare-variables-is-deprecated/21432 "2016-05-13T13:50:15Z")

</div>

Hi i try do run my play and i get this “Using bare variables is deprecated” and its work but … not for long name: Gather facts action: ec2\_facts register: ec2\_facts tags: test name: Add tag to instances become…

---

## [Execution of shell module is giving  "msg": "MODULE FAILURE", "parsed": false](https://forum.ansible.com/t/execution-of-shell-module-is-giving-msg-module-failure-parsed-false/21406)

<div class="topic-metadata">

**Author:** [@Deepa\_Yr](https://forum.ansible.com/u/Deepa_Yr)\
**Replies:** 1\
**Last updated:** [May 13, 2016, 10:48am UTC](https://forum.ansible.com/t/execution-of-shell-module-is-giving-msg-module-failure-parsed-false/21406 "2016-05-13T10:48:55Z")

</div>

Hi I am trying to run a setup file on linux machine from shell command and also by creating a custom python module to run the setup file. When it is run, it is failing with this error: {“changed”: false, “failed”: tru…

---

## [getting error while removing volume group using anisble playbook](https://forum.ansible.com/t/getting-error-while-removing-volume-group-using-anisble-playbook/21431)

<div class="topic-metadata">

**Author:** [@Kishore\_Devkate](https://forum.ansible.com/u/Kishore_Devkate)\
**Replies:** 0\
**Last updated:** [May 13, 2016, 7:25am UTC](https://forum.ansible.com/t/getting-error-while-removing-volume-group-using-anisble-playbook/21431 "2016-05-13T07:25:25Z")

</div>

Hi Friends, someone please help me in below issue. \[root@swift own-create-ymal\]# ansible-playbook lvm-remove.yaml PLAY \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* TASK \[setup\] \*\*\*\*\*\*\*\*…

---

## [Device doesn’t support Python](https://forum.ansible.com/t/device-doesn-t-support-python/21430)

<div class="topic-metadata">

**Author:** [@Dick\_Davies](https://forum.ansible.com/u/Dick_Davies)\
**Replies:** 0\
**Last updated:** [May 13, 2016, 6:42am UTC](https://forum.ansible.com/t/device-doesn-t-support-python/21430 "2016-05-13T06:42:12Z")

</div>

Yes, see : http://docs.ansible.com/ansible/raw\_module.html

---

## [Nested Playbook with dynamic group Variables](https://forum.ansible.com/t/nested-playbook-with-dynamic-group-variables/21429)

<div class="topic-metadata">

**Author:** [@pawan\_kumar3](https://forum.ansible.com/u/pawan_kumar3)\
**Replies:** 0\
**Last updated:** [May 13, 2016, 3:13am UTC](https://forum.ansible.com/t/nested-playbook-with-dynamic-group-variables/21429 "2016-05-13T03:13:56Z")

</div>

Hi, I am trying to figure out how I could use the vars in one role can be used in another role. Below is init.yaml file which has 2 different plays. I want to use the “env” variable passed in the first play (provision t…

---

## [Getting attributes from with\_inventory\_hostnames](https://forum.ansible.com/t/getting-attributes-from-with-inventory-hostnames/21411)

<div class="topic-metadata">

**Author:** [@pawan\_kumar3](https://forum.ansible.com/u/pawan_kumar3)\
**Replies:** 2\
**Last updated:** [May 13, 2016, 2:39am UTC](https://forum.ansible.com/t/getting-attributes-from-with-inventory-hostnames/21411 "2016-05-13T02:39:23Z")

</div>

Hi , I am generating an inventory file dynamically for each cluster using templates and store it in inventory folder. Below is how the inventory files looks. Filename: leo \` \[gapp\] gapp\[01:02\]-leo.dev.com role=gapp …

---

## [ansible winrm 401 unauthorized](https://forum.ansible.com/t/ansible-winrm-401-unauthorized/21427)

<div class="topic-metadata">

**Author:** [@Krishna\_Chaitanya](https://forum.ansible.com/u/Krishna_Chaitanya)\
**Replies:** 0\
**Last updated:** [May 13, 2016, 12:25am UTC](https://forum.ansible.com/t/ansible-winrm-401-unauthorized/21427 "2016-05-13T00:25:27Z")

</div>

I able to establish the connection to the target windows machine, but the winrm http is not accepting my credentials( i have quoted username and passwd in the windows.yml file). Need help in this.

---

## [Ansible WinRM shows 401 Unauthorized when pywinrm works with no problem](https://forum.ansible.com/t/ansible-winrm-shows-401-unauthorized-when-pywinrm-works-with-no-problem/19578)

<div class="topic-metadata">

**Author:** [@Tianwei\_Liu](https://forum.ansible.com/u/Tianwei_Liu)\
**Replies:** 5\
**Last updated:** [May 13, 2016, 12:21am UTC](https://forum.ansible.com/t/ansible-winrm-shows-401-unauthorized-when-pywinrm-works-with-no-problem/19578 "2016-05-13T00:21:56Z")

</div>

Hi, I am having this weird problem that my ansible will always show 401 error when trying to connect my windows machine via winrm. Although I can use pywinrm with no problem at all authenticating with the exact same acc…

---

## [Ansible Playbook Running Against Wrong Vagrant VM](https://forum.ansible.com/t/ansible-playbook-running-against-wrong-vagrant-vm/21417)

<div class="topic-metadata">

**Author:** [@Robert\_F](https://forum.ansible.com/u/Robert_F)\
**Replies:** 2\
**Last updated:** [May 12, 2016, 10:15pm UTC](https://forum.ansible.com/t/ansible-playbook-running-against-wrong-vagrant-vm/21417 "2016-05-12T22:15:21Z")

</div>

I have an Ansible playbook which, when I run it, executes its tasks against the wrong Vagrant VM. Here’s how I built my VMs: ~/playbooks/vagrant/Vagrantfile Vagrant.configure(2) do |config| config.ssh.insert\_key = fals…

---

## [how to use facts in group\_vars](https://forum.ansible.com/t/how-to-use-facts-in-group-vars/21409)

<div class="topic-metadata">

**Author:** [@Peter\_Horvath1](https://forum.ansible.com/u/Peter_Horvath1)\
**Replies:** 1\
**Last updated:** [May 12, 2016, 9:20pm UTC](https://forum.ansible.com/t/how-to-use-facts-in-group-vars/21409 "2016-05-12T21:20:28Z")

</div>

Hi Guys, It might be a stupid question, but how can i use facts as variable value in group vars? I want to install Elastic search and want to have network.host to be filled automatically with the eth0.ip4 address. rol…

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

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