# Latest

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

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

**Page:** 781

---

## [Is there anyway to consolidate these set\_fact tasks?](https://forum.ansible.com/t/is-there-anyway-to-consolidate-these-set-fact-tasks/20888)

<div class="topic-metadata">

**Author:** [@Michael\_Baydoun](https://forum.ansible.com/u/Michael_Baydoun)\
**Replies:** 5\
**Last updated:** [March 17, 2016, 2:48pm UTC](https://forum.ansible.com/t/is-there-anyway-to-consolidate-these-set-fact-tasks/20888 "2016-03-17T14:48:37Z")

</div>

name: create all vpc’s for all accounts and regions ec2\_vpc: state: “{{ item.internet\_gateway | default(‘no’) }}” region: “{{ item.region }}” state: “{{ item.state | default(‘present’) }}” cidr\_block: “{{ item.cid…

---

## [Telnet](https://forum.ansible.com/t/telnet/20892)

<div class="topic-metadata">

**Author:** [@Vivek\_Raj](https://forum.ansible.com/u/Vivek_Raj)\
**Replies:** 2\
**Last updated:** [March 17, 2016, 2:38pm UTC](https://forum.ansible.com/t/telnet/20892 "2016-03-17T14:38:41Z")

</div>

Can any one say how to do telnet using ansible

---

## [Add my module to ansible facts](https://forum.ansible.com/t/add-my-module-to-ansible-facts/20903)

<div class="topic-metadata">

**Author:** [@Aarat\_Nathwani](https://forum.ansible.com/u/Aarat_Nathwani)\
**Replies:** 1\
**Last updated:** [March 17, 2016, 12:48pm UTC](https://forum.ansible.com/t/add-my-module-to-ansible-facts/20903 "2016-03-17T12:48:51Z")

</div>

Hi, This is my first post and sorry if I sound silly or don’t know the protocols I have created a small module which checks if the server needs reboot and returns reboot\_required as true or false. How do I contribute i…

---

## [Global name 'module" is not defined after upgrading to Ansible 2.0](https://forum.ansible.com/t/global-name-module-is-not-defined-after-upgrading-to-ansible-2-0/20904)

<div class="topic-metadata">

**Author:** [@Toshio\_Kuratomi](https://forum.ansible.com/u/Toshio_Kuratomi)\
**Replies:** 0\
**Last updated:** [March 17, 2016, 12:44pm UTC](https://forum.ansible.com/t/global-name-module-is-not-defined-after-upgrading-to-ansible-2-0/20904 "2016-03-17T12:44:55Z")

</div>

This looks like you updated the main ansible from the git repo by not the modules. The combination of the devel branch git repo and old modules will give you this error. We have some instructions about running from a gi…

---

## [vsphere\_guest Deploy from Template with OS Customizations](https://forum.ansible.com/t/vsphere-guest-deploy-from-template-with-os-customizations/20902)

<div class="topic-metadata">

**Author:** [@Jarryd\_Took](https://forum.ansible.com/u/Jarryd_Took)\
**Replies:** 0\
**Last updated:** [March 17, 2016, 11:52am UTC](https://forum.ansible.com/t/vsphere-guest-deploy-from-template-with-os-customizations/20902 "2016-03-17T11:52:29Z")

</div>

Hi All, This may be a feature request given the current 2.0 release, but I was wondering if there’s a way we can configure a OS Customization when deploying from template? I know the backend makes use of Pysphere to in…

---

## [EC2 instance + AMI + group vars](https://forum.ansible.com/t/ec2-instance-ami-group-vars/20900)

<div class="topic-metadata">

**Author:** [@Michal\_Medvecky](https://forum.ansible.com/u/Michal_Medvecky)\
**Replies:** 0\
**Last updated:** [March 17, 2016, 10:58am UTC](https://forum.ansible.com/t/ec2-instance-ami-group-vars/20900 "2016-03-17T10:58:49Z")

</div>

Hello, I have 2 different environments, staging + production. For both of them I need to create AMIs with my services. For both, I have existing stopped EC2 instances that I need to start within the playbook, then run …

---

## [check if a (file or directory) symbolic links exists on a windows file system with the help of win\_file](https://forum.ansible.com/t/check-if-a-file-or-directory-symbolic-links-exists-on-a-windows-file-system-with-the-help-of-win-file/20885)

<div class="topic-metadata">

**Author:** [@ishan\_jain](https://forum.ansible.com/u/ishan_jain)\
**Replies:** 3\
**Last updated:** [March 17, 2016, 10:14am UTC](https://forum.ansible.com/t/check-if-a-file-or-directory-symbolic-links-exists-on-a-windows-file-system-with-the-help-of-win-file/20885 "2016-03-17T10:14:32Z")

</div>

I am trying to gather custom facts for a windows 2012 R2 server while avoiding to write powershell scripts. win\_stat is something that can apparently be very useful to me but i am getting confused about its exact behavio…

---

## [win\_file module unable to delete directory symbolic links present inside a target dir](https://forum.ansible.com/t/win-file-module-unable-to-delete-directory-symbolic-links-present-inside-a-target-dir/20801)

<div class="topic-metadata">

**Author:** [@ishan\_jain](https://forum.ansible.com/u/ishan_jain)\
**Replies:** 1\
**Last updated:** [March 17, 2016, 5:14am UTC](https://forum.ansible.com/t/win-file-module-unable-to-delete-directory-symbolic-links-present-inside-a-target-dir/20801 "2016-03-17T05:14:33Z")

</div>

I am trying to delete a parent dir with lots of stuff inside with the help of win\_file: name: remove all win\_file: path=“E:\\root” state=absent This folder contains a lot other subfolders and symbolic links within its…

---

## [New "dense" stdout callback plugin needs testers](https://forum.ansible.com/t/new-dense-stdout-callback-plugin-needs-testers/20897)

<div class="topic-metadata">

**Author:** [@Dag\_Wieers](https://forum.ansible.com/u/Dag_Wieers)\
**Replies:** 0\
**Last updated:** [March 17, 2016, 1:15am UTC](https://forum.ansible.com/t/new-dense-stdout-callback-plugin-needs-testers/20897 "2016-03-17T01:15:59Z")

</div>

Hi, I wrote a new stdout callback plugin, named "dense", with the aim to make the output more compact and readable, while valuing screen-estate . During a playbook-run progress is updated using terminal capabilities. S…

---

## [Questions about sudo password accepted with -K argument](https://forum.ansible.com/t/questions-about-sudo-password-accepted-with-k-argument/20882)

<div class="topic-metadata">

**Author:** [@John\_Leo\_Huetter](https://forum.ansible.com/u/John_Leo_Huetter)\
**Replies:** 2\
**Last updated:** [March 17, 2016, 12:27am UTC](https://forum.ansible.com/t/questions-about-sudo-password-accepted-with-k-argument/20882 "2016-03-17T00:27:46Z")

</div>

Hello Ansible experts: Can you please let me know what is done with the password accepted with the -K argument. Is it in memory only, in a file in /tmp ? Is it encrypted? If so, how specifically. Is it available anyw…

---

## [ESX Setting Guest IP address](https://forum.ansible.com/t/esx-setting-guest-ip-address/16273)

<div class="topic-metadata">

**Author:** [@Gerhard\_Hannemann](https://forum.ansible.com/u/Gerhard_Hannemann)\
**Replies:** 6\
**Last updated:** [March 16, 2016, 10:27pm UTC](https://forum.ansible.com/t/esx-setting-guest-ip-address/16273 "2016-03-16T22:27:54Z")

</div>

Hi I am sure this have been asked before… I am trying to use ansible to provision new VMWare guests on my ESXi cluster.So far I have a kickstart custom iso image which can build a base working operation system. I have…

---

## [From salt to ansible](https://forum.ansible.com/t/from-salt-to-ansible/20895)

<div class="topic-metadata">

**Author:** [@Thomas\_Guttler](https://forum.ansible.com/u/Thomas_Guttler)\
**Replies:** 0\
**Last updated:** [March 16, 2016, 8:51pm UTC](https://forum.ansible.com/t/from-salt-to-ansible/20895 "2016-03-16T20:51:52Z")

</div>

During the last weeks I played around with salt-stack. Salt reminds me of the programming language “prolog” we learned at university. Yes, I can think that way. But I am unsure if I want to think that way. My brains s…

---

## [Passing environment variable set in group\_vars to lookup pluging](https://forum.ansible.com/t/passing-environment-variable-set-in-group-vars-to-lookup-pluging/20894)

<div class="topic-metadata">

**Author:** [@Sam\_S](https://forum.ansible.com/u/Sam_S)\
**Replies:** 0\
**Last updated:** [March 16, 2016, 7:37pm UTC](https://forum.ansible.com/t/passing-environment-variable-set-in-group-vars-to-lookup-pluging/20894 "2016-03-16T19:37:32Z")

</div>

I export ANSIBLE\_CONSUL\_URL in order for the Consul lookup pluging to search against a remote server. I’m not able to set this environment variable within my playbook. It still defaults to localhost. Is it not possible? …

---

## [How to use "when" with multiple "item.x"?](https://forum.ansible.com/t/how-to-use-when-with-multiple-item-x/20893)

<div class="topic-metadata">

**Author:** [@Thiago\_Martins](https://forum.ansible.com/u/Thiago_Martins)\
**Replies:** 0\
**Last updated:** [March 16, 2016, 6:51pm UTC](https://forum.ansible.com/t/how-to-use-when-with-multiple-item-x/20893 "2016-03-16T18:51:41Z")

</div>

Guys, Currently, I have an Ansible automation to deploy OpenStack, it works great but, starting from Mitaka, Nova requires two SQL databases (nova and nova\_api), and not just only one anymore. So, for Liberty, I have s…

---

## [how to replace windows style line endings with linux in the replace task?](https://forum.ansible.com/t/how-to-replace-windows-style-line-endings-with-linux-in-the-replace-task/20891)

<div class="topic-metadata">

**Author:** [@Vikram\_Kone](https://forum.ansible.com/u/Vikram_Kone)\
**Replies:** 1\
**Last updated:** [March 16, 2016, 6:12pm UTC](https://forum.ansible.com/t/how-to-replace-windows-style-line-endings-with-linux-in-the-replace-task/20891 "2016-03-16T18:12:13Z")

</div>

I tried this, but doesnt seem to work - name: Fix line endings from CRLF to LF local\_action: replace dest={{my\_dir}}/conf/{{item}} regexp='\\r\\n' replace='\\n'

---

## [ansible-pull git failures on initial clone and when repo changes.](https://forum.ansible.com/t/ansible-pull-git-failures-on-initial-clone-and-when-repo-changes/20391)

<div class="topic-metadata">

**Author:** [@matt](https://forum.ansible.com/u/matt)\
**Replies:** 3\
**Last updated:** [March 16, 2016, 5:16pm UTC](https://forum.ansible.com/t/ansible-pull-git-failures-on-initial-clone-and-when-repo-changes/20391 "2016-03-16T17:16:03Z")

</div>

Hi, I’m working with ansible-pull on ansible 2.0.0.2. On initial clone I get a failure on the first run. Subsequent runs are fine until the content of the git repo changes, in which case a further error is thrown. Runs …

---

## [localhost for limited roles while still using hosts:all for the rest](https://forum.ansible.com/t/localhost-for-limited-roles-while-still-using-hosts-all-for-the-rest/20890)

<div class="topic-metadata">

**Author:** [@Daniel\_Boland](https://forum.ansible.com/u/Daniel_Boland)\
**Replies:** 0\
**Last updated:** [March 16, 2016, 4:39pm UTC](https://forum.ansible.com/t/localhost-for-limited-roles-while-still-using-hosts-all-for-the-rest/20890 "2016-03-16T16:39:34Z")

</div>

I have a playbook that will update the local source code for my web project and then it will deploy it to remote servers.Everything works when i run it locally on OS X, but when i try to run from the deployment server (a…

---

## [hosts in ansible-pull working only for 127.0.0.1](https://forum.ansible.com/t/hosts-in-ansible-pull-working-only-for-127-0-0-1/14451)

<div class="topic-metadata">

**Author:** [@Walid](https://forum.ansible.com/u/Walid)\
**Replies:** 5\
**Last updated:** [March 16, 2016, 4:15pm UTC](https://forum.ansible.com/t/hosts-in-ansible-pull-working-only-for-127-0-0-1/14451 "2016-03-16T16:15:31Z")

</div>

Hi, I am trying to use ansible-pull, however when i run it it always skips the hosts with the message " skippig: no hosts matched" unless i use hosts: 127.0.0.1 in the local.yml file, any other host name even though i…

---

## [How to trace/debug Ansible EC2 ?](https://forum.ansible.com/t/how-to-trace-debug-ansible-ec2/20881)

<div class="topic-metadata">

**Author:** [@Tzach\_Livyatan1](https://forum.ansible.com/u/Tzach_Livyatan1)\
**Replies:** 2\
**Last updated:** [March 16, 2016, 3:09pm UTC](https://forum.ansible.com/t/how-to-trace-debug-ansible-ec2/20881 "2016-03-16T15:09:10Z")

</div>

Hello I have a problem with a simple Ansible playbook which launch an EC2 instance. The instance configuration is slightly different (different block-device-mapping) when I launch the same AMI from EC2 dashboard. To d…

---

## [bug: ssh\_extra\_args allows only one option](https://forum.ansible.com/t/bug-ssh-extra-args-allows-only-one-option/20889)

<div class="topic-metadata">

**Author:** [@alexk4work](https://forum.ansible.com/u/alexk4work)\
**Replies:** 0\
**Last updated:** [March 16, 2016, 2:47pm UTC](https://forum.ansible.com/t/bug-ssh-extra-args-allows-only-one-option/20889 "2016-03-16T14:47:50Z")

</div>

Hi all, I’m trying to pass a couple of command line keys thru ssh\_extra\_args and it seems to me that there’s a very annoying limitation: only one key can be passed because of apostrophs around the value of this paramete…

---

## [how to share custom plugins with the community](https://forum.ansible.com/t/how-to-share-custom-plugins-with-the-community/20851)

<div class="topic-metadata">

**Author:** [@John\_Buxton](https://forum.ansible.com/u/John_Buxton)\
**Replies:** 16\
**Last updated:** [March 16, 2016, 2:31pm UTC](https://forum.ansible.com/t/how-to-share-custom-plugins-with-the-community/20851 "2016-03-16T14:31:42Z")

</div>

Hello, I’ve written a simple action plugin to import csv file data on the management machine into a variable in a playbook. I’d like to be able to share this with the community but it seems that Ansible Galaxy is only …

---

## [Move a file on the remote host](https://forum.ansible.com/t/move-a-file-on-the-remote-host/14574)

<div class="topic-metadata">

**Author:** [@Romain\_NIO](https://forum.ansible.com/u/Romain_NIO)\
**Replies:** 2\
**Last updated:** [March 16, 2016, 11:33am UTC](https://forum.ansible.com/t/move-a-file-on-the-remote-host/14574 "2016-03-16T11:33:48Z")

</div>

Hi, I looking for a very simple action : move a file with an ansible module on the remote host. (like the mv command). Now, I’m using the ‘fetch’ module and then the ‘copy’ module but I sure that there is an ansible mo…

---

## [wait\_for + mail with host down](https://forum.ansible.com/t/wait-for-mail-with-host-down/20886)

<div class="topic-metadata">

**Author:** [@Adrian\_Paraschiv](https://forum.ansible.com/u/Adrian_Paraschiv)\
**Replies:** 0\
**Last updated:** [March 16, 2016, 10:40am UTC](https://forum.ansible.com/t/wait-for-mail-with-host-down/20886 "2016-03-16T10:40:23Z")

</div>

Hi all, I would like to receive an email with the hosts that don’t have port 22 (for example) open How can I do this ? I though of something like this:

---

## [Clone a vm from Template](https://forum.ansible.com/t/clone-a-vm-from-template/20883)

<div class="topic-metadata">

**Author:** [@Budur\_Nagaraju](https://forum.ansible.com/u/Budur_Nagaraju)\
**Replies:** 0\
**Last updated:** [March 16, 2016, 9:09am UTC](https://forum.ansible.com/t/clone-a-vm-from-template/20883 "2016-03-16T09:09:28Z")

</div>

HI I have a Ansible play book below is the one ,when I execute the script its not allowing as cluster name is not mentioned in the playbook, is it mandatory that cluster is required ? to ignore what can I do ? hosts:…

---

## [ec2 module and new longer EC2 instance ID format](https://forum.ansible.com/t/ec2-module-and-new-longer-ec2-instance-id-format/20364)

<div class="topic-metadata">

**Author:** [@Gavin\_Davies](https://forum.ansible.com/u/Gavin_Davies)\
**Replies:** 2\
**Last updated:** [March 16, 2016, 2:17am UTC](https://forum.ansible.com/t/ec2-module-and-new-longer-ec2-instance-id-format/20364 "2016-03-16T02:17:40Z")

</div>

Hello, Recently, AWS announced they would change to a longer EC2 instance ID format. I opted in for all regions and any nodes I create manually through the AWS console have the new, longer format. The nodes I create th…

---

## [When to call a specific task from a role?](https://forum.ansible.com/t/when-to-call-a-specific-task-from-a-role/20866)

<div class="topic-metadata">

**Author:** [@Gilberto\_Valentin](https://forum.ansible.com/u/Gilberto_Valentin)\
**Replies:** 3\
**Last updated:** [March 16, 2016, 2:05am UTC](https://forum.ansible.com/t/when-to-call-a-specific-task-from-a-role/20866 "2016-03-16T02:05:11Z")

</div>

I am creating a role with ansible-galaxy init role\_name. One of the tasks in that role will be to install\_app.yml and another to remove\_app.yml (one to install and one to remove). Is it possible to call one task vs the o…

---

## [Ansible synchronize not using the right user](https://forum.ansible.com/t/ansible-synchronize-not-using-the-right-user/20878)

<div class="topic-metadata">

**Author:** [@Chechu\_Santander](https://forum.ansible.com/u/Chechu_Santander)\
**Replies:** 0\
**Last updated:** [March 15, 2016, 11:34pm UTC](https://forum.ansible.com/t/ansible-synchronize-not-using-the-right-user/20878 "2016-03-15T23:34:54Z")

</div>

hey guys, I’m trying to use synchronize module on Ansible, my inventory file has set the ssh\_user and ssh\_password…and it works, but with synchronize uses the user of my laptop to connnect no the one from the inventory,…

---

## [Do conditionals work with the replace module?](https://forum.ansible.com/t/do-conditionals-work-with-the-replace-module/20875)

<div class="topic-metadata">

**Author:** [@Jason\_Levitt](https://forum.ansible.com/u/Jason_Levitt)\
**Replies:** 2\
**Last updated:** [March 15, 2016, 8:39pm UTC](https://forum.ansible.com/t/do-conditionals-work-with-the-replace-module/20875 "2016-03-15T20:39:44Z")

</div>

Do conditionals work with the replace module? I have something like this: \` name: Set date for demo 1 replace: dest={{ workdirectory2 }}/junk.java regexp=‘2016’ replace=“{{ hostvars\[‘localhost’\]\[‘year’\] }}” when: (…

---

## [Ansible synchronize](https://forum.ansible.com/t/ansible-synchronize/20876)

<div class="topic-metadata">

**Author:** [@Chechu\_Santander](https://forum.ansible.com/u/Chechu_Santander)\
**Replies:** 0\
**Last updated:** [March 15, 2016, 8:34pm UTC](https://forum.ansible.com/t/ansible-synchronize/20876 "2016-03-15T20:34:35Z")

</div>

hey guys, when I run synchronize it always run with the user from my localhost where I launch the playbook, not the one specified on the hosts file (inventory)…so it asks for password…but the user is wrong any idea? t…

---

## [How should we handle module PRs that reach "shipit" and are then rejected?](https://forum.ansible.com/t/how-should-we-handle-module-prs-that-reach-shipit-and-are-then-rejected/20864)

<div class="topic-metadata">

**Author:** [@Greg\_DeKoenigsberg1](https://forum.ansible.com/u/Greg_DeKoenigsberg1)\
**Replies:** 6\
**Last updated:** [March 15, 2016, 5:15pm UTC](https://forum.ansible.com/t/how-should-we-handle-module-prs-that-reach-shipit-and-are-then-rejected/20864 "2016-03-15T17:15:56Z")

</div>

In our current process, PRs submitted by Maintainers go directly to "shipit" state, because we assume that Maintainers know their own modules best, and we give them broad leeway to maintain those modules as they see f…

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

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