# Latest

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

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

**Page:** 912

---

## [stop Tomcat instances](https://forum.ansible.com/t/stop-tomcat-instances/17029)

<div class="topic-metadata">

**Author:** [@Sharon\_Bernstein](https://forum.ansible.com/u/Sharon_Bernstein)\
**Replies:** 5\
**Last updated:** [December 11, 2014, 11:57pm UTC](https://forum.ansible.com/t/stop-tomcat-instances/17029 "2014-12-11T23:57:38Z")

</div>

Hello. im unable to stop Tomcat instances with Ansible. in the shell, i just need to type /etc/init.d/tomcat7\_stop instance01 i found this .yml file and it’s written name: stop tomcat service: name=tomcat state=sto…

---

## [I'd like to extend the async poller to retry on connection interruptions](https://forum.ansible.com/t/id-like-to-extend-the-async-poller-to-retry-on-connection-interruptions/17010)

<div class="topic-metadata">

**Author:** [@Dan\_Lui](https://forum.ansible.com/u/Dan_Lui)\
**Replies:** 1\
**Last updated:** [December 11, 2014, 11:57pm UTC](https://forum.ansible.com/t/id-like-to-extend-the-async-poller-to-retry-on-connection-interruptions/17010 "2014-12-11T23:57:03Z")

</div>

HI, I’m new. Hopefully I’m in the right place. I’m trying to update the poller so that it can handle long running jobs over flaky connections. So far, I’ve found that the playbook class method \_async\_poll which calls p…

---

## [os.environ\['ANSIBLE\_CONFIG'\] doesnt work while specifying different ansible config file location](https://forum.ansible.com/t/os-environ-ansible-config-doesnt-work-while-specifying-different-ansible-config-file-location/16994)

<div class="topic-metadata">

**Author:** [@Ritesh\_Shetty](https://forum.ansible.com/u/Ritesh_Shetty)\
**Replies:** 8\
**Last updated:** [December 11, 2014, 11:53pm UTC](https://forum.ansible.com/t/os-environ-ansible-config-doesnt-work-while-specifying-different-ansible-config-file-location/16994 "2014-12-11T23:53:19Z")

</div>

Hi , I am using ansible python api(being called from a pecan application running in a apache2 server) i am trying to set os.environ\[‘ANSIBLE\_CONFIG’\] = “/etc/differentlocation/ansible.cfg” but it doesnt work . i need …

---

## [subclassing ActionModule classes](https://forum.ansible.com/t/subclassing-actionmodule-classes/16905)

<div class="topic-metadata">

**Author:** [@j.r.hawkesworth](https://forum.ansible.com/u/j.r.hawkesworth)\
**Replies:** 8\
**Last updated:** [December 11, 2014, 11:50pm UTC](https://forum.ansible.com/t/subclassing-actionmodule-classes/16905 "2014-12-11T23:50:59Z")

</div>

Hello I’m working on versions of file copy and template for windows. I’ve push a ‘first pass’ PR here https://github.com/ansible/ansible/pull/9611 and here https://github.com/ansible/ansible-modules-core/pull/384 but t…

---

## [ansible fails to restart if handler is broken?](https://forum.ansible.com/t/ansible-fails-to-restart-if-handler-is-broken/17006)

<div class="topic-metadata">

**Author:** [@Kevin\_Burton](https://forum.ansible.com/u/Kevin_Burton)\
**Replies:** 4\
**Last updated:** [December 11, 2014, 10:31pm UTC](https://forum.ansible.com/t/ansible-fails-to-restart-if-handler-is-broken/17006 "2014-12-11T22:31:25Z")

</div>

this is a bug… TASK: \[pdns-recursor | recursor.conf file\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* changed: \[10.56.252.12\] ERROR: change handler (restart pdns-recursor) is not defined … so my issue was that the handler…

---

## [How do I pass a list as an --extra-vars](https://forum.ansible.com/t/how-do-i-pass-a-list-as-an-extra-vars/17028)

<div class="topic-metadata">

**Author:** [@oravirt](https://forum.ansible.com/u/oravirt)\
**Replies:** 5\
**Last updated:** [December 11, 2014, 8:56pm UTC](https://forum.ansible.com/t/how-do-i-pass-a-list-as-an-extra-vars/17028 "2014-12-11T20:56:23Z")

</div>

Hi, I got a list that looks like this listname: name: ble version: 1 path: /some/path … … which is accessed as name: do something shell: run some command with\_items: listname If I want to pass the list to a…

---

## [Using dependency graphs to speed up ansible?](https://forum.ansible.com/t/using-dependency-graphs-to-speed-up-ansible/17031)

<div class="topic-metadata">

**Author:** [@Kevin\_Burton](https://forum.ansible.com/u/Kevin_Burton)\
**Replies:** 2\
**Last updated:** [December 11, 2014, 8:24pm UTC](https://forum.ansible.com/t/using-dependency-graphs-to-speed-up-ansible/17031 "2014-12-11T20:24:14Z")

</div>

Has anyone done any work on using dependency graphs to speed up ansible. For example, if I have one big site.yml, and I only change an edge role, something small, it doesn’t make sense to re-run ALL playbooks. There mi…

---

## [custom modules & how to include custom files](https://forum.ansible.com/t/custom-modules-how-to-include-custom-files/14630)

<div class="topic-metadata">

**Author:** [@Raphael\_Randschau](https://forum.ansible.com/u/Raphael_Randschau)\
**Replies:** 4\
**Last updated:** [December 11, 2014, 7:47pm UTC](https://forum.ansible.com/t/custom-modules-how-to-include-custom-files/14630 "2014-12-11T19:47:43Z")

</div>

Hey there, while working on ansible-rails I came across a problem I have not yet been able to solve by just reading and interpreting the ansible source code: how can I share common dependencies between multiple, custom…

---

## [How to convince ansible-playbook to colorize output?](https://forum.ansible.com/t/how-to-convince-ansible-playbook-to-colorize-output/17021)

<div class="topic-metadata">

**Author:** [@Bryan\_Berry](https://forum.ansible.com/u/Bryan_Berry)\
**Replies:** 3\
**Last updated:** [December 11, 2014, 5:33pm UTC](https://forum.ansible.com/t/how-to-convince-ansible-playbook-to-colorize-output/17021 "2014-12-11T17:33:21Z")

</div>

Dear Ansiblists, I have written a tool that wraps ansible-playbook to enforce a client’s fairly complex workflow and provides helper functions specific to their use case. The only thing that I lose by doing is the color…

---

## [Service Module on Package Upgrade](https://forum.ansible.com/t/service-module-on-package-upgrade/17027)

<div class="topic-metadata">

**Author:** [@Matt\_Hughes](https://forum.ansible.com/u/Matt_Hughes)\
**Replies:** 3\
**Last updated:** [December 11, 2014, 5:20pm UTC](https://forum.ansible.com/t/service-module-on-package-upgrade/17027 "2014-12-11T17:20:39Z")

</div>

If I try and upgrade a package that has already been started, ‘service’ module doesn’t seem to behave: \` name: Install Docker yum: name=docker-io-1.3.1 state=installed name: Start Docker service: name=docker state=s…

---

## [inconsistant when accessing fact attributes](https://forum.ansible.com/t/inconsistant-when-accessing-fact-attributes/17020)

<div class="topic-metadata">

**Author:** [@Steve\_Kieu](https://forum.ansible.com/u/Steve_Kieu)\
**Replies:** 1\
**Last updated:** [December 11, 2014, 3:35pm UTC](https://forum.ansible.com/t/inconsistant-when-accessing-fact-attributes/17020 "2014-12-11T15:35:58Z")

</div>

Hi Team, When I first create a docker container which is centos6 based. Run ansible setup and the fact return for “ansible\_selinux” is a boolean. After a while not sure what has been done if runs setup again - the valu…

---

## [Unexpected "Item is undefined"](https://forum.ansible.com/t/unexpected-item-is-undefined/17016)

<div class="topic-metadata">

**Author:** [@Capi\_Etheriel](https://forum.ansible.com/u/Capi_Etheriel)\
**Replies:** 2\
**Last updated:** [December 11, 2014, 2:19pm UTC](https://forum.ansible.com/t/unexpected-item-is-undefined/17016 "2014-12-11T14:19:22Z")

</div>

Hi folks I got kind of stuck with https://gist.github.com/barraponto/a14c264a7755c8371ade It’s in a role as you can see. I’ve gisted the only files I edited in it. The problem is it says item is not defined: fatal: \[…

---

## [using multiple dynamic inventory scripts at once](https://forum.ansible.com/t/using-multiple-dynamic-inventory-scripts-at-once/17018)

<div class="topic-metadata">

**Author:** [@Florin\_Andrei](https://forum.ansible.com/u/Florin_Andrei)\
**Replies:** 3\
**Last updated:** [December 11, 2014, 5:14am UTC](https://forum.ansible.com/t/using-multiple-dynamic-inventory-scripts-at-once/17018 "2014-12-11T05:14:30Z")

</div>

New to Ansible, just testing it. For now, I’m using dynamic inventory scrips, and I’m trying to run simple commands on all hosts, via ansible. I’ve setup ec2.py and digital\_ocean.py in ~/ansible/, and both scripts work …

---

## [Ansible hosts configuration using private key and sudo user](https://forum.ansible.com/t/ansible-hosts-configuration-using-private-key-and-sudo-user/16997)

<div class="topic-metadata">

**Author:** [@Adithya\_Khamithkar](https://forum.ansible.com/u/Adithya_Khamithkar)\
**Replies:** 2\
**Last updated:** [December 11, 2014, 3:22am UTC](https://forum.ansible.com/t/ansible-hosts-configuration-using-private-key-and-sudo-user/16997 "2014-12-11T03:22:10Z")

</div>

Hi I have written a playbook for Ansible to install a few application. I am having trouble as I have to run every thing as root which is not a good idea. So I have created a sudo user and have created a private key for …

---

## [HowTo: Add string to an existing quoted string in file using lineinfile](https://forum.ansible.com/t/howto-add-string-to-an-existing-quoted-string-in-file-using-lineinfile/16135)

<div class="topic-metadata">

**Author:** [@William\_Clark](https://forum.ansible.com/u/William_Clark)\
**Replies:** 4\
**Last updated:** [December 10, 2014, 9:59pm UTC](https://forum.ansible.com/t/howto-add-string-to-an-existing-quoted-string-in-file-using-lineinfile/16135 "2014-12-10T21:59:05Z")

</div>

Background I needed to find a way to add new paths to a quoted line in the following file: File: /etc/updatedb.com Line: PRUNEPATHS = “/afs /media /net /sfs /tmp /udev /var/cache/ccache /var/spool/cups /var/spool/squi…

---

## [rax\_scaling\_group fails to create scaling group](https://forum.ansible.com/t/rax-scaling-group-fails-to-create-scaling-group/17014)

<div class="topic-metadata">

**Author:** [@David\_Goodall](https://forum.ansible.com/u/David_Goodall)\
**Replies:** 1\
**Last updated:** [December 10, 2014, 8:48pm UTC](https://forum.ansible.com/t/rax-scaling-group-fails-to-create-scaling-group/17014 "2014-12-10T20:48:13Z")

</div>

Hi, Following the example here http://docs.ansible.com/rax\_scaling\_group\_module.html#examples fails with the message pasted at the end. Versions: ansible 1.8.2 pyrax-1.9.3 Playbook: tasks: name: Load Balancer cr…

---

## [Extends variables in yaml](https://forum.ansible.com/t/extends-variables-in-yaml/16987)

<div class="topic-metadata">

**Author:** [@Micael\_Malta](https://forum.ansible.com/u/Micael_Malta)\
**Replies:** 3\
**Last updated:** [December 10, 2014, 6:06pm UTC](https://forum.ansible.com/t/extends-variables-in-yaml/16987 "2014-12-10T18:06:12Z")

</div>

I have a question: How to extends variables: In group\_vars/all, i have a variable config and i want in host\_vars/my\_server to extend it How to do that?

---

## [Gather facts fails regardless if conditional is met for roles](https://forum.ansible.com/t/gather-facts-fails-regardless-if-conditional-is-met-for-roles/17009)

<div class="topic-metadata">

**Author:** [@phil\_toohill](https://forum.ansible.com/u/phil_toohill)\
**Replies:** 2\
**Last updated:** [December 10, 2014, 5:32pm UTC](https://forum.ansible.com/t/gather-facts-fails-regardless-if-conditional-is-met-for-roles/17009 "2014-12-10T17:32:18Z")

</div>

Issue Type: Bug Report Ansible Version: 1.8.2 Environment: OSX 10.8.5 Summary: Fact gathering fails when cloud module deletes server and roles play is called with a when conditional. Steps To Reproduce: Assuming util…

---

## [How to join list in Yml](https://forum.ansible.com/t/how-to-join-list-in-yml/16986)

<div class="topic-metadata">

**Author:** [@Micael\_Malta](https://forum.ansible.com/u/Micael_Malta)\
**Replies:** 1\
**Last updated:** [December 10, 2014, 3:42pm UTC](https://forum.ansible.com/t/how-to-join-list-in-yml/16986 "2014-12-10T15:42:43Z")

</div>

i have to get dynamic variables in config: list: \[1,2,3\] variable: { name: myname, “{{ list | join(”,“) }}” } How to do that ?

---

## [User playbook questions/issues](https://forum.ansible.com/t/user-playbook-questions-issues/17011)

<div class="topic-metadata">

**Author:** [@nfavor](https://forum.ansible.com/u/nfavor)\
**Replies:** 0\
**Last updated:** [December 10, 2014, 3:40pm UTC](https://forum.ansible.com/t/user-playbook-questions-issues/17011 "2014-12-10T15:40:24Z")

</div>

I love ansible and I think I just need help getting around a few things. If I specify GCOS or shell attributes and the account is not present. It will fail the first time it’s ran, but will be apply the GCOS and/or she…

---

## [Role Dependency Not Being Executed](https://forum.ansible.com/t/role-dependency-not-being-executed/16980)

<div class="topic-metadata">

**Author:** [@Jamal\_B](https://forum.ansible.com/u/Jamal_B)\
**Replies:** 7\
**Last updated:** [December 10, 2014, 2:33pm UTC](https://forum.ansible.com/t/role-dependency-not-being-executed/16980 "2014-12-10T14:33:10Z")

</div>

Hi I have run into an issue where I’m not sure if it’s a bug in Ansible or just my lack of understand how roles are activated. Using Ansible 1.7.2, I have a playbook defined as such: app/site.yml app/roles/core/tasks/m…

---

## [Create Hosted Zone in Route53](https://forum.ansible.com/t/create-hosted-zone-in-route53/17002)

<div class="topic-metadata">

**Author:** [@Carlos\_V](https://forum.ansible.com/u/Carlos_V)\
**Replies:** 2\
**Last updated:** [December 10, 2014, 12:20am UTC](https://forum.ansible.com/t/create-hosted-zone-in-route53/17002 "2014-12-10T00:20:40Z")

</div>

Is it possible to add a domain to route53 from Ansible? Looks like it’s only possible to add/modify records once you have the zone configured but maybe I’m doing it wrong. Playbook: \` name: Setup for DNS in AWS hos…

---

## [unsupported connection type: ssh](https://forum.ansible.com/t/unsupported-connection-type-ssh/17001)

<div class="topic-metadata">

**Author:** [@Trevor\_G](https://forum.ansible.com/u/Trevor_G)\
**Replies:** 3\
**Last updated:** [December 9, 2014, 11:57pm UTC](https://forum.ansible.com/t/unsupported-connection-type-ssh/17001 "2014-12-09T23:57:37Z")

</div>

I hadn’t used Ansible on my laptop for a while, and now when returning to projects that I was working on before, I’m stuck on a fatal: fatal: \[test-centos01\] =\> unsupported connection type: ssh I’m encountering this fr…

---

## [Using when and not](https://forum.ansible.com/t/using-when-and-not/17003)

<div class="topic-metadata">

**Author:** [@Matt\_Hughes](https://forum.ansible.com/u/Matt_Hughes)\
**Replies:** 3\
**Last updated:** [December 9, 2014, 11:54pm UTC](https://forum.ansible.com/t/using-when-and-not/17003 "2014-12-09T23:54:09Z")

</div>

I have a task to copy two different versions of the same file: \` name: Copy Version A copy: … when: useCopyA name: Copy Version B copy: … when: not useCopyA \` For a playbook that has useCopyA defined as fa…

---

## [issue using remote\_user](https://forum.ansible.com/t/issue-using-remote-user/17000)

<div class="topic-metadata">

**Author:** [@aarif\_mohamed](https://forum.ansible.com/u/aarif_mohamed)\
**Replies:** 1\
**Last updated:** [December 9, 2014, 11:49pm UTC](https://forum.ansible.com/t/issue-using-remote-user/17000 "2014-12-09T23:49:47Z")

</div>

Hi all, I ran the ansible-playbook using the file below and got the following errors. FILE: file.yml --- - hosts: g1 remote\_user: root tasks: - name: test connection ping: remote\_user: yourname :::…

---

## [Rejected some messages by mistake, please resend](https://forum.ansible.com/t/rejected-some-messages-by-mistake-please-resend/17005)

<div class="topic-metadata">

**Author:** [@Toshio\_Kuratomi](https://forum.ansible.com/u/Toshio_Kuratomi)\
**Replies:** 0\
**Last updated:** [December 9, 2014, 11:27pm UTC](https://forum.ansible.com/t/rejected-some-messages-by-mistake-please-resend/17005 "2014-12-09T23:27:46Z")

</div>

Hi, Earlier today I rejected about three messages from the list by mistake (we explicitly approve/reject the first message to the list by a user to cut down on SPAM). Unfortunately, google groups don't appear to giv…

---

## [Radical RFE: ansible should differentiate between constants and variables](https://forum.ansible.com/t/radical-rfe-ansible-should-differentiate-between-constants-and-variables/17004)

<div class="topic-metadata">

**Author:** [@Nick\_Irvine](https://forum.ansible.com/u/Nick_Irvine)\
**Replies:** 1\
**Last updated:** [December 9, 2014, 11:12pm UTC](https://forum.ansible.com/t/radical-rfe-ansible-should-differentiate-between-constants-and-variables/17004 "2014-12-09T23:12:26Z")

</div>

By constant, I mean all variables that can be computed prior to any tasks being run and will not change, like inventory\_hostname. Variables are therefore things that may change due to a task being executed. The idea is …

---

## [Feature idea: Adding a vault/ subdir to group\_vars and host\_vars](https://forum.ansible.com/t/feature-idea-adding-a-vault-subdir-to-group-vars-and-host-vars/15293)

<div class="topic-metadata">

**Author:** [@Hagai\_Kariti](https://forum.ansible.com/u/Hagai_Kariti)\
**Replies:** 14\
**Last updated:** [December 9, 2014, 2:51pm UTC](https://forum.ansible.com/t/feature-idea-adding-a-vault-subdir-to-group-vars-and-host-vars/15293 "2014-12-09T14:51:38Z")

</div>

Hi all Using Vault in group\_vars has the downside of losing version control on the vaulted file, so the logical thing is to separate sensitive variables from “normal” ones. What we do is create a vault/ subdirectory un…

---

## [need to use more faster way to synchronize packages](https://forum.ansible.com/t/need-to-use-more-faster-way-to-synchronize-packages/16993)

<div class="topic-metadata">

**Author:** [@Jun\_Young\_Kim](https://forum.ansible.com/u/Jun_Young_Kim)\
**Replies:** 1\
**Last updated:** [December 9, 2014, 1:21pm UTC](https://forum.ansible.com/t/need-to-use-more-faster-way-to-synchronize-packages/16993 "2014-12-09T13:21:19Z")

</div>

Hi, groups\[‘ALL’\]. I need to copy packages from a build server to the other servers. Currently, I am using “synchronize” to copy them. however, this kind of stuff is too slow if the target machines are very large. Eve…

---

## [git module profiling](https://forum.ansible.com/t/git-module-profiling/16984)

<div class="topic-metadata">

**Author:** [@Josef\_Spak](https://forum.ansible.com/u/Josef_Spak)\
**Replies:** 2\
**Last updated:** [December 9, 2014, 1:20pm UTC](https://forum.ansible.com/t/git-module-profiling/16984 "2014-12-09T13:20:44Z")

</div>

Hello, I’m trying to find out why the git module is so incredibly slow. I’d like to fix it if possible I need a better profiling tool than eyeballing git module run in htop on the remote host. I tried https://github.…

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

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