# Archives

**URL:** https://forum.ansible.com/c/archives/31.md?page=503

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

**Page:** 504

---

## [Ansible copy file on remote machines on different location.](https://forum.ansible.com/t/ansible-copy-file-on-remote-machines-on-different-location/23873)

<div class="topic-metadata">

**Author:** [@niraj\_pandey](https://forum.ansible.com/u/niraj_pandey)\
**Replies:** 4\
**Last updated:** [March 22, 2017, 8:31am UTC](https://forum.ansible.com/t/ansible-copy-file-on-remote-machines-on-different-location/23873 "2017-03-22T08:31:46Z")

</div>

down votefavorite | How can I copy a file from machine A to machine B and machine C on different location. ie: On machine A I have file abc and I want to copy it on the /tmp area of machine B and /opt area of…

---

## [NoneType attribute issue on vmware\_guest module](https://forum.ansible.com/t/nonetype-attribute-issue-on-vmware-guest-module/24030)

<div class="topic-metadata">

**Author:** [@lupindeterd](https://forum.ansible.com/u/lupindeterd)\
**Replies:** 0\
**Last updated:** [March 22, 2017, 8:14am UTC](https://forum.ansible.com/t/nonetype-attribute-issue-on-vmware-guest-module/24030 "2017-03-22T08:14:33Z")

</div>

Hi, I want to use ansible to provision my vm from template using the vmware\_guest module but I get the following error on subject. Below is the snippet of the playbook and the output/error. TIA, Lupin ##### pla…

---

## [Not able to access snapshot\_id, created using module ec2\_snapshot](https://forum.ansible.com/t/not-able-to-access-snapshot-id-created-using-module-ec2-snapshot/24029)

<div class="topic-metadata">

**Author:** [@Bhavin\_Parmar](https://forum.ansible.com/u/Bhavin_Parmar)\
**Replies:** 0\
**Last updated:** [March 22, 2017, 5:43am UTC](https://forum.ansible.com/t/not-able-to-access-snapshot-id-created-using-module-ec2-snapshot/24029 "2017-03-22T05:43:22Z")

</div>

Hello all, I am giving a list of EC2 instance IDs and mounted the volume name to take a snapshot. It is taking snapshots perfectly, but not returning snapshot IDs. My code is: — # Take Snapshot of EC2s name: Take sn…

---

## [Ansible not completely installing Elasticsearch RPM package via YUM](https://forum.ansible.com/t/ansible-not-completely-installing-elasticsearch-rpm-package-via-yum/24027)

<div class="topic-metadata">

**Author:** [@Tom\_Albrecht](https://forum.ansible.com/u/Tom_Albrecht)\
**Replies:** 2\
**Last updated:** [March 21, 2017, 9:03pm UTC](https://forum.ansible.com/t/ansible-not-completely-installing-elasticsearch-rpm-package-via-yum/24027 "2017-03-21T21:03:31Z")

</div>

This has me tearing my hair out, only because I don’t know how to go about debugging this. Versions: ansible --version ansible 2.2.1.0 config file = /etc/ansible/ansible.cfg configured module search path = Default w/…

---

## [YAML tags support](https://forum.ansible.com/t/yaml-tags-support/24028)

<div class="topic-metadata">

**Author:** [@Michael\_Kashin](https://forum.ansible.com/u/Michael_Kashin)\
**Replies:** 1\
**Last updated:** [March 21, 2017, 8:13pm UTC](https://forum.ansible.com/t/yaml-tags-support/24028 "2017-03-21T20:13:18Z")

</div>

I’m trying to load a host variable YAML file containing a YAML tag !!set. This set data structure is required by one of my custom Ansible modules. When it is loaded into Ansible runtime, the data structure inside the hos…

---

## [dynamically set variables with set\_fact](https://forum.ansible.com/t/dynamically-set-variables-with-set-fact/24026)

<div class="topic-metadata">

**Author:** [@Matthew\_Podber](https://forum.ansible.com/u/Matthew_Podber)\
**Replies:** 1\
**Last updated:** [March 21, 2017, 8:04pm UTC](https://forum.ansible.com/t/dynamically-set-variables-with-set-fact/24026 "2017-03-21T20:04:13Z")

</div>

I want to dynamically set a value to a variable using set\_fact, however, it always uses the first value: name: Global\_vars - get env info set\_fact: jm\_env: “{{lookup(‘env’, ‘Environment’)}}” l\_env: “{% if ‘{{jm\_env}…

---

## [Help generating device report in Ansible](https://forum.ansible.com/t/help-generating-device-report-in-ansible/24017)

<div class="topic-metadata">

**Author:** [@asilver](https://forum.ansible.com/u/asilver)\
**Replies:** 6\
**Last updated:** [March 21, 2017, 6:59pm UTC](https://forum.ansible.com/t/help-generating-device-report-in-ansible/24017 "2017-03-21T18:59:53Z")

</div>

Hello, I’m fairly new to Ansible and trying to do something very simple. I want to collect a piece of information (version number) from a number a network devices and generate a simple report. name: Get Data from devi…

---

## [Apply Ansible generated IOS config file to a router](https://forum.ansible.com/t/apply-ansible-generated-ios-config-file-to-a-router/24025)

<div class="topic-metadata">

**Author:** [@jkjxcl](https://forum.ansible.com/u/jkjxcl)\
**Replies:** 0\
**Last updated:** [March 21, 2017, 4:01pm UTC](https://forum.ansible.com/t/apply-ansible-generated-ios-config-file-to-a-router/24025 "2017-03-21T16:01:03Z")

</div>

Hi group. I have written a python script that goes through an existing IOS config pulling out variables I need and writing them to ./roles/router/vars/main.yml. An ansible-playbook site.yml takes this file and generate…

---

## [Ansible fact with dot, how to escape?](https://forum.ansible.com/t/ansible-fact-with-dot-how-to-escape/24019)

<div class="topic-metadata">

**Author:** [@Nils\_Borrmann](https://forum.ansible.com/u/Nils_Borrmann)\
**Replies:** 1\
**Last updated:** [March 21, 2017, 1:51pm UTC](https://forum.ansible.com/t/ansible-fact-with-dot-how-to-escape/24019 "2017-03-21T13:51:24Z")

</div>

Hi, i’m trying to get the values of a fact with a dot. For example this interface: “ansible\_bond0.247”: { “active”: true, “device”: “bond0.247”, … {{ ansible\_bond0.247.device }} doesn’t work, because ansible thin…

---

## [current devel branch does not work on windows](https://forum.ansible.com/t/current-devel-branch-does-not-work-on-windows/19233)

<div class="topic-metadata">

**Author:** [@Trond\_Hindenes](https://forum.ansible.com/u/Trond_Hindenes)\
**Replies:** 11\
**Last updated:** [March 21, 2017, 1:14pm UTC](https://forum.ansible.com/t/current-devel-branch-does-not-work-on-windows/19233 "2017-03-21T13:14:15Z")

</div>

The last working commit I can find which works on windows is ca e2e9319f06b058098cdf4272689766abb95b80f2 (https://github.com/ansible/ansible/commit/e2e9319f06b058098cdf4272689766abb95b80f2) note that I haven’t tried all …

---

## [Failed to copy directory to host](https://forum.ansible.com/t/failed-to-copy-directory-to-host/24018)

<div class="topic-metadata">

**Author:** [@Jian\_Gao](https://forum.ansible.com/u/Jian_Gao)\
**Replies:** 1\
**Last updated:** [March 21, 2017, 9:36am UTC](https://forum.ansible.com/t/failed-to-copy-directory-to-host/24018 "2017-03-21T09:36:38Z")

</div>

I am new to Ansible. I installed Anasible 2.2.1.0 and start to learn playbook. Anyway now I am having a issue to copy a directory to the target host. I tried “copy” and “synchronize” without success. Here is the playbo…

---

## [Passing encrypted variables to Script module via arguments.](https://forum.ansible.com/t/passing-encrypted-variables-to-script-module-via-arguments/23993)

<div class="topic-metadata">

**Author:** [@Rajesh\_N](https://forum.ansible.com/u/Rajesh_N)\
**Replies:** 1\
**Last updated:** [March 21, 2017, 9:30am UTC](https://forum.ansible.com/t/passing-encrypted-variables-to-script-module-via-arguments/23993 "2017-03-21T09:30:14Z")

</div>

Folks, I have a file encrypted with Vault containing the logins for my VMware environment. I also have a powershell script to execute some commands on my VMware environment. From ansible i execute the this file via the…

---

## [Getting  ImportError: No module named plugins.callback](https://forum.ansible.com/t/getting-importerror-no-module-named-plugins-callback/24020)

<div class="topic-metadata">

**Author:** [@Subha\_lakshmi](https://forum.ansible.com/u/Subha_lakshmi)\
**Replies:** 0\
**Last updated:** [March 21, 2017, 8:24am UTC](https://forum.ansible.com/t/getting-importerror-no-module-named-plugins-callback/24020 "2017-03-21T08:24:09Z")

</div>

(ansible) sr@lb:~/configuration/playbooks/edx-east$ sudo ansible-playbook -i localhost, -c local analytics\_single.yml --extra-vars “INSIGHTS\_LMS\_BASE=mysite.org” Traceback (most recent call last): File “/usr/local/bin/…

---

## [Ansible template not substituting if any variable not defined](https://forum.ansible.com/t/ansible-template-not-substituting-if-any-variable-not-defined/24007)

<div class="topic-metadata">

**Author:** [@John\_Gateley](https://forum.ansible.com/u/John_Gateley)\
**Replies:** 3\
**Last updated:** [March 21, 2017, 3:07am UTC](https://forum.ansible.com/t/ansible-template-not-substituting-if-any-variable-not-defined/24007 "2017-03-21T03:07:19Z")

</div>

HI y’all, I switched to a new computer, so this is a clean installation of ansible etc. One of my playbooks is not working properly. I tracked it down to using a template and one of the variables isn’t defined. Here’s…

---

## [Aliases for hosts](https://forum.ansible.com/t/aliases-for-hosts/24016)

<div class="topic-metadata">

**Author:** [@gforster](https://forum.ansible.com/u/gforster)\
**Replies:** 1\
**Last updated:** [March 20, 2017, 7:18pm UTC](https://forum.ansible.com/t/aliases-for-hosts/24016 "2017-03-20T19:18:34Z")

</div>

I have certain servers that are called various things by different members of my team. Some say “myserver1” others reference the same server by a DNS alias “orangeserver” and others reference by another alias “specialweb…

---

## [check if the previous fields input is given by the user](https://forum.ansible.com/t/check-if-the-previous-fields-input-is-given-by-the-user/24013)

<div class="topic-metadata">

**Author:** [@Abdul\_Hafeezuddin\_Mo](https://forum.ansible.com/u/Abdul_Hafeezuddin_Mo)\
**Replies:** 1\
**Last updated:** [March 20, 2017, 4:31pm UTC](https://forum.ansible.com/t/check-if-the-previous-fields-input-is-given-by-the-user/24013 "2017-03-20T16:31:04Z")

</div>

Hi, I’m writing a custom module. I wanted to set some fields to “required”: True, depending upon the previous field i.e if user specified previous field then next field should be set to required:True please see this be…

---

## [IIS Application Pool - Specific Identity](https://forum.ansible.com/t/iis-application-pool-specific-identity/24011)

<div class="topic-metadata">

**Author:** [@DevOps\_Unleashed](https://forum.ansible.com/u/DevOps_Unleashed)\
**Replies:** 1\
**Last updated:** [March 20, 2017, 4:27pm UTC](https://forum.ansible.com/t/iis-application-pool-specific-identity/24011 "2017-03-20T16:27:20Z")

</div>

Is it possible to use Ansible to create a new IIS Application Pool that runs under a specific “identity”? Cheers

---

## [Ansible Vault API (decrypt programmatically)](https://forum.ansible.com/t/ansible-vault-api-decrypt-programmatically/19244)

<div class="topic-metadata">

**Author:** [@Tom\_Paine1](https://forum.ansible.com/u/Tom_Paine1)\
**Replies:** 3\
**Last updated:** [March 20, 2017, 2:47pm UTC](https://forum.ansible.com/t/ansible-vault-api-decrypt-programmatically/19244 "2017-03-20T14:47:49Z")

</div>

Are there any examples of using the Ansible Python API to decrypt an existing vault file?

---

## [Ansible for Windows: strange behavior](https://forum.ansible.com/t/ansible-for-windows-strange-behavior/23994)

<div class="topic-metadata">

**Author:** [@Michele\_Viviani](https://forum.ansible.com/u/Michele_Viviani)\
**Replies:** 3\
**Last updated:** [March 20, 2017, 1:45pm UTC](https://forum.ansible.com/t/ansible-for-windows-strange-behavior/23994 "2017-03-20T13:45:17Z")

</div>

Hi, I do have some problems using Ansible with Windows. For many of my servers it works, but for some I’m receiving “HTTPConnectionPool(host=‘10.10.193.180’, port=5985): Read timed out” even if the WinRM configuration …

---

## [block/rescue is not rescuing ?](https://forum.ansible.com/t/block-rescue-is-not-rescuing/24014)

<div class="topic-metadata">

**Author:** [@Mike\_C1](https://forum.ansible.com/u/Mike_C1)\
**Replies:** 0\
**Last updated:** [March 20, 2017, 11:43am UTC](https://forum.ansible.com/t/block-rescue-is-not-rescuing/24014 "2017-03-20T11:43:36Z")

</div>

Hi all, im having trouble with the block/rescue functionality. Here is my code: - block: - name: wget consul from artifactory get\_url: url: '{{ consul\_url }}' checksum: 'sha256:{{ consul\_sha256 }}' dest: '{{ consul\_h…

---

## [Basic Ansible Ping Module Question](https://forum.ansible.com/t/basic-ansible-ping-module-question/24008)

<div class="topic-metadata">

**Author:** [@jerewrig12345](https://forum.ansible.com/u/jerewrig12345)\
**Replies:** 1\
**Last updated:** [March 20, 2017, 8:38am UTC](https://forum.ansible.com/t/basic-ansible-ping-module-question/24008 "2017-03-20T08:38:07Z")

</div>

I’m just learning the Ansible basics in my lab. I have an Ansible VM that can’t ping my virtual router. I have purposely shutdown the router interface for testing. Even though the router is down, the Ansible ping module …

---

## [2 extra spaces in front of on some rendered lines in for loops](https://forum.ansible.com/t/2-extra-spaces-in-front-of-on-some-rendered-lines-in-for-loops/24012)

<div class="topic-metadata">

**Author:** [@jerry1](https://forum.ansible.com/u/jerry1)\
**Replies:** 0\
**Last updated:** [March 20, 2017, 12:44am UTC](https://forum.ansible.com/t/2-extra-spaces-in-front-of-on-some-rendered-lines-in-for-loops/24012 "2017-03-20T00:44:54Z")

</div>

Hi, I am generating config files and I want them to be indented just so. I started with a jinja2 template that rendered correctly when called from a simple python program. When I call it from ansible, I will get 2 extra…

---

## [using variables in group\_vars/\*](https://forum.ansible.com/t/using-variables-in-group-vars/23988)

<div class="topic-metadata">

**Author:** [@dch](https://forum.ansible.com/u/dch)\
**Replies:** 2\
**Last updated:** [March 19, 2017, 11:47pm UTC](https://forum.ansible.com/t/using-variables-in-group-vars/23988 "2017-03-19T23:47:14Z")

</div>

How can I reference another variable within group\_vars files? Specifically, I have a bunch of RFC1918-style (loopback internal like 192.168.1.1) IP addresses for things that are referenced all over the place. Dependin…

---

## [include\_vars in ansible 2.0](https://forum.ansible.com/t/include-vars-in-ansible-2-0/20615)

<div class="topic-metadata">

**Author:** [@Marcus\_Furlong](https://forum.ansible.com/u/Marcus_Furlong)\
**Replies:** 3\
**Last updated:** [March 19, 2017, 9:27pm UTC](https://forum.ansible.com/t/include-vars-in-ansible-2-0/20615 "2017-03-19T21:27:41Z")

</div>

Hi, With ansible 2.0, should the following use of include\_vars give the error below? tree ├── roles │ └── common │ ├── tasks │ │ └── main.yml │ └── vars │ ├── Debian.yml │ └── default.yml cat roles/common/tasks/…

---

## [Ansible IIS Deployment - Creating App Pools with specific identity?](https://forum.ansible.com/t/ansible-iis-deployment-creating-app-pools-with-specific-identity/24010)

<div class="topic-metadata">

**Author:** [@DevOps\_Unleashed](https://forum.ansible.com/u/DevOps_Unleashed)\
**Replies:** 0\
**Last updated:** [March 19, 2017, 12:32am UTC](https://forum.ansible.com/t/ansible-iis-deployment-creating-app-pools-with-specific-identity/24010 "2017-03-19T00:32:32Z")

</div>

Is it possible to create App Pools in IIS with a specific identity? Cheers

---

## [Conditional role "include\_role:" doesn't work (with "when:"), neither with "with\_items".](https://forum.ansible.com/t/conditional-role-include-role-doesnt-work-with-when-neither-with-with-items/23070)

<div class="topic-metadata">

**Author:** [@Thiago\_Martins](https://forum.ansible.com/u/Thiago_Martins)\
**Replies:** 3\
**Last updated:** [March 18, 2017, 7:54pm UTC](https://forum.ansible.com/t/conditional-role-include-role-doesnt-work-with-when-neither-with-with-items/23070 "2017-03-18T19:54:15Z")

</div>

Guys, I’m trying to create a top-level playbook, based on “include\_role:”, instead of “roles:”, however, the “when:” condition isn’t working properly, I think. Easy to reproduce (the content of “roles/hello-world-X/tas…

---

## [Ansible CLI Error](https://forum.ansible.com/t/ansible-cli-error/24006)

<div class="topic-metadata">

**Author:** [@Taseer\_Ahmed](https://forum.ansible.com/u/Taseer_Ahmed)\
**Replies:** 0\
**Last updated:** [March 18, 2017, 5:34pm UTC](https://forum.ansible.com/t/ansible-cli-error/24006 "2017-03-18T17:34:41Z")

</div>

Hi, I am making a command line interface using Python Click, that would be used to execute the ansible playbooks as specified by the user. I have done all the necessary things to launch the playbook, but it fails with t…

---

## [ios\_config IP assignment issues](https://forum.ansible.com/t/ios-config-ip-assignment-issues/24005)

<div class="topic-metadata">

**Author:** [@David\_Coulson](https://forum.ansible.com/u/David_Coulson)\
**Replies:** 0\
**Last updated:** [March 18, 2017, 1:06pm UTC](https://forum.ansible.com/t/ios-config-ip-assignment-issues/24005 "2017-03-18T13:06:57Z")

</div>

Hi- I have two different issues, although they are both related to IP address assignment via ios\_config. Issue 1 - Does not generate error when IP address inconsistent with netmask: e.g. name: Create port-channel in…

---

## [provisioning multiple ec2 instances to multiple subnets and dealing with unmatching numbers](https://forum.ansible.com/t/provisioning-multiple-ec2-instances-to-multiple-subnets-and-dealing-with-unmatching-numbers/24004)

<div class="topic-metadata">

**Author:** [@yoash\_ben\_tulila](https://forum.ansible.com/u/yoash_ben_tulila)\
**Replies:** 0\
**Last updated:** [March 18, 2017, 12:37am UTC](https://forum.ansible.com/t/provisioning-multiple-ec2-instances-to-multiple-subnets-and-dealing-with-unmatching-numbers/24004 "2017-03-18T00:37:06Z")

</div>

Hello, I am building a provisioning system that will be receiving parameters from a jenkins job. I want to have a single playbook from where I can create new ec2 instances for both ec2-classic and vpc, though I can l…

---

## [variable\_start\_string not working](https://forum.ansible.com/t/variable-start-string-not-working/24002)

<div class="topic-metadata">

**Author:** [@senorsmile](https://forum.ansible.com/u/senorsmile)\
**Replies:** 7\
**Last updated:** [March 17, 2017, 8:49pm UTC](https://forum.ansible.com/t/variable-start-string-not-working/24002 "2017-03-17T20:49:48Z")

</div>

In the docs, there is reference to variable\_start\_string: http://docs.ansible.com/ansible/template\_module.html Also, you can override jinja2 settings by adding a special header to template file. i.e. #jinja2:variable\_…

[Previous page](https://forum.ansible.com/c/archives/31.md?page=502)

[Next page](https://forum.ansible.com/c/archives/31.md?page=504)
