# Latest

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

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

**Page:** 949

---

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

---

## [Combine with\_items loop with vars](https://forum.ansible.com/t/combine-with-items-loop-with-vars/15842)

<div class="topic-metadata">

**Author:** [@stephan.rickauer](https://forum.ansible.com/u/stephan.rickauer)\
**Replies:** 5\
**Last updated:** [August 5, 2014, 3:42pm UTC](https://forum.ansible.com/t/combine-with-items-loop-with-vars/15842 "2014-08-05T15:42:18Z")

</div>

Friends, I’d like to iterate over ansible\_mounts and set custom options for /some/ mount points, like so /var: defaults,nosuid /home: defaults,nosuid,nodev /: defaults name: Secure Mount options mount: name={{ ite…

---

## [Relative Search Paths](https://forum.ansible.com/t/relative-search-paths/15802)

<div class="topic-metadata">

**Author:** [@Mike\_Ray](https://forum.ansible.com/u/Mike_Ray)\
**Replies:** 7\
**Last updated:** [August 5, 2014, 2:53pm UTC](https://forum.ansible.com/t/relative-search-paths/15802 "2014-08-05T14:53:48Z")

</div>

As of 1.6.2 (yes, not quite current, though I did not see anything in the changelog that addressed this), when using roles, each role is called relative to its own directory. E.g. playbook1.yml :

---

## [Problems with remote unarchive on existing file](https://forum.ansible.com/t/problems-with-remote-unarchive-on-existing-file/15830)

<div class="topic-metadata">

**Author:** [@willthames](https://forum.ansible.com/u/willthames)\
**Replies:** 7\
**Last updated:** [August 5, 2014, 12:47am UTC](https://forum.ansible.com/t/problems-with-remote-unarchive-on-existing-file/15830 "2014-08-05T00:47:43Z")

</div>

I’m using unarchive with copy=no and src=/tmp/archive.tar.gz dest=/wherever/ (i.e. the src is already on the machine and I just want to extract it under /wherever) It’s currently failing on the \_remote\_md5 check - it sh…

---

## [Doing a pull request the right way](https://forum.ansible.com/t/doing-a-pull-request-the-right-way/15855)

<div class="topic-metadata">

**Author:** [@Nicolas\_Cesar](https://forum.ansible.com/u/Nicolas_Cesar)\
**Replies:** 5\
**Last updated:** [August 4, 2014, 8:42pm UTC](https://forum.ansible.com/t/doing-a-pull-request-the-right-way/15855 "2014-08-04T20:42:08Z")

</div>

Hi there, So I’m trying to contribute an small enhancement to ansible. That you can find it here: https://github.com/nicocesar/ansible/commit/f03b1ce59e2581a105e27afb4e776333ac29cb56 but my pull request isn’t the cle…

---

## [How To Interrupt a Play?](https://forum.ansible.com/t/how-to-interrupt-a-play/15853)

<div class="topic-metadata">

**Author:** [@Tiglath](https://forum.ansible.com/u/Tiglath)\
**Replies:** 3\
**Last updated:** [August 4, 2014, 8:18pm UTC](https://forum.ansible.com/t/how-to-interrupt-a-play/15853 "2014-08-04T20:18:18Z")

</div>

The app deployment tasks in our firm require that certain steps be done by sysadmin only, so scripts pause while some file or directory gets created, before resuming. Is there a way for ansible to cater or work around t…

---

## [Suppressing ansible logging for a specific action](https://forum.ansible.com/t/suppressing-ansible-logging-for-a-specific-action/15852)

<div class="topic-metadata">

**Author:** [@Mike\_Ray](https://forum.ansible.com/u/Mike_Ray)\
**Replies:** 2\
**Last updated:** [August 4, 2014, 5:26pm UTC](https://forum.ansible.com/t/suppressing-ansible-logging-for-a-specific-action/15852 "2014-08-04T17:26:02Z")

</div>

Ansible’s logging to the system log is pretty sweet. However, there are occasions when I’d like to repress it for security concerns. Specifically, when using the file module and the contents flag, whatever “contents” i…

---

## [Not loading host\_vars](https://forum.ansible.com/t/not-loading-host-vars/15822)

<div class="topic-metadata">

**Author:** [@Jason\_Sarrells](https://forum.ansible.com/u/Jason_Sarrells)\
**Replies:** 2\
**Last updated:** [August 4, 2014, 4:32pm UTC](https://forum.ansible.com/t/not-loading-host-vars/15822 "2014-08-04T16:32:03Z")

</div>

I cannot get anything in host\_vars to load when running a playbook. I am using Ansible 1.4.3. What am I doing wrong? ~/test.yml \`

---

## [Introducing Accelerated Mode](https://forum.ansible.com/t/introducing-accelerated-mode/13409)

<div class="topic-metadata">

**Author:** [@James\_Cammarata1](https://forum.ansible.com/u/James_Cammarata1)\
**Replies:** 21\
**Last updated:** [August 4, 2014, 2:02pm UTC](https://forum.ansible.com/t/introducing-accelerated-mode/13409 "2014-08-04T14:02:13Z")

</div>

I’ve just merged the latest feature for 1.3: Accelerated Mode. Accelerated mode is essentially fireball mode, with a few improvements: No bootstrapping required. Support for running commands via sudo. Fewer requiremen…

---

## [Load callback plugins in the ansible script (GH #8396)](https://forum.ansible.com/t/load-callback-plugins-in-the-ansible-script-gh-8396/15848)

<div class="topic-metadata">

**Author:** [@zeglandos](https://forum.ansible.com/u/zeglandos)\
**Replies:** 1\
**Last updated:** [August 4, 2014, 12:09pm UTC](https://forum.ansible.com/t/load-callback-plugins-in-the-ansible-script-gh-8396/15848 "2014-08-04T12:09:23Z")

</div>

This is an open discussion, since I’m far from an expert on ansible. However, since I often run some commands on a lot of host, I’ve written a small callback plugin that summarize output on stdout and stderr. I need th…

---

## [local\_action together with run\_once?](https://forum.ansible.com/t/local-action-together-with-run-once/15847)

<div class="topic-metadata">

**Author:** [@luka.dornhecker](https://forum.ansible.com/u/luka.dornhecker)\
**Replies:** 1\
**Last updated:** [August 4, 2014, 12:08pm UTC](https://forum.ansible.com/t/local-action-together-with-run-once/15847 "2014-08-04T12:08:47Z")

</div>

Hi there, is there any way to run a local\_action task only once? I tried the following but it doesn’t work: \` name: gather public keys to be installed local\_action: shell cat public-keys/\*.pub run\_once: true chan…

---

## [How to use hostvars in template](https://forum.ansible.com/t/how-to-use-hostvars-in-template/15800)

<div class="topic-metadata">

**Author:** [@Peter\_Smallegange](https://forum.ansible.com/u/Peter_Smallegange)\
**Replies:** 15\
**Last updated:** [August 4, 2014, 7:36am UTC](https://forum.ansible.com/t/how-to-use-hostvars-in-template/15800 "2014-08-04T07:36:12Z")

</div>

Hello, Is it possible to use variables defined in a ansible host file for a template? Lets say this is the host file: \` \[webservers\] server1 city=amsterdam server2 city=london \[databaseserver\] server3 city=amsterd…

---

## [Ansible Said to report this](https://forum.ansible.com/t/ansible-said-to-report-this/15839)

<div class="topic-metadata">

**Author:** [@Brian\_Richards](https://forum.ansible.com/u/Brian_Richards)\
**Replies:** 6\
**Last updated:** [August 3, 2014, 6:31pm UTC](https://forum.ansible.com/t/ansible-said-to-report-this/15839 "2014-08-03T18:31:28Z")

</div>

TASK: \[name | Copying Build to local host\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* warning: md5sum command failed unusually, please report this to the list so it can be fixed command: \[u’(/usr/bin/md5sum /var/lib/jenkins/…

---

## [can ansible report if server needs restart (ubuntu && apt-get upgrade)](https://forum.ansible.com/t/can-ansible-report-if-server-needs-restart-ubuntu-apt-get-upgrade/15846)

<div class="topic-metadata">

**Author:** [@Christian\_Schmitt](https://forum.ansible.com/u/Christian_Schmitt)\
**Replies:** 4\
**Last updated:** [August 3, 2014, 6:30pm UTC](https://forum.ansible.com/t/can-ansible-report-if-server-needs-restart-ubuntu-apt-get-upgrade/15846 "2014-08-03T18:30:21Z")

</div>

Currently i’m running a playbook against multiple servers, is there a way to print something if a server needs a reboot after an apt-get upgrade? i mean if the kernel gets upgraded i need to know which of them needs an …

---

## [s3 module with checksums for multipart uploads](https://forum.ansible.com/t/s3-module-with-checksums-for-multipart-uploads/13761)

<div class="topic-metadata">

**Author:** [@Ben\_Hood](https://forum.ansible.com/u/Ben_Hood)\
**Replies:** 6\
**Last updated:** [August 3, 2014, 5:49pm UTC](https://forum.ansible.com/t/s3-module-with-checksums-for-multipart-uploads/13761 "2014-08-03T17:49:00Z")

</div>

Hi, I'm having an issue with the s3 module in ansible 1.3.3: "Files uploaded with multipart of s3 are not supported with checksum, unable to compute checksum." The task definition looks like this: action: s3 bucket=…

---

## [Deploy local vagrant provisioning ansible setup to a new Azure VM](https://forum.ansible.com/t/deploy-local-vagrant-provisioning-ansible-setup-to-a-new-azure-vm/15840)

<div class="topic-metadata">

**Author:** [@Tze\_Yang\_Ng](https://forum.ansible.com/u/Tze_Yang_Ng)\
**Replies:** 2\
**Last updated:** [August 3, 2014, 5:37pm UTC](https://forum.ansible.com/t/deploy-local-vagrant-provisioning-ansible-setup-to-a-new-azure-vm/15840 "2014-08-03T17:37:44Z")

</div>

Trying to learn how to deploy a configured vagrant-ansible configuration in a local machine and mirror it in Azure VM. Anyone had the playbook example for that? thanks.

---

## [Request for better topic descriptions when filing tickets and pull requests](https://forum.ansible.com/t/request-for-better-topic-descriptions-when-filing-tickets-and-pull-requests/15843)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan1](https://forum.ansible.com/u/Michael_DeHaan1)\
**Replies:** 2\
**Last updated:** [August 3, 2014, 4:14pm UTC](https://forum.ansible.com/t/request-for-better-topic-descriptions-when-filing-tickets-and-pull-requests/15843 "2014-08-03T16:14:24Z")

</div>

Hi everyone, As the ansible project is getting rather exponential on user traffic lately, here’s a small request for everyone on GitHub usage. When filing a ticket, whether a pull request or bug ticket or whatever, be …

---

## [How do you set up a confirmation prompt before running a playbook?](https://forum.ansible.com/t/how-do-you-set-up-a-confirmation-prompt-before-running-a-playbook/15835)

<div class="topic-metadata">

**Author:** [@maticm1](https://forum.ansible.com/u/maticm1)\
**Replies:** 8\
**Last updated:** [August 2, 2014, 9:40pm UTC](https://forum.ansible.com/t/how-do-you-set-up-a-confirmation-prompt-before-running-a-playbook/15835 "2014-08-02T21:40:35Z")

</div>

How do you set up a confirmation prompt before running a playbook? I’d like to have to enter “YES” before the playbook makes any changes to hosts. Right now I have the following code in site.yml, but it’s not working. \`…

---

## [ansible -i provisioning/hosts -u vagrant -m setup 192.168.111.222 -vvv failed](https://forum.ansible.com/t/ansible-i-provisioning-hosts-u-vagrant-m-setup-192-168-111-222-vvv-failed/15845)

<div class="topic-metadata">

**Author:** [@Tze\_Yang\_Ng](https://forum.ansible.com/u/Tze_Yang_Ng)\
**Replies:** 1\
**Last updated:** [August 2, 2014, 8:35pm UTC](https://forum.ansible.com/t/ansible-i-provisioning-hosts-u-vagrant-m-setup-192-168-111-222-vvv-failed/15845 "2014-08-02T20:35:46Z")

</div>

Newbie here, Try to run the below command, but got the error code below, can some one please help. Not sure what i had did wrong. ansible -i provisioning/hosts -u vagrant -m setup 192.168.111.222 -vvv \<192.168.111.222\> …

---

## [lineinfile module: multiline from stdout is automatically wrapped in quotes](https://forum.ansible.com/t/lineinfile-module-multiline-from-stdout-is-automatically-wrapped-in-quotes/15844)

<div class="topic-metadata">

**Author:** [@Ryan\_VanGundy](https://forum.ansible.com/u/Ryan_VanGundy)\
**Replies:** 6\
**Last updated:** [August 2, 2014, 8:33pm UTC](https://forum.ansible.com/t/lineinfile-module-multiline-from-stdout-is-automatically-wrapped-in-quotes/15844 "2014-08-02T20:33:25Z")

</div>

Some quick background. I’m using ansible to automate setup of development environments for new projects. These are active development environments, not freshly provisioned machines, so some challenges come with the terri…

---

## [FreeBSD sysctl fixes](https://forum.ansible.com/t/freebsd-sysctl-fixes/15826)

<div class="topic-metadata">

**Author:** [@Berend\_de\_Boer](https://forum.ansible.com/u/Berend_de_Boer)\
**Replies:** 2\
**Last updated:** [August 2, 2014, 2:38am UTC](https://forum.ansible.com/t/freebsd-sysctl-fixes/15826 "2014-08-02T02:38:52Z")

</div>

Hi ansible, Any more comments on my FreeBSD sysctl fixes? https://github.com/ansible/ansible/pull/8256 You’re probably very busy, so don’t want to push anyone around here, but in case it had inadvertently dropped off t…

---

## [\[OT\] Here's a Linux.com survey with some config tool questions](https://forum.ansible.com/t/ot-heres-a-linux-com-survey-with-some-config-tool-questions/15838)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan1](https://forum.ansible.com/u/Michael_DeHaan1)\
**Replies:** 0\
**Last updated:** [August 1, 2014, 10:50pm UTC](https://forum.ansible.com/t/ot-heres-a-linux-com-survey-with-some-config-tool-questions/15838 "2014-08-01T22:50:59Z")

</div>

For those interested there are some questions about cloud and config tooling (cough, Ansible, cough) should you be interested: https://www.surveymonkey.com/s/Q5YC2NF Warning: somewhat long

---

## [group intersection not working in some situations](https://forum.ansible.com/t/group-intersection-not-working-in-some-situations/15837)

<div class="topic-metadata">

**Author:** [@guanwen](https://forum.ansible.com/u/guanwen)\
**Replies:** 1\
**Last updated:** [August 1, 2014, 10:43pm UTC](https://forum.ansible.com/t/group-intersection-not-working-in-some-situations/15837 "2014-08-01T22:43:38Z")

</div>

Let me assume that we have a inventory file called hosts: hosts \[openstack\] keystonec sproxyc snode01c snode02c snode03c keystone sproxy snode01 snode02 snode03 and a dev inventory file \[dev\] keystone spr…

---

## [custom jinja2 variable enclosure override](https://forum.ansible.com/t/custom-jinja2-variable-enclosure-override/15833)

<div class="topic-metadata">

**Author:** [@Sarah\_Zelechoski](https://forum.ansible.com/u/Sarah_Zelechoski)\
**Replies:** 3\
**Last updated:** [August 1, 2014, 8:06pm UTC](https://forum.ansible.com/t/custom-jinja2-variable-enclosure-override/15833 "2014-08-01T20:06:12Z")

</div>

I had been using custom variable enclosures with jinja2 templates, but since updating from ansible 1.5.4-\> 1.6.x I’ve had these break. I was using this feature for cases in which I wanted to provision a VM using an ansi…

---

## [Can ansible iterate through lines in a file?](https://forum.ansible.com/t/can-ansible-iterate-through-lines-in-a-file/15836)

<div class="topic-metadata">

**Author:** [@John\_Oliver](https://forum.ansible.com/u/John_Oliver)\
**Replies:** 5\
**Last updated:** [August 1, 2014, 8:00pm UTC](https://forum.ansible.com/t/can-ansible-iterate-through-lines-in-a-file/15836 "2014-08-01T20:00:45Z")

</div>

I have a list of lines I want to add to a file on the target system if they don’t exist. I don’t want to wholesale overwrite the file, and I don’t want to write dozens of lineinfile: statements. Is it possible to do the…

---

## [Why So Slow?](https://forum.ansible.com/t/why-so-slow/15824)

<div class="topic-metadata">

**Author:** [@Tiglath](https://forum.ansible.com/u/Tiglath)\
**Replies:** 6\
**Last updated:** [August 1, 2014, 7:52pm UTC](https://forum.ansible.com/t/why-so-slow/15824 "2014-08-01T19:52:01Z")

</div>

Trying Ansible for app deployment. It’s nice but why so slow? This below involves copying four files and it takes minutes !!! I am running on Solaris 11. name: Populate conf directory copy: src=“{{ item }}” dest=/tcpc…

---

## [Aggregating role facts](https://forum.ansible.com/t/aggregating-role-facts/13859)

<div class="topic-metadata">

**Author:** [@Stephen\_Gargan](https://forum.ansible.com/u/Stephen_Gargan)\
**Replies:** 10\
**Last updated:** [August 1, 2014, 6:23pm UTC](https://forum.ansible.com/t/aggregating-role-facts/13859 "2014-08-01T18:23:23Z")

</div>

I’ve a pattern that I want to apply and I’m wondering what the best practice might be for this. I have a situation where I apply a number of roles to a host and each have a number of facts or variables that I’d like to u…

---

## [Ansible parameter "run\_once" not working](https://forum.ansible.com/t/ansible-parameter-run-once-not-working/15834)

<div class="topic-metadata">

**Author:** [@elwood218](https://forum.ansible.com/u/elwood218)\
**Replies:** 3\
**Last updated:** [August 1, 2014, 5:45pm UTC](https://forum.ansible.com/t/ansible-parameter-run-once-not-working/15834 "2014-08-01T17:45:51Z")

</div>

Hello to all, according to http://docs.ansible.com/playbooks\_delegation.html#run-once there is a parameter run\_once to execute a task only on one target. For me this is not runnung! :frowning: Gettting this error messa…

---

## [MySQL\_replication module](https://forum.ansible.com/t/mysql-replication-module/12988)

<div class="topic-metadata">

**Author:** [@Balazs\_Pocze](https://forum.ansible.com/u/Balazs_Pocze)\
**Replies:** 3\
**Last updated:** [August 1, 2014, 11:38am UTC](https://forum.ansible.com/t/mysql-replication-module/12988 "2014-08-01T11:38:55Z")

</div>

Hi Guys, I've finished a module for ansible, it is called as 'mysql\_replication' and of course you can manage mysql replication features with that. It can operate in different ways, you can check replication master's …

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

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