# Latest

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

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

**Page:** 817

---

## [Use "ec2\_asg" To Modify An Existing Autoscaling Group?](https://forum.ansible.com/t/use-ec2-asg-to-modify-an-existing-autoscaling-group/19826)

<div class="topic-metadata">

**Author:** [@Tennis\_Smith](https://forum.ansible.com/u/Tennis_Smith)\
**Replies:** 0\
**Last updated:** [November 21, 2015, 8:27pm UTC](https://forum.ansible.com/t/use-ec2-asg-to-modify-an-existing-autoscaling-group/19826 "2015-11-21T20:27:34Z")

</div>

Hi, I see that ec2\_asg can create and delete autoscaling groups. But what if I want to modify an existing one? In my case I just want to change the min\_size value of an existing group. Is that possible via ec2\_asg? If…

---

## [How to Copy file1 from server A to server B; then Copy file2 from server C to D in Ansible ?](https://forum.ansible.com/t/how-to-copy-file1-from-server-a-to-server-b-then-copy-file2-from-server-c-to-d-in-ansible/19823)

<div class="topic-metadata">

**Author:** [@Bhotu](https://forum.ansible.com/u/Bhotu)\
**Replies:** 1\
**Last updated:** [November 21, 2015, 7:11pm UTC](https://forum.ansible.com/t/how-to-copy-file1-from-server-a-to-server-b-then-copy-file2-from-server-c-to-d-in-ansible/19823 "2015-11-21T19:11:48Z")

</div>

I want to copy files from one server to another using Ansible. Below is the example Server A ------\> Server B Server C ------\> Server D I have my one file on Server A and specifically want to copy that file on to the …

---

## [check jboss process](https://forum.ansible.com/t/check-jboss-process/19780)

<div class="topic-metadata">

**Author:** [@skr989](https://forum.ansible.com/u/skr989)\
**Replies:** 1\
**Last updated:** [November 21, 2015, 5:51pm UTC](https://forum.ansible.com/t/check-jboss-process/19780 "2015-11-21T17:51:04Z")

</div>

I have the below play to identify if JBoss java process is up. I am expecting the msg not to be printed (skipped) if JBoss is down. Am I doing anything wrong here? tasks: name: Check JBoss java process shell: ps -ef…

---

## [Where do extra-vars appear in internal dictionaries/objects?](https://forum.ansible.com/t/where-do-extra-vars-appear-in-internal-dictionaries-objects/19825)

<div class="topic-metadata">

**Author:** [@Larry\_Fast](https://forum.ansible.com/u/Larry_Fast)\
**Replies:** 0\
**Last updated:** [November 21, 2015, 5:11pm UTC](https://forum.ansible.com/t/where-do-extra-vars-appear-in-internal-dictionaries-objects/19825 "2015-11-21T17:11:06Z")

</div>

When debugging ansible I like to do a json dump of EVERYTHING. But I’m not seeing my extra-vars in my dump. Here’s the jinja template to dump all ansible’s internal variables. What can I add to see the extra-vars? { "ho…

---

## [Override dictionnary value](https://forum.ansible.com/t/override-dictionnary-value/19824)

<div class="topic-metadata">

**Author:** [@Pierre\_Mavro](https://forum.ansible.com/u/Pierre_Mavro)\
**Replies:** 0\
**Last updated:** [November 21, 2015, 7:28am UTC](https://forum.ansible.com/t/override-dictionnary-value/19824 "2015-11-21T07:28:01Z")

</div>

Hi, I’ve got a dictionary in a vars file like that: dicname: dic1: key1: value key2: value dic2: key1: value key2: value I’d like to change the value of a key in the dict with ansible-playbook cli. I’ve tried things l…

---

## [Check package version](https://forum.ansible.com/t/check-package-version/19818)

<div class="topic-metadata">

**Author:** [@MIkeJ](https://forum.ansible.com/u/MIkeJ)\
**Replies:** 2\
**Last updated:** [November 21, 2015, 1:19am UTC](https://forum.ansible.com/t/check-package-version/19818 "2015-11-21T01:19:36Z")

</div>

Hello, I want to run a check in my playbook for the current version of ruby package installed and if its not the version Im expecting then fail the play. How can I go about doing this? Thanks Mike

---

## [How to define host var and append values to it from task](https://forum.ansible.com/t/how-to-define-host-var-and-append-values-to-it-from-task/19798)

<div class="topic-metadata">

**Author:** [@Elad\_Yosef](https://forum.ansible.com/u/Elad_Yosef)\
**Replies:** 2\
**Last updated:** [November 21, 2015, 1:12am UTC](https://forum.ansible.com/t/how-to-define-host-var-and-append-values-to-it-from-task/19798 "2015-11-21T01:12:28Z")

</div>

Hi all,I’m now to ansible I have host variable locked\_domains: and I’m trying to append values to it from task set\_fact: locked\_domains=“{{ locked\_domains + item.ID }}” with\_items: “{{ domains.json }}” Can anyone …

---

## [remote\_user var persists between plays?](https://forum.ansible.com/t/remote-user-var-persists-between-plays/19817)

<div class="topic-metadata">

**Author:** [@Jason\_Levitt](https://forum.ansible.com/u/Jason_Levitt)\
**Replies:** 4\
**Last updated:** [November 20, 2015, 10:33pm UTC](https://forum.ansible.com/t/remote-user-var-persists-between-plays/19817 "2015-11-20T22:33:26Z")

</div>

Ansible v1.9.4 I have a playbook that I launch with: $ ansible-playbook build.yml build.yml includes set\_os.yml (just a set of tasks) that launches some ec2 instances. build.yml looks like this. - name: Build stuff h…

---

## [Windows module\_utils, module API](https://forum.ansible.com/t/windows-module-utils-module-api/19507)

<div class="topic-metadata">

**Author:** [@Matt\_Davis](https://forum.ansible.com/u/Matt_Davis)\
**Replies:** 4\
**Last updated:** [November 20, 2015, 10:32pm UTC](https://forum.ansible.com/t/windows-module-utils-module-api/19507 "2015-11-20T22:32:24Z")

</div>

Soliciting opinions about building a real Powershell Ansible module API, rather than continuing to bolt on ad-hoc stuff to module\_utils/powershell.ps1… Well-intentioned PRs like https://github.com/ansible/ansible/pull/1…

---

## [Package module returns error  'package' is not a valid attribute for a Play](https://forum.ansible.com/t/package-module-returns-error-package-is-not-a-valid-attribute-for-a-play/19821)

<div class="topic-metadata">

**Author:** [@Brian\_Dunbar](https://forum.ansible.com/u/Brian_Dunbar)\
**Replies:** 2\
**Last updated:** [November 20, 2015, 10:07pm UTC](https://forum.ansible.com/t/package-module-returns-error-package-is-not-a-valid-attribute-for-a-play/19821 "2015-11-20T22:07:59Z")

</div>

All, This made me unreasonably excited. http://docs.ansible.com/ansible/package\_module.html And end to having to define multiple statements for each ‘linux distro’. Neat! ‘Installed’ Ansible 2 locally … $ ansible --…

---

## [Copying files with a mode 400 seems to set to 620 instead](https://forum.ansible.com/t/copying-files-with-a-mode-400-seems-to-set-to-620-instead/19806)

<div class="topic-metadata">

**Author:** [@gary.rutland](https://forum.ansible.com/u/gary.rutland)\
**Replies:** 1\
**Last updated:** [November 20, 2015, 9:45pm UTC](https://forum.ansible.com/t/copying-files-with-a-mode-400-seems-to-set-to-620-instead/19806 "2015-11-20T21:45:37Z")

</div>

Hey, This is potentially something that is frowned upon, but I’m trying to add SSH keys to a server via Ansible so that the destination server can use these keys later for other operations. So I am trying to do the fol…

---

## [Using ansible inside docker](https://forum.ansible.com/t/using-ansible-inside-docker/19791)

<div class="topic-metadata">

**Author:** [@lewis](https://forum.ansible.com/u/lewis)\
**Replies:** 1\
**Last updated:** [November 20, 2015, 8:07pm UTC](https://forum.ansible.com/t/using-ansible-inside-docker/19791 "2015-11-20T20:07:37Z")

</div>

Does anyone use ansible inside docker? We have for a while now, and we’ve had nothing but trouble with ansible’s service module and docker’s inability to run upstart. Ansible 1.9 onwards seems to prefer using initctl ov…

---

## [The ansible process abruptly stops running](https://forum.ansible.com/t/the-ansible-process-abruptly-stops-running/19819)

<div class="topic-metadata">

**Author:** [@Ivan\_Nunes](https://forum.ansible.com/u/Ivan_Nunes)\
**Replies:** 0\
**Last updated:** [November 20, 2015, 5:57pm UTC](https://forum.ansible.com/t/the-ansible-process-abruptly-stops-running/19819 "2015-11-20T17:57:23Z")

</div>

Hello, I have a “playbook” that performs tasks on 15 servers. But sometimes the process simply does not stop running. The process is abruptly stopped. The playbook runs the night shift by cron. I have no idea how to de…

---

## [Playbook acting on multiple hosts](https://forum.ansible.com/t/playbook-acting-on-multiple-hosts/13251)

<div class="topic-metadata">

**Author:** [@Sylvain\_Wallez](https://forum.ansible.com/u/Sylvain_Wallez)\
**Replies:** 4\
**Last updated:** [November 20, 2015, 5:49pm UTC](https://forum.ansible.com/t/playbook-acting-on-multiple-hosts/13251 "2015-11-20T17:49:38Z")

</div>

Hi there, I’ve recently fallen in love with Ansible and I’m “playbook’ing” all my install scripts. I’m currently stuck on a problem for a ninjabackup setup playbook. Let’s consider server A that will store its backups …

---

## [arg passed with module\_args that has whitespace, is interpreted as key value](https://forum.ansible.com/t/arg-passed-with-module-args-that-has-whitespace-is-interpreted-as-key-value/19816)

<div class="topic-metadata">

**Author:** [@system](https://forum.ansible.com/u/system)\
**Replies:** 1\
**Last updated:** [November 20, 2015, 5:02pm UTC](https://forum.ansible.com/t/arg-passed-with-module-args-that-has-whitespace-is-interpreted-as-key-value/19816 "2015-11-20T17:02:45Z")

</div>

Hi, I wish pass arguments to the lineinfile module, but a space in my line arg is being seen as a key / value separator module\_args=‘dest=%s regexp=%s insertafter=%s line=%s’ % (dest, regexp, insertafter, line) “msg”:…

---

## [Nesting Playbooks?](https://forum.ansible.com/t/nesting-playbooks/19813)

<div class="topic-metadata">

**Author:** [@Jason\_Levitt](https://forum.ansible.com/u/Jason_Levitt)\
**Replies:** 2\
**Last updated:** [November 20, 2015, 4:49pm UTC](https://forum.ansible.com/t/nesting-playbooks/19813 "2015-11-20T16:49:39Z")

</div>

Ansible v1.9.4 I have a playbook that I launch with: $ ansible-playbook build.yml build.yml includes set\_os.yml (just a set of tasks) that launches some ec2 instances. build.yml looks like this. \` name: Build stuff …

---

## [How to copy file from locate to remote host with dzdo method?](https://forum.ansible.com/t/how-to-copy-file-from-locate-to-remote-host-with-dzdo-method/19815)

<div class="topic-metadata">

**Author:** [@Andrey\_Maraev](https://forum.ansible.com/u/Andrey_Maraev)\
**Replies:** 0\
**Last updated:** [November 20, 2015, 10:54am UTC](https://forum.ansible.com/t/how-to-copy-file-from-locate-to-remote-host-with-dzdo-method/19815 "2015-11-20T10:54:35Z")

</div>

Hello there! I try to use ansible-playbook. (ansible 1.9.4, Ubuntu 14.04) I have dzdo -l permission like: (root) /bin/cp \* /usr/local/bin So, I wanna copy a script file from local machine to remote /usr/local/bin plz …

---

## [How to copy files om remote host via dzdo privileges](https://forum.ansible.com/t/how-to-copy-files-om-remote-host-via-dzdo-privileges/19814)

<div class="topic-metadata">

**Author:** [@Andrey\_Maraev](https://forum.ansible.com/u/Andrey_Maraev)\
**Replies:** 0\
**Last updated:** [November 20, 2015, 10:44am UTC](https://forum.ansible.com/t/how-to-copy-files-om-remote-host-via-dzdo-privileges/19814 "2015-11-20T10:44:22Z")

</div>

Hello there! I try to use ansible-playbook. I have dzdo -l permission like: (root) /bin/cp \* /usr/local/bin So, I wanna copy a script file from local machine to remote /usr/local/bin plz see playbook.yml below:

---

## [Ansible 2.0 Beta 3 is available for testing](https://forum.ansible.com/t/ansible-2-0-beta-3-is-available-for-testing/19777)

<div class="topic-metadata">

**Author:** [@Michel\_Blanc](https://forum.ansible.com/u/Michel_Blanc)\
**Replies:** 2\
**Last updated:** [November 20, 2015, 6:10am UTC](https://forum.ansible.com/t/ansible-2-0-beta-3-is-available-for-testing/19777 "2015-11-20T06:10:01Z")

</div>

Hi List/James, If you discover any errors related to this beta release, or if you see regressions from playbooks which work on 1.9.x and prior, please open a Github issue and be sure to mention which version you're t…

---

## [How can append values into host variable](https://forum.ansible.com/t/how-can-append-values-into-host-variable/19796)

<div class="topic-metadata">

**Author:** [@Elad\_Yosef](https://forum.ansible.com/u/Elad_Yosef)\
**Replies:** 1\
**Last updated:** [November 19, 2015, 10:17pm UTC](https://forum.ansible.com/t/how-can-append-values-into-host-variable/19796 "2015-11-19T22:17:11Z")

</div>

Hi all, I’m very new to ansible and sorry if the question is too easy I have defined host\_var locked\_domains: And I want to append values to it from a task set\_fact: locked\_domains=“{{ locked\_domains + item.ID }}” …

---

## [Copying a remote MySQL Database](https://forum.ansible.com/t/copying-a-remote-mysql-database/19799)

<div class="topic-metadata">

**Author:** [@Steven\_Parsons](https://forum.ansible.com/u/Steven_Parsons)\
**Replies:** 2\
**Last updated:** [November 19, 2015, 9:55pm UTC](https://forum.ansible.com/t/copying-a-remote-mysql-database/19799 "2015-11-19T21:55:41Z")

</div>

I am wondering if anyone has copied a MySQL database from a location and then restored it locally using Ansible? I thought I had it figured out with the following syntax, but for some reason its failing. \` name: Inst…

---

## [columns vs rows on zabbix\_screen extras module](https://forum.ansible.com/t/columns-vs-rows-on-zabbix-screen-extras-module/19808)

<div class="topic-metadata">

**Author:** [@Andris\_Bjornson](https://forum.ansible.com/u/Andris_Bjornson)\
**Replies:** 0\
**Last updated:** [November 19, 2015, 2:42pm UTC](https://forum.ansible.com/t/columns-vs-rows-on-zabbix-screen-extras-module/19808 "2015-11-19T14:42:37Z")

</div>

Hello, I use Zabbix heavily to monitor networks, so I’m loving the zabbix-related extras modules. I am using the zabbix\_screens module: http://docs.ansible.com/ansible/zabbix\_screen\_module.html and it’s quite straightfo…

---

## [Problem looping over JSON data returned from URI call](https://forum.ansible.com/t/problem-looping-over-json-data-returned-from-uri-call/19785)

<div class="topic-metadata">

**Author:** [@Andris\_Bjornson](https://forum.ansible.com/u/Andris_Bjornson)\
**Replies:** 2\
**Last updated:** [November 19, 2015, 2:40pm UTC](https://forum.ansible.com/t/problem-looping-over-json-data-returned-from-uri-call/19785 "2015-11-19T14:40:28Z")

</div>

Hello - I have a question about looping over json data I’ve received from calling a REST api using the URI module. I’ve been tearing my hair out over the last several days trying to sort this out…and have googled extensi…

---

## [How to get hostvars in dynamically matched playbook?](https://forum.ansible.com/t/how-to-get-hostvars-in-dynamically-matched-playbook/19807)

<div class="topic-metadata">

**Author:** [@Nicolas\_Neubauer](https://forum.ansible.com/u/Nicolas_Neubauer)\
**Replies:** 0\
**Last updated:** [November 19, 2015, 11:29am UTC](https://forum.ansible.com/t/how-to-get-hostvars-in-dynamically-matched-playbook/19807 "2015-11-19T11:29:57Z")

</div>

Hi, I have a dynamic inventory of ec2 hosts that have tags to declare how those should be provisioned. My use-case is as follows: 1 EC2 host has a tag “tomcat” and “use” 2 EC2 hosts have a tag “mysql” one of them has…

---

## [Undefined variable exception while evaluating Do-Until loop](https://forum.ansible.com/t/undefined-variable-exception-while-evaluating-do-until-loop/19804)

<div class="topic-metadata">

**Author:** [@graywulf0](https://forum.ansible.com/u/graywulf0)\
**Replies:** 0\
**Last updated:** [November 19, 2015, 9:43am UTC](https://forum.ansible.com/t/undefined-variable-exception-while-evaluating-do-until-loop/19804 "2015-11-19T09:43:33Z")

</div>

My Do-Until loop errors out if the until condition checks against a value that happens to contain a string like “{{ var }}”. I stepped through the Ansible code and it attempts to evaluate “var” then throws an undefined v…

---

## [creating directories (mkdir -p)](https://forum.ansible.com/t/creating-directories-mkdir-p/19803)

<div class="topic-metadata">

**Author:** [@Bobby\_Billingsley](https://forum.ansible.com/u/Bobby_Billingsley)\
**Replies:** 0\
**Last updated:** [November 19, 2015, 8:44am UTC](https://forum.ansible.com/t/creating-directories-mkdir-p/19803 "2015-11-19T08:44:18Z")

</div>

I’m trying to create a subdirectory (to a not-necessarily existing directory) and failing utterly :frowning: So far I’ve tried: name: ensure config dir exists file: path={{base\_dir}}/config state=directory mode=0755 …

---

## [VMware and ansible](https://forum.ansible.com/t/vmware-and-ansible/19802)

<div class="topic-metadata">

**Author:** [@Par\_Berge](https://forum.ansible.com/u/Par_Berge)\
**Replies:** 0\
**Last updated:** [November 19, 2015, 7:04am UTC](https://forum.ansible.com/t/vmware-and-ansible/19802 "2015-11-19T07:04:26Z")

</div>

Hi, I would like to use ansible for the whole “chain” when setting up a virtual machine in VMWare. For me it would be leveraging ansible to perform a clone on a specific VM, and then change properties in the clone. I …

---

## [Module Parameter Defaults (or Module Shortcut/Alias) ?](https://forum.ansible.com/t/module-parameter-defaults-or-module-shortcut-alias/19784)

<div class="topic-metadata">

**Author:** [@dennis.benzinger](https://forum.ansible.com/u/dennis.benzinger)\
**Replies:** 1\
**Last updated:** [November 18, 2015, 9:10pm UTC](https://forum.ansible.com/t/module-parameter-defaults-or-module-shortcut-alias/19784 "2015-11-18T21:10:22Z")

</div>

Hello List, is it possible to set defaults for the parameters of a module? Or create a shortcut/alias? For example if I have to execute several uri calls with the same url. In case they are next to each other you can …

---

## [Route53 module Evaluate Target Health option?](https://forum.ansible.com/t/route53-module-evaluate-target-health-option/18945)

<div class="topic-metadata">

**Author:** [@Geoff\_Webster](https://forum.ansible.com/u/Geoff_Webster)\
**Replies:** 1\
**Last updated:** [November 18, 2015, 6:09pm UTC](https://forum.ansible.com/t/route53-module-evaluate-target-health-option/18945 "2015-11-18T18:09:23Z")

</div>

Has anyone added support for the Evaluate Target Health option in Route53 to the Route53 module? Looks like it is a configuration option in Boto so I assume it would be fairly easy to add support for it, but I haven’t do…

---

## [Setup facts: ansible\_default\_ipv4 is empty, even when interface is active with an ip address](https://forum.ansible.com/t/setup-facts-ansible-default-ipv4-is-empty-even-when-interface-is-active-with-an-ip-address/19795)

<div class="topic-metadata">

**Author:** [@jdelaporte](https://forum.ansible.com/u/jdelaporte)\
**Replies:** 1\
**Last updated:** [November 18, 2015, 6:05pm UTC](https://forum.ansible.com/t/setup-facts-ansible-default-ipv4-is-empty-even-when-interface-is-active-with-an-ip-address/19795 "2015-11-18T18:05:44Z")

</div>

I am writing a playbook where I want to name a file including the ipaddress. However, my default ipv4 in the facts is empty, even though my interface is active and has a static ip. My target machine is CentOS 7.1, and my…

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

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