# Latest

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

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

**Page:** 852

---

## [debconf with variable is not really idempotent?](https://forum.ansible.com/t/debconf-with-variable-is-not-really-idempotent/18784)

<div class="topic-metadata">

**Author:** [@Phyks](https://forum.ansible.com/u/Phyks)\
**Replies:** 5\
**Last updated:** [July 16, 2015, 11:25pm UTC](https://forum.ansible.com/t/debconf-with-variable-is-not-really-idempotent/18784 "2015-07-16T23:25:29Z")

</div>

Hi, I am using the following line in an Ansible playbook: debconf: name={{ item.name }} question={{ item.question }} vtype={{ item.vtype }} value={{ item.value }} with\_items: - { name: "mariadb-server-10.0", question…

---

## [Match multiple consecutive lines in lineinfile](https://forum.ansible.com/t/match-multiple-consecutive-lines-in-lineinfile/18787)

<div class="topic-metadata">

**Author:** [@Phyks](https://forum.ansible.com/u/Phyks)\
**Replies:** 0\
**Last updated:** [July 16, 2015, 9:44pm UTC](https://forum.ansible.com/t/match-multiple-consecutive-lines-in-lineinfile/18787 "2015-07-16T21:44:31Z")

</div>

Hi, I need to add a specific line after some lines in a config file. Due to the structure of the file, I have to match several consecutive lines to ensure the line will go to the right place (and I know about template …

---

## [Playbook fails if nothing matches?](https://forum.ansible.com/t/playbook-fails-if-nothing-matches/18510)

<div class="topic-metadata">

**Author:** [@ajtalbot1](https://forum.ansible.com/u/ajtalbot1)\
**Replies:** 9\
**Last updated:** [July 15, 2015, 11:27pm UTC](https://forum.ansible.com/t/playbook-fails-if-nothing-matches/18510 "2015-07-15T23:27:11Z")

</div>

Dumb n00b question. I am trying to run several play books against one system. If any one of the play books fails, Ansible exits with an RC = 1. I think I have it distilled this down to the below code: \[root@pdxvnxutil a…

---

## [Error provisioning RDS instance](https://forum.ansible.com/t/error-provisioning-rds-instance/18761)

<div class="topic-metadata">

**Author:** [@Guy\_Knights](https://forum.ansible.com/u/Guy_Knights)\
**Replies:** 2\
**Last updated:** [July 15, 2015, 11:26pm UTC](https://forum.ansible.com/t/error-provisioning-rds-instance/18761 "2015-07-15T23:26:29Z")

</div>

I’m getting the following error when I use the rds module: failed: \[localhost\] =\> {“failed”: true, “parsed”: false} Traceback (most recent call last): File “/Users/guy/.ansible/tmp/ansible-tmp-1436911513.8-14706892094…

---

## [How do I know pipelining is turned on?](https://forum.ansible.com/t/how-do-i-know-pipelining-is-turned-on/18777)

<div class="topic-metadata">

**Author:** [@Yuri\_Niyazov](https://forum.ansible.com/u/Yuri_Niyazov)\
**Replies:** 4\
**Last updated:** [July 15, 2015, 9:24pm UTC](https://forum.ansible.com/t/how-do-i-know-pipelining-is-turned-on/18777 "2015-07-15T21:24:16Z")

</div>

I am trying to provision a machine on EC2 (I am provisioning it to be a management node for a larger fleet of machines, this is why it has Vagrant and Ansible installed on it) https://github.com/yn/provisioner If I und…

---

## [dynamic inventory script doesnt run under ansible, but a script that cats its output works just fine.](https://forum.ansible.com/t/dynamic-inventory-script-doesnt-run-under-ansible-but-a-script-that-cats-its-output-works-just-fine/18763)

<div class="topic-metadata">

**Author:** [@pixel\_fairy](https://forum.ansible.com/u/pixel_fairy)\
**Replies:** 5\
**Last updated:** [July 15, 2015, 9:14pm UTC](https://forum.ansible.com/t/dynamic-inventory-script-doesnt-run-under-ansible-but-a-script-that-cats-its-output-works-just-fine/18763 "2015-07-15T21:14:30Z")

</div>

wrote a dynamic inventory for ansible, which seems to run fine on its own, but when run in ansible, it complains that it cant import yaml. a script that just cats out the output (cut and paste) of the first script works…

---

## [ansible OSError: \[Errno 17\] File exists: ...](https://forum.ansible.com/t/ansible-oserror-errno-17-file-exists/18776)

<div class="topic-metadata">

**Author:** [@knacktus](https://forum.ansible.com/u/knacktus)\
**Replies:** 0\
**Last updated:** [July 15, 2015, 7:05pm UTC](https://forum.ansible.com/t/ansible-oserror-errno-17-file-exists/18776 "2015-07-15T19:05:36Z")

</div>

Hi guys, I’m trying to build a directory structure on a mounted nfs share. \` delete existing redis\_host\_base\_dir file: path=/mounted\_nfs\_share/redis/run{{ inventory\_hostname }} state=absent create redis\_host\_base\_di…

---

## [How to convert a dict into key-val args to be passed to a module](https://forum.ansible.com/t/how-to-convert-a-dict-into-key-val-args-to-be-passed-to-a-module/18725)

<div class="topic-metadata">

**Author:** [@Vineet\_Naik](https://forum.ansible.com/u/Vineet_Naik)\
**Replies:** 3\
**Last updated:** [July 15, 2015, 4:53pm UTC](https://forum.ansible.com/t/how-to-convert-a-dict-into-key-val-args-to-be-passed-to-a-module/18725 "2015-07-15T16:53:11Z")

</div>

Hi, I am using the pip module to install python dependencies. What I am trying to achieve is - To be able to define the dependencies in one of the vars\_files as follows pydeps: - name: requests virtualenv: /tmp/testve…

---

## [Adding OpenStack nova rebuild functionality](https://forum.ansible.com/t/adding-openstack-nova-rebuild-functionality/15858)

<div class="topic-metadata">

**Author:** [@Allison\_Randal](https://forum.ansible.com/u/Allison_Randal)\
**Replies:** 2\
**Last updated:** [July 15, 2015, 4:23pm UTC](https://forum.ansible.com/t/adding-openstack-nova-rebuild-functionality/15858 "2015-07-15T16:23:05Z")

</div>

I’m working on adding nova rebuild functionality to Ansible’s Cloud Modules. At the moment I’ve got it working as a separate module named nova\_rebuild: https://github.com/allisonrandal/tripleo-ansible/blob/dce23e03ba12d…

---

## [Could there be a way let me include all ansible playbook?](https://forum.ansible.com/t/could-there-be-a-way-let-me-include-all-ansible-playbook/18768)

<div class="topic-metadata">

**Author:** [@Dylan\_Wang](https://forum.ansible.com/u/Dylan_Wang)\
**Replies:** 1\
**Last updated:** [July 15, 2015, 3:24pm UTC](https://forum.ansible.com/t/could-there-be-a-way-let-me-include-all-ansible-playbook/18768 "2015-07-15T15:24:03Z")

</div>

Hi guys, I use travis-CI for syntax checking. Could there be a way let me include all ansible playbook in a same directory? (eg. - include \*.yml ) That will help me a lot for maintain syntax test, otherwise when I mod…

---

## [synchronize error](https://forum.ansible.com/t/synchronize-error/18774)

<div class="topic-metadata">

**Author:** [@John\_Scancella](https://forum.ansible.com/u/John_Scancella)\
**Replies:** 0\
**Last updated:** [July 15, 2015, 2:19pm UTC](https://forum.ansible.com/t/synchronize-error/18774 "2015-07-15T14:19:07Z")

</div>

Hello, I am having trouble executing this playbook hosts: chronam-servers vars: SOLR\_VERSION: 4.10.4 SOLR\_HOME: “/opt/solr” tasks: name: download solr {{SOLR\_VERSION}} get\_url: dest=/tmp/solr-{{SOLR\_VERSION…

---

## [when and with on same variable](https://forum.ansible.com/t/when-and-with-on-same-variable/18773)

<div class="topic-metadata">

**Author:** [@Alexander\_Popov1](https://forum.ansible.com/u/Alexander_Popov1)\
**Replies:** 2\
**Last updated:** [July 15, 2015, 2:10pm UTC](https://forum.ansible.com/t/when-and-with-on-same-variable/18773 "2015-07-15T14:10:54Z")

</div>

debug: msg=“test for items” # skip because condition is not fullfiled when: groups.unexisting is defined debug: msg=“test for items” when: groups.unexisting is defined with\_items: unexisting #failed here with w…

---

## [various questions about using ansible - inventory, sharing handlers, lists and maps](https://forum.ansible.com/t/various-questions-about-using-ansible-inventory-sharing-handlers-lists-and-maps/14643)

<div class="topic-metadata">

**Author:** [@Mark\_Butler](https://forum.ansible.com/u/Mark_Butler)\
**Replies:** 5\
**Last updated:** [July 15, 2015, 11:53am UTC](https://forum.ansible.com/t/various-questions-about-using-ansible-inventory-sharing-handlers-lists-and-maps/14643 "2015-07-15T11:53:51Z")

</div>

Hello team, I am getting started with ansible but I have a number of questions. Apologies in advance for the rather noob questions: In my inventory, is there anyway I can specify a single domain for all the hosts e.g. …

---

## [ansible ec2\_facts returns false data (if there is NAT on the system level; This is ok if You use AWS router interface gateway)](https://forum.ansible.com/t/ansible-ec2-facts-returns-false-data-if-there-is-nat-on-the-system-level-this-is-ok-if-you-use-aws-router-interface-gateway/18756)

<div class="topic-metadata">

**Author:** [@Jakub\_Muszynski](https://forum.ansible.com/u/Jakub_Muszynski)\
**Replies:** 3\
**Last updated:** [July 15, 2015, 11:14am UTC](https://forum.ansible.com/t/ansible-ec2-facts-returns-false-data-if-there-is-nat-on-the-system-level-this-is-ok-if-you-use-aws-router-interface-gateway/18756 "2015-07-15T11:14:22Z")

</div>

THE PROBLEM: I’ve just realised why sometimes my playbook fills the template with false data This happens, when the instance is in my VPC subnet (with internet gateway), while in configuration there is NAT route table …

---

## [expect module does not respect no\_log](https://forum.ansible.com/t/expect-module-does-not-respect-no-log/18767)

<div class="topic-metadata">

**Author:** [@Sheldon\_Hearn](https://forum.ansible.com/u/Sheldon_Hearn)\
**Replies:** 0\
**Last updated:** [July 15, 2015, 8:55am UTC](https://forum.ansible.com/t/expect-module-does-not-respect-no-log/18767 "2015-07-15T08:55:06Z")

</div>

HI there, I have a task in my playbook that uses the expect module to feed sensitive data into an interactive command on the remote host. The module does its job, but my request for “no\_log: True” is not respected. Whe…

---

## [Docker connection plugin](https://forum.ansible.com/t/docker-connection-plugin/18766)

<div class="topic-metadata">

**Author:** [@Leendert\_B](https://forum.ansible.com/u/Leendert_B)\
**Replies:** 0\
**Last updated:** [July 15, 2015, 8:24am UTC](https://forum.ansible.com/t/docker-connection-plugin/18766 "2015-07-15T08:24:41Z")

</div>

Hi all, I was looking for a way to configure Docker containers through Ansible (so effectively treating them as hosts), and I ran into this project by Lorin Hochstein: https://github.com/lorin/ansible-docker-connection …

---

## [Increment - Ansible variable assigment](https://forum.ansible.com/t/increment-ansible-variable-assigment/18765)

<div class="topic-metadata">

**Author:** [@Esteban\_Freire](https://forum.ansible.com/u/Esteban_Freire)\
**Replies:** 0\
**Last updated:** [July 15, 2015, 8:16am UTC](https://forum.ansible.com/t/increment-ansible-variable-assigment/18765 "2015-07-15T08:16:53Z")

</div>

Hi all, I have the following vars file: student\_accounts: user: username: user password: pass accounts\_to\_create: 2 start\_number\_account: 1 And then the following task: \` name: Generate the sequence numbers set\_f…

---

## [May I treat playbooks similar to database migrations?](https://forum.ansible.com/t/may-i-treat-playbooks-similar-to-database-migrations/18764)

<div class="topic-metadata">

**Author:** [@Jan\_Koprowski](https://forum.ansible.com/u/Jan_Koprowski)\
**Replies:** 0\
**Last updated:** [July 15, 2015, 8:06am UTC](https://forum.ansible.com/t/may-i-treat-playbooks-similar-to-database-migrations/18764 "2015-07-15T08:06:50Z")

</div>

Hello, I would like to start writing playbooks treating each playbook similar to database migration. Let say I’m releasing my roles/playbooks repository with version 1.0 In version 1.1 I would like to upgrade reviewbo…

---

## [Docker and Ansible Vault: An insecure match?](https://forum.ansible.com/t/docker-and-ansible-vault-an-insecure-match/18751)

<div class="topic-metadata">

**Author:** [@Mahmoud\_Saada](https://forum.ansible.com/u/Mahmoud_Saada)\
**Replies:** 1\
**Last updated:** [July 15, 2015, 7:55am UTC](https://forum.ansible.com/t/docker-and-ansible-vault-an-insecure-match/18751 "2015-07-15T07:55:57Z")

</div>

Ansible Vault requires to prompt the user for a password or a file containing the password. But if I’m running Ansible inside of a container, I cannot prompt the user for a password. How can I run a playbook using vars …

---

## [Windows; adding option to perform default action on a file after win\_copy / win\_template](https://forum.ansible.com/t/windows-adding-option-to-perform-default-action-on-a-file-after-win-copy-win-template/18589)

<div class="topic-metadata">

**Author:** [@j.r.hawkesworth](https://forum.ansible.com/u/j.r.hawkesworth)\
**Replies:** 5\
**Last updated:** [July 15, 2015, 7:53am UTC](https://forum.ansible.com/t/windows-adding-option-to-perform-default-action-on-a-file-after-win-copy-win-template/18589 "2015-07-15T07:53:14Z")

</div>

I’ve been making use of the win\_template module a bit and the thing I use it for most is to create a file of registry entries which I then import using raw like this: raw: “reg.exe IMPORT {{ deployment\_files\_dir }}templ…

---

## [Using dynamic inventory, access other hosts' variable where "other hosts" are list of hosts](https://forum.ansible.com/t/using-dynamic-inventory-access-other-hosts-variable-where-other-hosts-are-list-of-hosts/18762)

<div class="topic-metadata">

**Author:** [@boyang](https://forum.ansible.com/u/boyang)\
**Replies:** 0\
**Last updated:** [July 15, 2015, 1:46am UTC](https://forum.ansible.com/t/using-dynamic-inventory-access-other-hosts-variable-where-other-hosts-are-list-of-hosts/18762 "2015-07-15T01:46:25Z")

</div>

Please refer to the closed issue on Ansible repo: https://github.com/ansible/ansible/issues/11583 So, is the thing I’m trying to achieve impossible? Any suggestion would be most appreciated. I’m running Ubuntu 15.04, A…

---

## [Run Docker container as ordinary user](https://forum.ansible.com/t/run-docker-container-as-ordinary-user/18757)

<div class="topic-metadata">

**Author:** [@Sinead\_Eliade](https://forum.ansible.com/u/Sinead_Eliade)\
**Replies:** 1\
**Last updated:** [July 14, 2015, 11:41pm UTC](https://forum.ansible.com/t/run-docker-container-as-ordinary-user/18757 "2015-07-14T23:41:52Z")

</div>

I would like to run a docker container from an ordinary user (not root). name: Install ipython/scipyserver remote\_user marcel docker: name: mycontainer image: ipython/scipyserver state: reloaded pull: always But…

---

## [Reset vars between plays on same host](https://forum.ansible.com/t/reset-vars-between-plays-on-same-host/18760)

<div class="topic-metadata">

**Author:** [@Nick\_Tkach](https://forum.ansible.com/u/Nick_Tkach)\
**Replies:** 0\
**Last updated:** [July 14, 2015, 8:23pm UTC](https://forum.ansible.com/t/reset-vars-between-plays-on-same-host/18760 "2015-07-14T20:23:41Z")

</div>

Is there a way to somehow “reset” variables in-between plays? What I’m trying to do is make a playbook that creates my standard tomcat instance layout. So given the setup below, as I understand it you’d have “app” files…

---

## [Using Ansible to calculate a total that aggregates a value across hosts in inventory](https://forum.ansible.com/t/using-ansible-to-calculate-a-total-that-aggregates-a-value-across-hosts-in-inventory/18748)

<div class="topic-metadata">

**Author:** [@Tim\_Chambers](https://forum.ansible.com/u/Tim_Chambers)\
**Replies:** 4\
**Last updated:** [July 14, 2015, 6:28pm UTC](https://forum.ansible.com/t/using-ansible-to-calculate-a-total-that-aggregates-a-value-across-hosts-in-inventory/18748 "2015-07-14T18:28:33Z")

</div>

I’m relatively new to Ansible. I’m looking for a pattern for gathering some custom, dynamic facts from hosts and then processing them locally. For instance, can anyone point me to an example of a simple play that runs df…

---

## [Trouble with Windows modules](https://forum.ansible.com/t/trouble-with-windows-modules/18731)

<div class="topic-metadata">

**Author:** [@anthony\_pangan](https://forum.ansible.com/u/anthony_pangan)\
**Replies:** 3\
**Last updated:** [July 14, 2015, 6:16pm UTC](https://forum.ansible.com/t/trouble-with-windows-modules/18731 "2015-07-14T18:16:20Z")

</div>

Hi all, I’m a complete no0b with Ansible, so sorry if I’m overlooking anything obvious. It seems that arguments I’m sending to Windows modules are not being acknowledged. With win\_chocolatey, I’m getting a “missing requ…

---

## [Concurrent running of ansible](https://forum.ansible.com/t/concurrent-running-of-ansible/18736)

<div class="topic-metadata">

**Author:** [@Valeriy\_Solovyov](https://forum.ansible.com/u/Valeriy_Solovyov)\
**Replies:** 1\
**Last updated:** [July 14, 2015, 5:49pm UTC](https://forum.ansible.com/t/concurrent-running-of-ansible/18736 "2015-07-14T17:49:52Z")

</div>

Hello, I want to run ansible/ansible-playbook concurrent. But I don’t know if there may be an error? I have a python script. I tried it and there weren’t an errors, but maybe I did some wrong? \` import json import t…

---

## [Secret hostvars... how to deal with them?](https://forum.ansible.com/t/secret-hostvars-how-to-deal-with-them/18755)

<div class="topic-metadata">

**Author:** [@Adam\_Flinton](https://forum.ansible.com/u/Adam_Flinton)\
**Replies:** 1\
**Last updated:** [July 14, 2015, 5:00pm UTC](https://forum.ansible.com/t/secret-hostvars-how-to-deal-with-them/18755 "2015-07-14T17:00:34Z")

</div>

Dear All, At the moment we are encrypting all of our host vars with git-crypt as a few contain secret information. This is a pain as only a few people need the encrypted parts of the few encrypted files but it means al…

---

## [dynamic json syntax issue](https://forum.ansible.com/t/dynamic-json-syntax-issue/18759)

<div class="topic-metadata">

**Author:** [@Phill\_Pafford](https://forum.ansible.com/u/Phill_Pafford)\
**Replies:** 1\
**Last updated:** [July 14, 2015, 4:33pm UTC](https://forum.ansible.com/t/dynamic-json-syntax-issue/18759 "2015-07-14T16:33:30Z")

</div>

I’m trying to dynamically create the JSON response needed for my REST request, I can hard code the JSON var and it works but when I add a variable it fails. - name: add ssh key to stash via api uri: url: "{{stash\_…

---

## [Using dynamic inventory, access other hosts' variable where "other hosts" are list of hosts](https://forum.ansible.com/t/using-dynamic-inventory-access-other-hosts-variable-where-other-hosts-are-list-of-hosts/18758)

<div class="topic-metadata">

**Author:** [@boyang](https://forum.ansible.com/u/boyang)\
**Replies:** 0\
**Last updated:** [July 14, 2015, 2:01pm UTC](https://forum.ansible.com/t/using-dynamic-inventory-access-other-hosts-variable-where-other-hosts-are-list-of-hosts/18758 "2015-07-14T14:01:06Z")

</div>

Please see this closed issue on Ansible repo: https://github.com/ansible/ansible/issues/11583 Any suggestions would be most welcomed. Thanks! Regards, Boyang

---

## [Inventory and group\_vars layout advice](https://forum.ansible.com/t/inventory-and-group-vars-layout-advice/18604)

<div class="topic-metadata">

**Author:** [@Tom\_Paine](https://forum.ansible.com/u/Tom_Paine)\
**Replies:** 14\
**Last updated:** [July 14, 2015, 1:39pm UTC](https://forum.ansible.com/t/inventory-and-group-vars-layout-advice/18604 "2015-07-14T13:39:55Z")

</div>

Seeking some best-practice advice about where to store variables within the following structure: multiple inventory folders ./inventory/x, ./inventory/y, ./inventory/z inside each inventory folder, combinations of dyna…

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

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