# Latest

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

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

**Page:** 965

---

## [Setting extra vars from tower-cli](https://forum.ansible.com/t/setting-extra-vars-from-tower-cli/15379)

<div class="topic-metadata">

**Author:** [@Fraser\_Hardy](https://forum.ansible.com/u/Fraser_Hardy)\
**Replies:** 1\
**Last updated:** [May 31, 2014, 4:12pm UTC](https://forum.ansible.com/t/setting-extra-vars-from-tower-cli/15379 "2014-05-31T16:12:11Z")

</div>

Hi, I am trying to set our jenkins server to trigger a deployment to our QA environment after a successful build. I have tower-cli installed but cant seem to pass the build number for tower to use. We have the build num…

---

## [Using Ansible in Cygwin and SSH Error: data could not be sent to the remote host. Make sure this host can be reached over ssh](https://forum.ansible.com/t/using-ansible-in-cygwin-and-ssh-error-data-could-not-be-sent-to-the-remote-host-make-sure-this-host-can-be-reached-over-ssh/14691)

<div class="topic-metadata">

**Author:** [@Brian\_Richards](https://forum.ansible.com/u/Brian_Richards)\
**Replies:** 2\
**Last updated:** [May 30, 2014, 4:12pm UTC](https://forum.ansible.com/t/using-ansible-in-cygwin-and-ssh-error-data-could-not-be-sent-to-the-remote-host-make-sure-this-host-can-be-reached-over-ssh/14691 "2014-05-30T16:12:22Z")

</div>

I am using cygwin to attempt to run Ansible in windows. We have ansible playbooks that will run fine when executed from a linux box. However, when I attempt to connect to the servers with Ansible on Windows I get the fol…

---

## [Azure support](https://forum.ansible.com/t/azure-support/15305)

<div class="topic-metadata">

**Author:** [@Martin\_Johren](https://forum.ansible.com/u/Martin_Johren)\
**Replies:** 11\
**Last updated:** [May 30, 2014, 2:02pm UTC](https://forum.ansible.com/t/azure-support/15305 "2014-05-30T14:02:48Z")

</div>

Hi, I just wanted to know whether an azure module is planned or in work? Anybody knows that? Best Martin

---

## [Copy a local variable file if it exists](https://forum.ansible.com/t/copy-a-local-variable-file-if-it-exists/15365)

<div class="topic-metadata">

**Author:** [@Pierre\_Mavro](https://forum.ansible.com/u/Pierre_Mavro)\
**Replies:** 2\
**Last updated:** [May 30, 2014, 1:09pm UTC](https://forum.ansible.com/t/copy-a-local-variable-file-if-it-exists/15365 "2014-05-30T13:09:22Z")

</div>

Hi, I’m trying to do something with Ansible and I would like to know how to do something. Is it possible to launch an action if a local (not remote) file exists? Example: name: Install firewall rules copy: src=init.…

---

## [How would you?...](https://forum.ansible.com/t/how-would-you/15371)

<div class="topic-metadata">

**Author:** [@Adam\_Morris](https://forum.ansible.com/u/Adam_Morris)\
**Replies:** 4\
**Last updated:** [May 29, 2014, 11:54pm UTC](https://forum.ansible.com/t/how-would-you/15371 "2014-05-29T23:54:47Z")

</div>

Greetings, I have been asked to automate a software installation task, and the actual installation is relatively simple so I’m not having any problems there… Manual steps… mount an nfs directory on the client run a s…

---

## [Template/File path for dependencies](https://forum.ansible.com/t/template-file-path-for-dependencies/15337)

<div class="topic-metadata">

**Author:** [@Paul\_Oyston](https://forum.ansible.com/u/Paul_Oyston)\
**Replies:** 23\
**Last updated:** [May 29, 2014, 7:39pm UTC](https://forum.ansible.com/t/template-file-path-for-dependencies/15337 "2014-05-29T19:39:29Z")

</div>

Hi guys, I had a bit of an idea surrounding the template and file path for dependencies, wondering what everyone thinks of this. At the moment when you use meta/main.yml - dependencies the template path and file path i…

---

## [APT module is failing with sudo on Mac 10.9.X control machine](https://forum.ansible.com/t/apt-module-is-failing-with-sudo-on-mac-10-9-x-control-machine/15369)

<div class="topic-metadata">

**Author:** [@Bikash\_B](https://forum.ansible.com/u/Bikash_B)\
**Replies:** 2\
**Last updated:** [May 29, 2014, 7:30pm UTC](https://forum.ansible.com/t/apt-module-is-failing-with-sudo-on-mac-10-9-x-control-machine/15369 "2014-05-29T19:30:11Z")

</div>

For last 2 days, i have been struggling with a rather puzzling issue. I have installed/uninstalled ansible multiple times suspecting it might be the issue with the installation itself. But all in vain. I tried multiple v…

---

## [Issue with extra variables in 1.5.4](https://forum.ansible.com/t/issue-with-extra-variables-in-1-5-4/14980)

<div class="topic-metadata">

**Author:** [@Stephen\_Gargan](https://forum.ansible.com/u/Stephen_Gargan)\
**Replies:** 6\
**Last updated:** [May 29, 2014, 6:20pm UTC](https://forum.ansible.com/t/issue-with-extra-variables-in-1-5-4/14980 "2014-05-29T18:20:04Z")

</div>

I’m seeing an issue with variable substitution between versions 1.5.3 and 1.5.4. I have an include file that I use to create vm instances, create\_instance.yml and a playbook create\_cluster.yml that I use to spin up all …

---

## [Split view of stdout/stderr output lines in verbose mode makes order of occurrence indeterminable](https://forum.ansible.com/t/split-view-of-stdout-stderr-output-lines-in-verbose-mode-makes-order-of-occurrence-indeterminable/15362)

<div class="topic-metadata">

**Author:** [@Ernest0x](https://forum.ansible.com/u/Ernest0x)\
**Replies:** 1\
**Last updated:** [May 29, 2014, 6:09pm UTC](https://forum.ansible.com/t/split-view-of-stdout-stderr-output-lines-in-verbose-mode-makes-order-of-occurrence-indeterminable/15362 "2014-05-29T18:09:22Z")

</div>

With enough verbosity level set for the ansible cli one can see the output lines of a command executed on a remote host. However, these lines are split into stdout lines and stderr lines, making it imposible to determ…

---

## [include another role's variables without running it's tasks?](https://forum.ansible.com/t/include-another-roles-variables-without-running-its-tasks/15338)

<div class="topic-metadata">

**Author:** [@Brice\_Burgess](https://forum.ansible.com/u/Brice_Burgess)\
**Replies:** 15\
**Last updated:** [May 29, 2014, 6:07pm UTC](https://forum.ansible.com/t/include-another-roles-variables-without-running-its-tasks/15338 "2014-05-29T18:07:21Z")

</div>

I often need to access the default variables of another role. Currently I’m doing this via role dependencies, and passing a special variable to skip running a roles tasks. E.g. :: my\_role/meta/main.yml :: dependencies:…

---

## [Combine multiple inventory sources?](https://forum.ansible.com/t/combine-multiple-inventory-sources/15353)

<div class="topic-metadata">

**Author:** [@Joost\_Cassee](https://forum.ansible.com/u/Joost_Cassee)\
**Replies:** 5\
**Last updated:** [May 29, 2014, 6:02pm UTC](https://forum.ansible.com/t/combine-multiple-inventory-sources/15353 "2014-05-29T18:02:13Z")

</div>

Hi all, \[Sorry for the barrage of mails, I am restructuring my Ansible layout and running into several things at once.\] I thought it was possible to combine inventory sources like this: hosts/static1

---

## [Ansible date / time variables not found](https://forum.ansible.com/t/ansible-date-time-variables-not-found/15364)

<div class="topic-metadata">

**Author:** [@Andrew\_Cholakian1](https://forum.ansible.com/u/Andrew_Cholakian1)\
**Replies:** 4\
**Last updated:** [May 29, 2014, 5:55pm UTC](https://forum.ansible.com/t/ansible-date-time-variables-not-found/15364 "2014-05-29T17:55:08Z")

</div>

I’ve got a particularly vexing bug wrt the date / time helpers. Running the following: debug: “var=ansible\_date\_time\[‘year’\]” Does not give me the current year, the variable remains uninterpolated. I’ve tried various …

---

## [json module not found with python 2.7](https://forum.ansible.com/t/json-module-not-found-with-python-2-7/15357)

<div class="topic-metadata">

**Author:** [@Nick\_Evgeniev](https://forum.ansible.com/u/Nick_Evgeniev)\
**Replies:** 2\
**Last updated:** [May 29, 2014, 3:46pm UTC](https://forum.ansible.com/t/json-module-not-found-with-python-2-7/15357 "2014-05-29T15:46:12Z")

</div>

Hi, new to ansible so may be it’s somewhere in FAQ… just installed ansible: Python 2.7.5 ansible 1.6.2 Darwin 13.1.0 Darwin Kernel Version 13.1.0: Thu Jan 16 19:40:37 PST 2014; root:xnu-2422.90.20~2/RELEASE\_X86\_64 x8…

---

## [Trying to skip a task when a dict variable is not defined.](https://forum.ansible.com/t/trying-to-skip-a-task-when-a-dict-variable-is-not-defined/15343)

<div class="topic-metadata">

**Author:** [@Heath\_Henjum](https://forum.ansible.com/u/Heath_Henjum)\
**Replies:** 3\
**Last updated:** [May 29, 2014, 3:18pm UTC](https://forum.ansible.com/t/trying-to-skip-a-task-when-a-dict-variable-is-not-defined/15343 "2014-05-29T15:18:26Z")

</div>

Hi, I have a task defined as follows: name: copy defgen paramfile template: src={{ item.key }}.prm.j2 dest={{ ogg\_home }}/{{ item.value.pfileloc }}/{{ item.key }}.prm backup=yes when: defgensrc is defined and oggact…

---

## [ERROR: the playbook: cpbe could not be found](https://forum.ansible.com/t/error-the-playbook-cpbe-could-not-be-found/15361)

<div class="topic-metadata">

**Author:** [@Pratyay\_Chaphekar](https://forum.ansible.com/u/Pratyay_Chaphekar)\
**Replies:** 1\
**Last updated:** [May 29, 2014, 2:23pm UTC](https://forum.ansible.com/t/error-the-playbook-cpbe-could-not-be-found/15361 "2014-05-29T14:23:06Z")

</div>

Hi All, I’m facing below error: \[pchaphek@ansible01 updates\]$ ansible-playbook -v -i …/…/inventory/production fs diskcheck.yaml --ask-pass --sudo --ask-sudo-pass SSH password: sudo password \[defaults to SSH password\]…

---

## [Problems running playbook as root when ansible\_ssh\_user specified](https://forum.ansible.com/t/problems-running-playbook-as-root-when-ansible-ssh-user-specified/15358)

<div class="topic-metadata">

**Author:** [@Humberto\_Camacho](https://forum.ansible.com/u/Humberto_Camacho)\
**Replies:** 1\
**Last updated:** [May 29, 2014, 2:17pm UTC](https://forum.ansible.com/t/problems-running-playbook-as-root-when-ansible-ssh-user-specified/15358 "2014-05-29T14:17:12Z")

</div>

Hello, I have been searching a couple of days off and on. I am using ansible 1.7 and in the process of creating a playbook to check the kernel version and if it is lower than X check if python-simplejson is installed. …

---

## [User add playbook question - something is wrong and I don't know what](https://forum.ansible.com/t/user-add-playbook-question-something-is-wrong-and-i-dont-know-what/15354)

<div class="topic-metadata">

**Author:** [@Brian\_Dunbar](https://forum.ansible.com/u/Brian_Dunbar)\
**Replies:** 4\
**Last updated:** [May 28, 2014, 6:49pm UTC](https://forum.ansible.com/t/user-add-playbook-question-something-is-wrong-and-i-dont-know-what/15354 "2014-05-28T18:49:25Z")

</div>

I have a playbook, the task consistently flags one user as ‘ok’ and one user as ‘changed’. See this gist: https://gist.github.com/bdunbar/ec35fb02d4147ad1f5b5 Why is this? Clearly the user already exists, so it should …

---

## [Users - passwords - not getting it](https://forum.ansible.com/t/users-passwords-not-getting-it/15356)

<div class="topic-metadata">

**Author:** [@Brian\_Dunbar](https://forum.ansible.com/u/Brian_Dunbar)\
**Replies:** 1\
**Last updated:** [May 28, 2014, 5:21pm UTC](https://forum.ansible.com/t/users-passwords-not-getting-it/15356 "2014-05-28T17:21:26Z")

</div>

I want to create an account, and a password. Then tell the user what that password is. see here https://gist.github.com/bdunbar/6b60d8a14e5ef2af8ebe I have the same problem when I use this shell: mkpasswd --method=SHA…

---

## [chaining modules](https://forum.ansible.com/t/chaining-modules/15355)

<div class="topic-metadata">

**Author:** [@Hans\_Donner](https://forum.ansible.com/u/Hans_Donner)\
**Replies:** 4\
**Last updated:** [May 28, 2014, 3:45pm UTC](https://forum.ansible.com/t/chaining-modules/15355 "2014-05-28T15:45:08Z")

</div>

Hi, Im looking for a way to invoke existing modules from another module, where the invoking module will provide the needed params and receives the results. This is to use a generic module in roles: without duplicatin…

---

## [New URI module from Romeo Theriault](https://forum.ansible.com/t/new-uri-module-from-romeo-theriault/12370)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Replies:** 22\
**Last updated:** [May 28, 2014, 3:21pm UTC](https://forum.ansible.com/t/new-uri-module-from-romeo-theriault/12370 "2014-05-28T15:21:23Z")

</div>

Romeo Theriault wrote an EXCELLENT module for interacting with web services, and I've pushed it, and the docs on it are now up on the docsite. It's called "uri". Unfortunately the examples kind of ate it when using o…

---

## [Suitable - A wrapper to simplify the Ansible API](https://forum.ansible.com/t/suitable-a-wrapper-to-simplify-the-ansible-api/15291)

<div class="topic-metadata">

**Author:** [@Denis\_Krienbuhl](https://forum.ansible.com/u/Denis_Krienbuhl)\
**Replies:** 7\
**Last updated:** [May 28, 2014, 2:02pm UTC](https://forum.ansible.com/t/suitable-a-wrapper-to-simplify-the-ansible-api/15291 "2014-05-28T14:02:41Z")

</div>

Hi! I wrote a thing which makes the Ansible API easier to use: https://github.com/seantis/suitable We mostly use Puppet for provisioning in our company, but we maintain a number of scripts which do migrations or glue …

---

## [Using fetch in a role](https://forum.ansible.com/t/using-fetch-in-a-role/15351)

<div class="topic-metadata">

**Author:** [@Joost\_Cassee](https://forum.ansible.com/u/Joost_Cassee)\
**Replies:** 3\
**Last updated:** [May 28, 2014, 1:41pm UTC](https://forum.ansible.com/t/using-fetch-in-a-role/15351 "2014-05-28T13:41:40Z")

</div>

Hi all, I am using the fetch module in a role that redistributes ssh\_known\_hosts by: creating a snippet on every host fetching those snippets redistributing the concatenation I wanted to keep the snippets inside the …

---

## [Is there a way to "access" to each host specific variables outside it's scope?](https://forum.ansible.com/t/is-there-a-way-to-access-to-each-host-specific-variables-outside-its-scope/15331)

<div class="topic-metadata">

**Author:** [@Uri\_Miller](https://forum.ansible.com/u/Uri_Miller)\
**Replies:** 3\
**Last updated:** [May 28, 2014, 1:33pm UTC](https://forum.ansible.com/t/is-there-a-way-to-access-to-each-host-specific-variables-outside-its-scope/15331 "2014-05-28T13:33:28Z")

</div>

Hey all I’m having difficulties to find out how to perform this task which hopefully will be simple: I am running a playbook over a set of servers, then after a while I need to construct a command that will use variabl…

---

## [invalid output was: Traceback - KeyError: 'ApiVersion'](https://forum.ansible.com/t/invalid-output-was-traceback-keyerror-apiversion/15336)

<div class="topic-metadata">

**Author:** [@Thomas\_Hector](https://forum.ansible.com/u/Thomas_Hector)\
**Replies:** 4\
**Last updated:** [May 28, 2014, 1:30pm UTC](https://forum.ansible.com/t/invalid-output-was-traceback-keyerror-apiversion/15336 "2014-05-28T13:30:19Z")

</div>

Hey, I’m running ansible(1.6.1) on a ubuntu 12.04 and trying to start containers through the ansible docker module. The Docker host machine is a 14.04 with Docker 0.9.1 and docker-py. Building the image through ansibl…

---

## [Ansible and Google Docker Manifest](https://forum.ansible.com/t/ansible-and-google-docker-manifest/15347)

<div class="topic-metadata">

**Author:** [@Magnus\_Andersson](https://forum.ansible.com/u/Magnus_Andersson)\
**Replies:** 1\
**Last updated:** [May 28, 2014, 1:22pm UTC](https://forum.ansible.com/t/ansible-and-google-docker-manifest/15347 "2014-05-28T13:22:36Z")

</div>

Hi I’m having troubles adding a metadata key/value where the value is a multiline string when provisioning with the gce module. I just can’t get it to work from Ansible, I get the error: bad metadata: malformed string. …

---

## [for and if in template](https://forum.ansible.com/t/for-and-if-in-template/15352)

<div class="topic-metadata">

**Author:** [@Joachim\_Friberg](https://forum.ansible.com/u/Joachim_Friberg)\
**Replies:** 1\
**Last updated:** [May 28, 2014, 12:39pm UTC](https://forum.ansible.com/t/for-and-if-in-template/15352 "2014-05-28T12:39:54Z")

</div>

Hi, I’m trying to get this: define hostgroup{ hostgroup\_name TableswitchesSweden members dlg-prd-office-tbs01,dlg-prd-office-tbs02,dlg-prd-office-tbs03,dlg-prd-office-tbs04,dlg-prd-office-tbs05,dlg-prd-office-tbs07,dlg…

---

## [Synchronize module and with\_first\_found](https://forum.ansible.com/t/synchronize-module-and-with-first-found/15334)

<div class="topic-metadata">

**Author:** [@Carlos\_A\_Carnero\_Del](https://forum.ansible.com/u/Carlos_A_Carnero_Del)\
**Replies:** 2\
**Last updated:** [May 28, 2014, 12:35pm UTC](https://forum.ansible.com/t/synchronize-module-and-with-first-found/15334 "2014-05-28T12:35:52Z")

</div>

Hi, I (an Ansible newb) need to pass a directory of configuration files to remote nodes, so that the files on the remote end should \*exactly\* mirror what I have on the Ansible side. For instance, in my files director…

---

## [Using a conditional (when) in conjunction with a loop](https://forum.ansible.com/t/using-a-conditional-when-in-conjunction-with-a-loop/15346)

<div class="topic-metadata">

**Author:** [@Alex\_King](https://forum.ansible.com/u/Alex_King)\
**Replies:** 2\
**Last updated:** [May 28, 2014, 12:00pm UTC](https://forum.ansible.com/t/using-a-conditional-when-in-conjunction-with-a-loop/15346 "2014-05-28T12:00:42Z")

</div>

Currently I add system users with the following play:

---

## [can github.com/ansible/ansible-examples/tree/master/lamp\_haproxy be executed simply, using dynamic inventory?](https://forum.ansible.com/t/can-github-com-ansible-ansible-examples-tree-master-lamp-haproxy-be-executed-simply-using-dynamic-inventory/15349)

<div class="topic-metadata">

**Author:** [@Gallagher\_Polyn](https://forum.ansible.com/u/Gallagher_Polyn)\
**Replies:** 1\
**Last updated:** [May 28, 2014, 12:00pm UTC](https://forum.ansible.com/t/can-github-com-ansible-ansible-examples-tree-master-lamp-haproxy-be-executed-simply-using-dynamic-inventory/15349 "2014-05-28T12:00:01Z")

</div>

Hey, It feels like that all-important beginner’s Ansible example github.com/ansible/ansible-examples/tree/master/lamp\_haproxy can only be used, as written, with static inventory. For example, I modified the example’s s…

---

## [Specifying a variable from command line for a specific host](https://forum.ansible.com/t/specifying-a-variable-from-command-line-for-a-specific-host/12272)

<div class="topic-metadata">

**Author:** [@Ernest0x](https://forum.ansible.com/u/Ernest0x)\
**Replies:** 8\
**Last updated:** [May 28, 2014, 11:54am UTC](https://forum.ansible.com/t/specifying-a-variable-from-command-line-for-a-specific-host/12272 "2014-05-28T11:54:18Z")

</div>

Hello, Is it possible to set a variable from the command line (using the -e parameter of ansible-playbook) only for a specific host?

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

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