# Archives

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

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

**Page:** 513

---

## [How to print the content of the file with new line characters as it appears on the file](https://forum.ansible.com/t/how-to-print-the-content-of-the-file-with-new-line-characters-as-it-appears-on-the-file/23779)

<div class="topic-metadata">

**Author:** [@Chandan\_Javaregowda](https://forum.ansible.com/u/Chandan_Javaregowda)\
**Replies:** 0\
**Last updated:** [February 21, 2017, 4:59am UTC](https://forum.ansible.com/t/how-to-print-the-content-of-the-file-with-new-line-characters-as-it-appears-on-the-file/23779 "2017-02-21T04:59:55Z")

</div>

I am trying to print the content of the file with new line characters as it appears on the file. What is the best way to do it?

---

## [\[Question\] Is there a variable for ansible tmp location/dir/path?](https://forum.ansible.com/t/question-is-there-a-variable-for-ansible-tmp-location-dir-path/23777)

<div class="topic-metadata">

**Author:** [@K\_Cheng](https://forum.ansible.com/u/K_Cheng)\
**Replies:** 0\
**Last updated:** [February 21, 2017, 12:44am UTC](https://forum.ansible.com/t/question-is-there-a-variable-for-ansible-tmp-location-dir-path/23777 "2017-02-21T00:44:24Z")

</div>

Hey guys, Just wondering if Ansible has a builtin variable that can be used in tasks that reflects the Ansible tmp location/dir/path? Cheers

---

## [Randomly Fuzzing/Exercising all variables in a Config file](https://forum.ansible.com/t/randomly-fuzzing-exercising-all-variables-in-a-config-file/23776)

<div class="topic-metadata">

**Author:** [@sami.joseph](https://forum.ansible.com/u/sami.joseph)\
**Replies:** 0\
**Last updated:** [February 21, 2017, 12:35am UTC](https://forum.ansible.com/t/randomly-fuzzing-exercising-all-variables-in-a-config-file/23776 "2017-02-21T00:35:58Z")

</div>

Hi, I built an App that gets its deployment data from a yaml/json config file, the deployment data are set as variables, for example : number of virtual machine to be spun or how many CPUs are needed per Virtual machine…

---

## [RFC: Extracting yaml parsing code into separate library](https://forum.ansible.com/t/rfc-extracting-yaml-parsing-code-into-separate-library/23773)

<div class="topic-metadata">

**Author:** [@Brandon\_LeBlanc](https://forum.ansible.com/u/Brandon_LeBlanc)\
**Replies:** 0\
**Last updated:** [February 20, 2017, 5:05pm UTC](https://forum.ansible.com/t/rfc-extracting-yaml-parsing-code-into-separate-library/23773 "2017-02-20T17:05:58Z")

</div>

I like Ansible’s modified YAML with support for loops, variable substitution, etc. I would like to pull that out into a separate library that can be used and developed independently of Ansible. I’ve given this library th…

---

## [Calling a dictionary based on an existing variable](https://forum.ansible.com/t/calling-a-dictionary-based-on-an-existing-variable/23729)

<div class="topic-metadata">

**Author:** [@Nicholas\_Santiago](https://forum.ansible.com/u/Nicholas_Santiago)\
**Replies:** 2\
**Last updated:** [February 20, 2017, 4:34pm UTC](https://forum.ansible.com/t/calling-a-dictionary-based-on-an-existing-variable/23729 "2017-02-20T16:34:47Z")

</div>

I have a playbook (ldapconfig.yml) with a variables file (ldapconfig\_vars.yml), and am hoping to use an inventory var to specify which dictionary of the below to call. So, if env=PVS, it calls the ldapserver\_pvs diction…

---

## [reboot with ignore\_errors still errors out](https://forum.ansible.com/t/reboot-with-ignore-errors-still-errors-out/23767)

<div class="topic-metadata">

**Author:** [@pixel\_fairy](https://forum.ansible.com/u/pixel_fairy)\
**Replies:** 2\
**Last updated:** [February 20, 2017, 2:45pm UTC](https://forum.ansible.com/t/reboot-with-ignore-errors-still-errors-out/23767 "2017-02-20T14:45:39Z")

</div>

trying to reboot with ignore\_errors: true still errors out. control machine and all ceph nodes run ubuntu 16.04. ansible 2.2.1.0 installed with pip \`

---

## [Ansible Hangs at the end of a Host list](https://forum.ansible.com/t/ansible-hangs-at-the-end-of-a-host-list/23768)

<div class="topic-metadata">

**Author:** [@eyal\_gershon](https://forum.ansible.com/u/eyal_gershon)\
**Replies:** 0\
**Last updated:** [February 19, 2017, 10:00am UTC](https://forum.ansible.com/t/ansible-hangs-at-the-end-of-a-host-list/23768 "2017-02-19T10:00:27Z")

</div>

Hey Everyone, I am running ansible version 1.8.4. Running the same task on multiple Hosts list - \`

---

## [win\_comand / win\_shell : The system cannot find the file specified](https://forum.ansible.com/t/win-comand-win-shell-the-system-cannot-find-the-file-specified/23764)

<div class="topic-metadata">

**Author:** [@John\_Norris](https://forum.ansible.com/u/John_Norris)\
**Replies:** 2\
**Last updated:** [February 19, 2017, 8:12am UTC](https://forum.ansible.com/t/win-comand-win-shell-the-system-cannot-find-the-file-specified/23764 "2017-02-19T08:12:12Z")

</div>

Hi, I am currently just trying stuff on the command line, I will do the playbook later. Ansible 2.2.1.0 on centos7. Trying to run a command on a windows 10 PC. ansible mesh -u user -k -m win\_ping SSH password: mesh…

---

## [rebooting and detecting failure](https://forum.ansible.com/t/rebooting-and-detecting-failure/23766)

<div class="topic-metadata">

**Author:** [@pixel\_fairy](https://forum.ansible.com/u/pixel_fairy)\
**Replies:** 0\
**Last updated:** [February 19, 2017, 3:22am UTC](https://forum.ansible.com/t/rebooting-and-detecting-failure/23766 "2017-02-19T03:22:20Z")

</div>

https://support.ansible.com/hc/en-us/articles/201958037-Reboot-a-server-and-wait-for-it-to-come-back \` name: restart machine command: shutdown -r now “Ansible updates triggered” async: 0 poll: 0 ignore\_errors: tru…

---

## [Generating html module docs locally?](https://forum.ansible.com/t/generating-html-module-docs-locally/23756)

<div class="topic-metadata">

**Author:** [@Lorin\_Hochstein2](https://forum.ansible.com/u/Lorin_Hochstein2)\
**Replies:** 2\
**Last updated:** [February 18, 2017, 4:58am UTC](https://forum.ansible.com/t/generating-html-module-docs-locally/23756 "2017-02-18T04:58:03Z")

</div>

I wanted to take a stab at https://github.com/ansible/ansible/issues/21556. I tried doing “make webdocs” against devel (7bf56cee), and got the following error: rendering: include\_role Traceback (most recent call last): …

---

## [ansible's ip filter are broken since a long time - alternatives?](https://forum.ansible.com/t/ansibles-ip-filter-are-broken-since-a-long-time-alternatives/23762)

<div class="topic-metadata">

**Author:** [@Nusenu1](https://forum.ansible.com/u/Nusenu1)\
**Replies:** 0\
**Last updated:** [February 17, 2017, 6:51pm UTC](https://forum.ansible.com/t/ansibles-ip-filter-are-broken-since-a-long-time-alternatives/23762 "2017-02-17T18:51:00Z")

</div>

Hi, since ansible's ip filter are broken \[1\] and don't look like they get fixed anytime soon I'm wondering if there are any other easy options? thanks, nusenu \[1\] https://github.com/ansible/ansible/issues/14829

---

## [True or false debug msg](https://forum.ansible.com/t/true-or-false-debug-msg/23760)

<div class="topic-metadata">

**Author:** [@dyioulos](https://forum.ansible.com/u/dyioulos)\
**Replies:** 2\
**Last updated:** [February 17, 2017, 5:47pm UTC](https://forum.ansible.com/t/true-or-false-debug-msg/23760 "2017-02-17T17:47:56Z")

</div>

All, Probably a crummy subject line, but here’s what I’m trying to do: I want my debug message to return “file exists” or file doesn’t exist. Here’s my playbook, so far:

---

## [New to Ansible - Want to Contribute](https://forum.ansible.com/t/new-to-ansible-want-to-contribute/23755)

<div class="topic-metadata">

**Author:** [@Dhruvil\_Thakkar](https://forum.ansible.com/u/Dhruvil_Thakkar)\
**Replies:** 1\
**Last updated:** [February 17, 2017, 3:38pm UTC](https://forum.ansible.com/t/new-to-ansible-want-to-contribute/23755 "2017-02-17T15:38:08Z")

</div>

Hello Everyone, I just started messing and learning ansible. I would like to contribute. I read in one of the documentation to drop a note in this mailing list. Please let me know how can I start contributing. -Regards…

---

## [Ansible Core Engine Freeze for Version 2.3](https://forum.ansible.com/t/ansible-core-engine-freeze-for-version-2-3/23759)

<div class="topic-metadata">

**Author:** [@jmckerr](https://forum.ansible.com/u/jmckerr)\
**Replies:** 0\
**Last updated:** [February 17, 2017, 3:21pm UTC](https://forum.ansible.com/t/ansible-core-engine-freeze-for-version-2-3/23759 "2017-02-17T15:21:36Z")

</div>

The next version of the open source Ansible project (version 2.3) is currently in development. I’m a little (2 days) late but the development branch for Ansible 2.3 Core Engine is now FROZEN for features. Bug fixes will …

---

## [Credstash Plugin Lookup Failure with Variable](https://forum.ansible.com/t/credstash-plugin-lookup-failure-with-variable/23758)

<div class="topic-metadata">

**Author:** [@Foster\_Rilindo](https://forum.ansible.com/u/Foster_Rilindo)\
**Replies:** 0\
**Last updated:** [February 17, 2017, 3:08pm UTC](https://forum.ansible.com/t/credstash-plugin-lookup-failure-with-variable/23758 "2017-02-17T15:08:21Z")

</div>

I am trying to lookup a secret through Ansible’s credstash plugin by first setting the variable of the table (since I have multiple credstash tables) and then looking it up - , something like this: \` credstash\_table: “…

---

## [Create a Array of integer](https://forum.ansible.com/t/create-a-array-of-integer/23724)

<div class="topic-metadata">

**Author:** [@Christian\_Iuga](https://forum.ansible.com/u/Christian_Iuga)\
**Replies:** 1\
**Last updated:** [February 17, 2017, 11:49am UTC](https://forum.ansible.com/t/create-a-array-of-integer/23724 "2017-02-17T11:49:36Z")

</div>

Hi, To manage ldap entry ( via new ansible modules ldap\_attr and ldap\_entry ) i need a different uidNumber than already exist to making it i’m doing these jobs : name: Initialize an empty list for our strings set\_fa…

---

## [How we declare 'ssh\_args' when use ansible api](https://forum.ansible.com/t/how-we-declare-ssh-args-when-use-ansible-api/23757)

<div class="topic-metadata">

**Author:** [@colynn\_liu](https://forum.ansible.com/u/colynn_liu)\
**Replies:** 0\
**Last updated:** [February 17, 2017, 7:43am UTC](https://forum.ansible.com/t/how-we-declare-ssh-args-when-use-ansible-api/23757 "2017-02-17T07:43:38Z")

</div>

\` \` \` \` even though, we can defined ssh\_args in ‘options’, but play\_context still use default defined of ‘ssh\_args’ ， \_ssh\_args = FieldAttribute(isa=‘string’, default=C.ANSIBLE\_SSH\_ARGS) \` get ssh options FIXME…

---

## [Ansible and Vsphere](https://forum.ansible.com/t/ansible-and-vsphere/23750)

<div class="topic-metadata">

**Author:** [@Robert\_Williams1](https://forum.ansible.com/u/Robert_Williams1)\
**Replies:** 1\
**Last updated:** [February 17, 2017, 7:36am UTC](https://forum.ansible.com/t/ansible-and-vsphere/23750 "2017-02-17T07:36:01Z")

</div>

All , i have searched many sites but i am able to get this playbook to work. I am trying to build a vm via ansible and i get the following error message below. I have also posted my playbook. Any help would be greatly ap…

---

## [OVF deployment in ESXi using Ansible](https://forum.ansible.com/t/ovf-deployment-in-esxi-using-ansible/18323)

<div class="topic-metadata">

**Author:** [@tarun\_emany](https://forum.ansible.com/u/tarun_emany)\
**Replies:** 1\
**Last updated:** [February 17, 2017, 1:39am UTC](https://forum.ansible.com/t/ovf-deployment-in-esxi-using-ansible/18323 "2017-02-17T01:39:46Z")

</div>

Hi All, Is there any way we can do OVF deployment using Ansible. I tried with pysphere but wanted to try with Ansible as well. -Tarun

---

## [\`from\_yaml\` seems to strips newlines from values in yaml strings](https://forum.ansible.com/t/from-yaml-seems-to-strips-newlines-from-values-in-yaml-strings/23749)

<div class="topic-metadata">

**Author:** [@james4](https://forum.ansible.com/u/james4)\
**Replies:** 0\
**Last updated:** [February 16, 2017, 8:26pm UTC](https://forum.ansible.com/t/from-yaml-seems-to-strips-newlines-from-values-in-yaml-strings/23749 "2017-02-16T20:26:23Z")

</div>

Name: "{{item.name}}" Platform: "{{item.platform}}" Attributes: PlatformCredential: "{{platform\_credential.stdout|regex\_replace('\\n', '\\\\n')}}" PlatformPrincipal: "{{platform\_principal.stdout|regex\_replace('\\n', …

---

## [How to use Ansible playbook loops to create multiple specific VMware guests on multiple free ESXi hosts using vsphere\_guest module.](https://forum.ansible.com/t/how-to-use-ansible-playbook-loops-to-create-multiple-specific-vmware-guests-on-multiple-free-esxi-hosts-using-vsphere-guest-module/23702)

<div class="topic-metadata">

**Author:** [@Alex\_Lien](https://forum.ansible.com/u/Alex_Lien)\
**Replies:** 4\
**Last updated:** [February 16, 2017, 7:57pm UTC](https://forum.ansible.com/t/how-to-use-ansible-playbook-loops-to-create-multiple-specific-vmware-guests-on-multiple-free-esxi-hosts-using-vsphere-guest-module/23702 "2017-02-16T19:57:18Z")

</div>

I am running ansible version 2.2.0.0. I have several free ESXi hosts. I would like to create multiple specific guests on each of the free ESXi hosts. I have tried to use with\_dict with guests variables, hoping to loop th…

---

## [ansible\_connection ansible\_user](https://forum.ansible.com/t/ansible-connection-ansible-user/23748)

<div class="topic-metadata">

**Author:** [@trg.achilles](https://forum.ansible.com/u/trg.achilles)\
**Replies:** 0\
**Last updated:** [February 16, 2017, 7:25pm UTC](https://forum.ansible.com/t/ansible-connection-ansible-user/23748 "2017-02-16T19:25:22Z")

</div>

Hello, I’m new to ansible and struggle to find a way create a role that could install application both on Windows and Linux os. I’m having problem to allocate correct ansible\_connection ansible\_user. It seems like if I …

---

## [Reworking a few AWS modules...looking for advice](https://forum.ansible.com/t/reworking-a-few-aws-modules-looking-for-advice/23669)

<div class="topic-metadata">

**Author:** [@Jackson\_Murtha](https://forum.ansible.com/u/Jackson_Murtha)\
**Replies:** 3\
**Last updated:** [February 16, 2017, 6:51pm UTC](https://forum.ansible.com/t/reworking-a-few-aws-modules-looking-for-advice/23669 "2017-02-16T18:51:50Z")

</div>

Ahoy, I’m new to this list, so apologies if I violate convention (let me know). I’ve been working happily with Ansible for a while, but I’ve found many AWS modules behave in unexpected ways. Many are excellent, but the…

---

## [Ansible installation without internet](https://forum.ansible.com/t/ansible-installation-without-internet/23740)

<div class="topic-metadata">

**Author:** [@Abhinav\_Sanakkayala](https://forum.ansible.com/u/Abhinav_Sanakkayala)\
**Replies:** 1\
**Last updated:** [February 16, 2017, 3:45pm UTC](https://forum.ansible.com/t/ansible-installation-without-internet/23740 "2017-02-16T15:45:43Z")

</div>

Hi All, I am trying to install Ansible on my Ubuntu16.04 version, the path that I can think of is to first install the Python Jinja2 package and then set the source for the Ansible installation file. I have googled it a…

---

## [Not able to use full URI in the playbook](https://forum.ansible.com/t/not-able-to-use-full-uri-in-the-playbook/23745)

<div class="topic-metadata">

**Author:** [@shanmuga\_Mahalingam](https://forum.ansible.com/u/shanmuga_Mahalingam)\
**Replies:** 0\
**Last updated:** [February 16, 2017, 2:33pm UTC](https://forum.ansible.com/t/not-able-to-use-full-uri-in-the-playbook/23745 "2017-02-16T14:33:59Z")

</div>

I tried to specify full URI in the vurtual\_network\_name and ansible can’t find the subnet within the virtual network. azure\_rm\_networkinterface: name: testnetworkinfrastructure resource\_group: testsourcegroup1 virtua…

---

## [Arguments for/against using vault password files](https://forum.ansible.com/t/arguments-for-against-using-vault-password-files/23744)

<div class="topic-metadata">

**Author:** [@Andrew\_Feller](https://forum.ansible.com/u/Andrew_Feller)\
**Replies:** 1\
**Last updated:** [February 16, 2017, 2:02pm UTC](https://forum.ansible.com/t/arguments-for-against-using-vault-password-files/23744 "2017-02-16T14:02:28Z")

</div>

Hi everyone, I would appreciate hearing peoples’ various arguments for/against using vault password files versus manually entering passwords. I’ve been manually entering in vault passwords as I didn’t want to leave key…

---

## [Replace multiple lines in a file at different locations](https://forum.ansible.com/t/replace-multiple-lines-in-a-file-at-different-locations/23743)

<div class="topic-metadata">

**Author:** [@Suresh\_Grandhi](https://forum.ansible.com/u/Suresh_Grandhi)\
**Replies:** 1\
**Last updated:** [February 16, 2017, 1:58pm UTC](https://forum.ansible.com/t/replace-multiple-lines-in-a-file-at-different-locations/23743 "2017-02-16T13:58:45Z")

</div>

I am looking to replace or delete redundant lines in a file at different line numbers. For example, a file has the following content In this case, I want to remove and replace with . Is there a possibili…

---

## [Telnet module for ansible](https://forum.ansible.com/t/telnet-module-for-ansible/23742)

<div class="topic-metadata">

**Author:** [@Madhu](https://forum.ansible.com/u/Madhu)\
**Replies:** 1\
**Last updated:** [February 16, 2017, 11:32am UTC](https://forum.ansible.com/t/telnet-module-for-ansible/23742 "2017-02-16T11:32:01Z")

</div>

Is there any telnet module available for Ansible? I want to telnet to server and execute some command for a particular task. Any body please help?

---

## [Pass dynamic JSON/YAML inventory to ansible CLI](https://forum.ansible.com/t/pass-dynamic-json-yaml-inventory-to-ansible-cli/23737)

<div class="topic-metadata">

**Author:** [@W\_Dec](https://forum.ansible.com/u/W_Dec)\
**Replies:** 3\
**Last updated:** [February 16, 2017, 9:48am UTC](https://forum.ansible.com/t/pass-dynamic-json-yaml-inventory-to-ansible-cli/23737 "2017-02-16T09:48:31Z")

</div>

Hi All, while trying, and so far not very successfully, to work with the (overly verbose) Ansible 2 programmatic API, I came to think of another possible solution to my problem, but am looking for tips on how to put it …

---

## [ios\_config: match confusion](https://forum.ansible.com/t/ios-config-match-confusion/23732)

<div class="topic-metadata">

**Author:** [@Adam\_Wilkins](https://forum.ansible.com/u/Adam_Wilkins)\
**Replies:** 1\
**Last updated:** [February 16, 2017, 2:04am UTC](https://forum.ansible.com/t/ios-config-match-confusion/23732 "2017-02-16T02:04:49Z")

</div>

I’m a little confused on the various match clauses in the ‘ios\_config’ module. I understand IOS very well. I’m trying to find use cases for the different options here. Does anyone have any example of when each would be …

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

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