# Latest

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

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

**Page:** 948

---

## [access to ansible\_ssh\_host and ansible\_ssh\_port in a play](https://forum.ansible.com/t/access-to-ansible-ssh-host-and-ansible-ssh-port-in-a-play/15887)

<div class="topic-metadata">

**Author:** [@Stefan\_Lapers](https://forum.ansible.com/u/Stefan_Lapers)\
**Replies:** 1\
**Last updated:** [August 8, 2014, 1:42pm UTC](https://forum.ansible.com/t/access-to-ansible-ssh-host-and-ansible-ssh-port-in-a-play/15887 "2014-08-08T13:42:32Z")

</div>

Hi, Is it possible to access ansible\_ssh\_host (and other inventory parameters) in a playbook ? The goal is to copy/backup files from a remote machine to the local ansible station or a machine specified with delegate\_to…

---

## [How to loop over all elements of a list when elements are not known in advance?](https://forum.ansible.com/t/how-to-loop-over-all-elements-of-a-list-when-elements-are-not-known-in-advance/15869)

<div class="topic-metadata">

**Author:** [@Servermanaged](https://forum.ansible.com/u/Servermanaged)\
**Replies:** 2\
**Last updated:** [August 8, 2014, 8:02am UTC](https://forum.ansible.com/t/how-to-loop-over-all-elements-of-a-list-when-elements-are-not-known-in-advance/15869 "2014-08-08T08:02:08Z")

</div>

Hello friends I’ve some lists of elements which contains values like plugin: “someplugin”, directive: “somedirective”. For reference see Variables: https://github.com/valentinogagliardi/collectd/blob/master/README.md#e…

---

## [Conditional register not working](https://forum.ansible.com/t/conditional-register-not-working/15872)

<div class="topic-metadata">

**Author:** [@Manuel\_Quinones](https://forum.ansible.com/u/Manuel_Quinones)\
**Replies:** 5\
**Last updated:** [August 8, 2014, 2:49am UTC](https://forum.ansible.com/t/conditional-register-not-working/15872 "2014-08-08T02:49:02Z")

</div>

Hi, I’m trying to do a conditional register in a playbook: tasks: shell: echo /opt/cache/www/ register: www\_data when: ansible\_hostname | match(“^xy-”) shell: echo /mnt/code/www/ register: www\_data when: ansi…

---

## [Inventory updates not appearing after provisioning ec2 instance](https://forum.ansible.com/t/inventory-updates-not-appearing-after-provisioning-ec2-instance/15882)

<div class="topic-metadata">

**Author:** [@Steven\_Ringo](https://forum.ansible.com/u/Steven_Ringo)\
**Replies:** 5\
**Last updated:** [August 7, 2014, 9:41pm UTC](https://forum.ansible.com/t/inventory-updates-not-appearing-after-provisioning-ec2-instance/15882 "2014-08-07T21:41:36Z")

</div>

Hi, After provisioning a machine on ec2 module, the inventory doesn’t reflect the new host (using ec2.py). I am using a tag\_name for the target host that comes from the inventory. I have tried all of the following: …

---

## [Host Inventory Patterns (Many Hosts) Exclude a single host in between](https://forum.ansible.com/t/host-inventory-patterns-many-hosts-exclude-a-single-host-in-between/15870)

<div class="topic-metadata">

**Author:** [@Christian\_Schmitt](https://forum.ansible.com/u/Christian_Schmitt)\
**Replies:** 2\
**Last updated:** [August 7, 2014, 9:21pm UTC](https://forum.ansible.com/t/host-inventory-patterns-many-hosts-exclude-a-single-host-in-between/15870 "2014-08-07T21:21:20Z")

</div>

Hello is there a way to exclude a host inside a Host pattern in a inventory file? Example, I have the following inventory: \[hosts\] www\[01:50\].example.com is it possible to exclude host 25 ?

---

## [Is it possible to jump to the next task without waiting for any Reason Code / Output?](https://forum.ansible.com/t/is-it-possible-to-jump-to-the-next-task-without-waiting-for-any-reason-code-output/15868)

<div class="topic-metadata">

**Author:** [@Julian\_Jamardo](https://forum.ansible.com/u/Julian_Jamardo)\
**Replies:** 2\
**Last updated:** [August 7, 2014, 9:20pm UTC](https://forum.ansible.com/t/is-it-possible-to-jump-to-the-next-task-without-waiting-for-any-reason-code-output/15868 "2014-08-07T21:20:35Z")

</div>

Hi everybody, I’m deploying Adobe CQ projects with Ansible, everything works fine except the restart at the end of the deployment. The excerpt of the my playbook: name: Stop of CQ instance command: sudo /etc/init.d…

---

## [read multiple variables from dynamically generated file](https://forum.ansible.com/t/read-multiple-variables-from-dynamically-generated-file/15874)

<div class="topic-metadata">

**Author:** [@Michael\_Baydoun](https://forum.ansible.com/u/Michael_Baydoun)\
**Replies:** 1\
**Last updated:** [August 7, 2014, 9:19pm UTC](https://forum.ansible.com/t/read-multiple-variables-from-dynamically-generated-file/15874 "2014-08-07T21:19:14Z")

</div>

I have a playbook that runs on all database servers, gathers information about every database found, does error checking and eliminated duplicates (same db on mulitple servers). The result is an output file that contains…

---

## [git checkout and remote rsync](https://forum.ansible.com/t/git-checkout-and-remote-rsync/15873)

<div class="topic-metadata">

**Author:** [@Quentin\_Stafford-Fra](https://forum.ansible.com/u/Quentin_Stafford-Fra)\
**Replies:** 1\
**Last updated:** [August 7, 2014, 9:17pm UTC](https://forum.ansible.com/t/git-checkout-and-remote-rsync/15873 "2014-08-07T21:17:42Z")

</div>

Hi there - A common deployment model I’m using is to checkout a git repo on the target machine and then copy the subdirectory(s) I actually want into position (e.g. under /var/www somewhere) using a remote rsync command…

---

## [Overriding role defaults with an external file](https://forum.ansible.com/t/overriding-role-defaults-with-an-external-file/15883)

<div class="topic-metadata">

**Author:** [@Jesse\_Keating](https://forum.ansible.com/u/Jesse_Keating)\
**Replies:** 4\
**Last updated:** [August 7, 2014, 9:07pm UTC](https://forum.ansible.com/t/overriding-role-defaults-with-an-external-file/15883 "2014-08-07T21:07:03Z")

</div>

I’ve got a situation where I’m applying roles to a system locally, much in the style of ansible-pull. The role has a number of defaults, but I wish to override those defaults with custom details specific to this particul…

---

## [ansible doesn't support commands containing special letters](https://forum.ansible.com/t/ansible-doesnt-support-commands-containing-special-letters/15881)

<div class="topic-metadata">

**Author:** [@user29](https://forum.ansible.com/u/user29)\
**Replies:** 3\
**Last updated:** [August 7, 2014, 5:36pm UTC](https://forum.ansible.com/t/ansible-doesnt-support-commands-containing-special-letters/15881 "2014-08-07T17:36:57Z")

</div>

such as “ls && cd …” and " if \[ ! -d “/myfolder” \]". so some command can be run at the terminal but not in ansible, sometimes we have to write a script file to enable the command. Personally thinking, I think this featu…

---

## [Remove packages](https://forum.ansible.com/t/remove-packages/15866)

<div class="topic-metadata">

**Author:** [@Diogene\_Laerce](https://forum.ansible.com/u/Diogene_Laerce)\
**Replies:** 6\
**Last updated:** [August 7, 2014, 1:17pm UTC](https://forum.ansible.com/t/remove-packages/15866 "2014-08-07T13:17:57Z")

</div>

Hi, Is there a way, other that with a bash script, to do this command please (in Ansible of course.. :slight\_smile: )? $ apt-get remove package\* Thank you,

---

## [Module to get directory from path?](https://forum.ansible.com/t/module-to-get-directory-from-path/15880)

<div class="topic-metadata">

**Author:** [@Steven\_Ringo](https://forum.ansible.com/u/Steven_Ringo)\
**Replies:** 2\
**Last updated:** [August 7, 2014, 1:34am UTC](https://forum.ansible.com/t/module-to-get-directory-from-path/15880 "2014-08-07T01:34:02Z")

</div>

Hi, I wish to pass in a parameter for a file, e.g: /var/log/atlas/service.log The directory at /var/log/atlas/ must also be created before the application writes to this file. Is there a way to get the directory from …

---

## [VMWare Dynamic Inventory Script](https://forum.ansible.com/t/vmware-dynamic-inventory-script/14293)

<div class="topic-metadata">

**Author:** [@TextEditor1](https://forum.ansible.com/u/TextEditor1)\
**Replies:** 8\
**Last updated:** [August 6, 2014, 11:24pm UTC](https://forum.ansible.com/t/vmware-dynamic-inventory-script/14293 "2014-08-06T23:24:26Z")

</div>

I’ve made a simple python script which uses VMWare vCenter to create a Dynamic Inventory. It is very simple, does not support grouping by datacenter or resource groups (yet, pull requests accepted). https://raymii.org/s…

---

## [passing var to a template in  a loop](https://forum.ansible.com/t/passing-var-to-a-template-in-a-loop/15878)

<div class="topic-metadata">

**Author:** [@avrman](https://forum.ansible.com/u/avrman)\
**Replies:** 2\
**Last updated:** [August 6, 2014, 10:59pm UTC](https://forum.ansible.com/t/passing-var-to-a-template-in-a-loop/15878 "2014-08-06T22:59:26Z")

</div>

I want to use a template to copy a file to a destination with a unique name, on each copy. I also want to pass a unique value for a variable used in the jinja2 template file. How can I do this? I know I can use with\_i…

---

## [Speed up 'yum' related tasks?](https://forum.ansible.com/t/speed-up-yum-related-tasks/15879)

<div class="topic-metadata">

**Author:** [@John\_Oliver](https://forum.ansible.com/u/John_Oliver)\
**Replies:** 6\
**Last updated:** [August 6, 2014, 10:57pm UTC](https://forum.ansible.com/t/speed-up-yum-related-tasks/15879 "2014-08-06T22:57:35Z")

</div>

The ‘yum’ module is pretty slow for me. That might be an artifact from running my play books against a VM, but running ‘yum install a b c d e f’ is a lot faster than: name: Install PHP packages yum: name={{item}} stat…

---

## [Warning feature idea; interest level and feedback requested](https://forum.ansible.com/t/warning-feature-idea-interest-level-and-feedback-requested/15875)

<div class="topic-metadata">

**Author:** [@Kale\_Franz](https://forum.ansible.com/u/Kale_Franz)\
**Replies:** 1\
**Last updated:** [August 6, 2014, 10:07pm UTC](https://forum.ansible.com/t/warning-feature-idea-interest-level-and-feedback-requested/15875 "2014-08-06T22:07:19Z")

</div>

Hi everyone, If this feature has been proposed int he past, I apologize in advance. I’d like to see a generic “warning” feature in ansible, that could possibly have several components: The feature would add a warning…

---

## [pagerduty module not working](https://forum.ansible.com/t/pagerduty-module-not-working/15877)

<div class="topic-metadata">

**Author:** [@Nicolas\_G](https://forum.ansible.com/u/Nicolas_G)\
**Replies:** 0\
**Last updated:** [August 6, 2014, 7:13pm UTC](https://forum.ansible.com/t/pagerduty-module-not-working/15877 "2014-08-06T19:13:05Z")

</div>

Hi, I’m trying to use the pagerduty module with no luck, when I run the bellow tasks with the right credentials I get a “failed to create the window: HTTP Error 400: Bad Request” : TASK: “”" name: Create a 1 hour ma…

---

## [Ansible 1.7 is released and now available!](https://forum.ansible.com/t/ansible-1-7-is-released-and-now-available/15876)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan1](https://forum.ansible.com/u/Michael_DeHaan1)\
**Replies:** 0\
**Last updated:** [August 6, 2014, 6:58pm UTC](https://forum.ansible.com/t/ansible-1-7-is-released-and-now-available/15876 "2014-08-06T18:58:08Z")

</div>

Hi everyone! 1.7 is now available! See full information on the release here: http://www.ansible.com/blog/ansible-1.7-is-released-windows-beta-and-more Reminder: this does contain security updates for two separate ite…

---

## [Collect playbook results](https://forum.ansible.com/t/collect-playbook-results/15871)

<div class="topic-metadata">

**Author:** [@Ulrich\_Schreiner](https://forum.ansible.com/u/Ulrich_Schreiner)\
**Replies:** 1\
**Last updated:** [August 6, 2014, 2:03pm UTC](https://forum.ansible.com/t/collect-playbook-results/15871 "2014-08-06T14:03:18Z")

</div>

hi, we currently use ansible with a playbook to install software packages on many servers. the installation is a vendor specific shell-script and we need the output of this script. currently i use the “mail” action to s…

---

## [Dynamic inventory group as a child of managed group - group\_vars unavailable](https://forum.ansible.com/t/dynamic-inventory-group-as-a-child-of-managed-group-group-vars-unavailable/15867)

<div class="topic-metadata">

**Author:** [@Ran](https://forum.ansible.com/u/Ran)\
**Replies:** 2\
**Last updated:** [August 6, 2014, 1:16pm UTC](https://forum.ansible.com/t/dynamic-inventory-group-as-a-child-of-managed-group-group-vars-unavailable/15867 "2014-08-06T13:16:26Z")

</div>

I cannot make an ec2 group (via dynamic inventory script) as a child of a managed group defined in hosts. For example: ec2 dynamic script returns a group of “tag\_worker\_1” hosts file consists of: \[workercommon\] …

---

## [dynamic inventory / hostvars with shell vars not working w/ 1.6](https://forum.ansible.com/t/dynamic-inventory-hostvars-with-shell-vars-not-working-w-1-6/15850)

<div class="topic-metadata">

**Author:** [@sascha.lucas](https://forum.ansible.com/u/sascha.lucas)\
**Replies:** 3\
**Last updated:** [August 6, 2014, 7:42am UTC](https://forum.ansible.com/t/dynamic-inventory-hostvars-with-shell-vars-not-working-w-1-6/15850 "2014-08-06T07:42:03Z")

</div>

Hi, after upgrading from 1.4 to 1.6.10 I have following problem with dynamic inventory: static inventory /tmp/inv: \[somegroup\] server15 ansible\_ssh\_host=X.X.X.X ansible\_python\_interpreter=/home/${SUDO\_USER:-${USER}}/…

---

## [Read vault password using gpg-agent](https://forum.ansible.com/t/read-vault-password-using-gpg-agent/15829)

<div class="topic-metadata">

**Author:** [@Dale](https://forum.ansible.com/u/Dale)\
**Replies:** 7\
**Last updated:** [August 6, 2014, 6:24am UTC](https://forum.ansible.com/t/read-vault-password-using-gpg-agent/15829 "2014-08-06T06:24:01Z")

</div>

Hi Ansible users, I’ve been trying to use vault lately but I got tired of having to enter my passphrase every time I ran ansible-playbook. I didn’t want to put my passphrase into a file on disk, either. Luckily, the nex…

---

## [copy module: how do I copy a file only if it doesn't exist?](https://forum.ansible.com/t/copy-module-how-do-i-copy-a-file-only-if-it-doesnt-exist/15865)

<div class="topic-metadata">

**Author:** [@Alex\_King](https://forum.ansible.com/u/Alex_King)\
**Replies:** 2\
**Last updated:** [August 5, 2014, 11:48pm UTC](https://forum.ansible.com/t/copy-module-how-do-i-copy-a-file-only-if-it-doesnt-exist/15865 "2014-08-05T23:48:34Z")

</div>

I need to create some files, only if they don’t already exist. (DNS zone files). Once they are created, they will be managed by the application (bind9 doing dynamic updates), but they need to be copied or templated in th…

---

## [Ansible 1.6.9-10 line break issue](https://forum.ansible.com/t/ansible-1-6-9-10-line-break-issue/15863)

<div class="topic-metadata">

**Author:** [@Patrick\_Heeney](https://forum.ansible.com/u/Patrick_Heeney)\
**Replies:** 1\
**Last updated:** [August 5, 2014, 11:36pm UTC](https://forum.ansible.com/t/ansible-1-6-9-10-line-break-issue/15863 "2014-08-05T23:36:58Z")

</div>

Hello, I have a bunch of plabyooks with tasks that look like this: name: xdebug | set ini template: \> src=xdebug.ini.j2 dest=/etc/php5/mods-available/xdebug-options.ini name: xdebug | add xdebug cli template: \> …

---

## [Are you using both Ansible and Docker? Help us out with some info!](https://forum.ansible.com/t/are-you-using-both-ansible-and-docker-help-us-out-with-some-info/15864)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan1](https://forum.ansible.com/u/Michael_DeHaan1)\
**Replies:** 0\
**Last updated:** [August 5, 2014, 11:23pm UTC](https://forum.ansible.com/t/are-you-using-both-ansible-and-docker-help-us-out-with-some-info/15864 "2014-08-05T23:23:23Z")

</div>

Hi folks! We’re noticing a lot of overlap between Ansible and Docker users, but different people are using things in really different ways. We’re hoping to understand all the differences, so, if you don’t mind, if you’…

---

## [\[ansible\] runner + callbacks: allow callbacks to template the delegates (#8432)](https://forum.ansible.com/t/ansible-runner-callbacks-allow-callbacks-to-template-the-delegates-8432/15856)

<div class="topic-metadata">

**Author:** [@Serge\_van\_Ginderacht](https://forum.ansible.com/u/Serge_van_Ginderacht)\
**Replies:** 3\
**Last updated:** [August 5, 2014, 6:48pm UTC](https://forum.ansible.com/t/ansible-runner-callbacks-allow-callbacks-to-template-the-delegates-8432/15856 "2014-08-05T18:48:42Z")

</div>

Hi Michael,​ In reference to your comment on my PR 8432: From: Michael DeHaan \<notifications@github.com\> Date: 4 August 2014 20:11 Subject: Re: \[ansible\] runner + callbacks: allow callbacks to template the delegates…

---

## [icinga2 module?](https://forum.ansible.com/t/icinga2-module/15859)

<div class="topic-metadata">

**Author:** [@Rene\_Moser](https://forum.ansible.com/u/Rene_Moser)\
**Replies:** 1\
**Last updated:** [August 5, 2014, 4:23pm UTC](https://forum.ansible.com/t/icinga2-module/15859 "2014-08-05T16:23:23Z")

</div>

Hi Icinga2 was released recently https://github.com/Icinga/icinga2/releases and has a new DSL, is therefore incompatible with previous icinga/nagios configs. We plan to migrate by the end of the year and I wonder if an…

---

## [Cannot get with\_Items working with ec2group](https://forum.ansible.com/t/cannot-get-with-items-working-with-ec2group/15854)

<div class="topic-metadata">

**Author:** [@Chuzzy](https://forum.ansible.com/u/Chuzzy)\
**Replies:** 5\
**Last updated:** [August 5, 2014, 4:20pm UTC](https://forum.ansible.com/t/cannot-get-with-items-working-with-ec2group/15854 "2014-08-05T16:20:45Z")

</div>

Ansible 1.7 I am trying to use either with\_items or with\_nested (if including a list of ports as well) to traverse a list of cidr addresses and create sec group rules from that … Basically, this is failing repeatedly ……

---

## [with\_nested failing, not sure why](https://forum.ansible.com/t/with-nested-failing-not-sure-why/15851)

<div class="topic-metadata">

**Author:** [@John\_Oliver](https://forum.ansible.com/u/John_Oliver)\
**Replies:** 6\
**Last updated:** [August 5, 2014, 4:20pm UTC](https://forum.ansible.com/t/with-nested-failing-not-sure-why/15851 "2014-08-05T16:20:02Z")

</div>

This task: name: Lock accounts after 3 unsuccessful logon attempts lineinfile: dest=/etc/pam.d/{{ item\[0\] }}-auth-ac regexp=‘^auth.pam\_faillock.so\\ auth.\\ deny=3\\ unlock\_time=604800\\ fail\_interval=900’ insertafter=‘…

---

## [Discussing "Fail module - all" PR #8410](https://forum.ansible.com/t/discussing-fail-module-all-pr-8410/15857)

<div class="topic-metadata">

**Author:** [@Amr\_Ali](https://forum.ansible.com/u/Amr_Ali)\
**Replies:** 1\
**Last updated:** [August 5, 2014, 4:19pm UTC](https://forum.ansible.com/t/discussing-fail-module-all-pr-8410/15857 "2014-08-05T16:19:04Z")

</div>

Hi, per your comments on github, here to discuss this pr https://github.com/ansible/ansible/pull/8410 This appears to insert a situation where returning the string ‘all’ in a module will fail on all hosts. This has s…

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

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