# Latest

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

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

**Page:** 566

---

## [Tacacs validation](https://forum.ansible.com/t/tacacs-validation/27259)

<div class="topic-metadata">

**Author:** [@Juraj\_Papic](https://forum.ansible.com/u/Juraj_Papic)\
**Replies:** 8\
**Last updated:** [April 12, 2018, 9:34pm UTC](https://forum.ansible.com/t/tacacs-validation/27259 "2018-04-12T21:34:08Z")

</div>

Hello, I would like to know if there’s any chance to configure ansible to validate user/pass via tacacs , instead of hard coding the user/pass. I dont want to use vault. Thanks.

---

## [Is it possible to pass 'vars\_prompt' variables from one playbook to another that would normally resemble passing arguments in functions?](https://forum.ansible.com/t/is-it-possible-to-pass-vars-prompt-variables-from-one-playbook-to-another-that-would-normally-resemble-passing-arguments-in-functions/27266)

<div class="topic-metadata">

**Author:** [@EspressoBeanies](https://forum.ansible.com/u/EspressoBeanies)\
**Replies:** 0\
**Last updated:** [April 12, 2018, 9:21pm UTC](https://forum.ansible.com/t/is-it-possible-to-pass-vars-prompt-variables-from-one-playbook-to-another-that-would-normally-resemble-passing-arguments-in-functions/27266 "2018-04-12T21:21:59Z")

</div>

I’m wondering whether or not its possible to pass variables defined by ‘vars\_prompt’ from one playbook to another when that other playbook is properly referenced in the first playbook. In other programming languages, thi…

---

## [Trying to create a new user and password for server login . SSH permission denied error.](https://forum.ansible.com/t/trying-to-create-a-new-user-and-password-for-server-login-ssh-permission-denied-error/27262)

<div class="topic-metadata">

**Author:** [@poojavenkateshreddy](https://forum.ansible.com/u/poojavenkateshreddy)\
**Replies:** 0\
**Last updated:** [April 12, 2018, 6:33pm UTC](https://forum.ansible.com/t/trying-to-create-a-new-user-and-password-for-server-login-ssh-permission-denied-error/27262 "2018-04-12T18:33:39Z")

</div>

Hi, I am trying to create a new user and password for the server login. The user is created in /etc/passwd and also I can see the password entry in /etc/shadow however when I try to ssh through the new user I cannot log…

---

## [This topic needs a title](https://forum.ansible.com/t/this-topic-needs-a-title/27256)

<div class="topic-metadata">

**Author:** [@ishita\_pandey](https://forum.ansible.com/u/ishita_pandey)\
**Replies:** 3\
**Last updated:** [April 12, 2018, 3:38pm UTC](https://forum.ansible.com/t/this-topic-needs-a-title/27256 "2018-04-12T15:38:07Z")

</div>

Hi team, I am trying to setup winrm connection to windows 12 but getting below error: \<10.47.11.89\> WINRM CONNECTION ERROR: the specified credentials were rejected by the server Traceback (most recent call last): File …

---

## [How to use the same dictionary to loop over two tasks? is it possible using block?](https://forum.ansible.com/t/how-to-use-the-same-dictionary-to-loop-over-two-tasks-is-it-possible-using-block/27253)

<div class="topic-metadata">

**Author:** [@Tchia04](https://forum.ansible.com/u/Tchia04)\
**Replies:** 1\
**Last updated:** [April 12, 2018, 2:55pm UTC](https://forum.ansible.com/t/how-to-use-the-same-dictionary-to-loop-over-two-tasks-is-it-possible-using-block/27253 "2018-04-12T14:55:50Z")

</div>

I.e. instead of doing this which does win\_iis\_website,win\_iis\_website,etc then win\_iis\_webbinding,win\_iis\_webbinding, etc name: Create IIS site win\_iis\_website: name: ‘{{ item.key }}’ state: started application\_po…

---

## [Create a Azure VM with static private IP](https://forum.ansible.com/t/create-a-azure-vm-with-static-private-ip/27258)

<div class="topic-metadata">

**Author:** [@Bubul\_Medhi](https://forum.ansible.com/u/Bubul_Medhi)\
**Replies:** 0\
**Last updated:** [April 12, 2018, 12:03pm UTC](https://forum.ansible.com/t/create-a-azure-vm-with-static-private-ip/27258 "2018-04-12T12:03:33Z")

</div>

Hi, using Ansible, I want to create a Ubuntu VM in Azure with static private IP, i.e a predefined IP. Pls help.

---

## [Ansible error : ERROR! The tasks/main.yml file for role 'xyz' must contain a list of tasks](https://forum.ansible.com/t/ansible-error-error-the-tasks-main-yml-file-for-role-xyz-must-contain-a-list-of-tasks/27252)

<div class="topic-metadata">

**Author:** [@Irfan\_Sayed](https://forum.ansible.com/u/Irfan_Sayed)\
**Replies:** 2\
**Last updated:** [April 12, 2018, 10:46am UTC](https://forum.ansible.com/t/ansible-error-error-the-tasks-main-yml-file-for-role-xyz-must-contain-a-list-of-tasks/27252 "2018-04-12T10:46:54Z")

</div>

Hello, i have following simple YAML play file --- tasks: - name: Execute the command in remote shell; stdout goes to the specified file on the remote. shell: echo hi but when running ansible-playbook command: g…

---

## [need help to install Visual studio code on linux machine through Ansible](https://forum.ansible.com/t/need-help-to-install-visual-studio-code-on-linux-machine-through-ansible/27244)

<div class="topic-metadata">

**Author:** [@Vishal\_Mane](https://forum.ansible.com/u/Vishal_Mane)\
**Replies:** 1\
**Last updated:** [April 12, 2018, 8:01am UTC](https://forum.ansible.com/t/need-help-to-install-visual-studio-code-on-linux-machine-through-ansible/27244 "2018-04-12T08:01:26Z")

</div>

I took a role to install vs code from github. now trying to run the role, it gets executes successfully, but vs code doesn’t gets installed on the target machine. my playbook is ----- hosts: become: true become\_m…

---

## [current run timestamp](https://forum.ansible.com/t/current-run-timestamp/27061)

<div class="topic-metadata">

**Author:** [@orderedchaosdev](https://forum.ansible.com/u/orderedchaosdev)\
**Replies:** 2\
**Last updated:** [April 12, 2018, 7:57am UTC](https://forum.ansible.com/t/current-run-timestamp/27061 "2018-04-12T07:57:37Z")

</div>

I want to set it up so there is a current ansible playbook run timestamp set at the start of every playbook run so I can use this var in various roles. The only way so far I have found is to set a pre\_task with set fact…

---

## [Hostnames with EC2 inventory plugin](https://forum.ansible.com/t/hostnames-with-ec2-inventory-plugin/27237)

<div class="topic-metadata">

**Author:** [@oscar](https://forum.ansible.com/u/oscar)\
**Replies:** 2\
**Last updated:** [April 12, 2018, 7:45am UTC](https://forum.ansible.com/t/hostnames-with-ec2-inventory-plugin/27237 "2018-04-12T07:45:41Z")

</div>

Hi, I’m testing the new Amazon EC2 dynamic inventory plugin. I need to set the host names to the “Name” tag, but I don’t understand the documentation. Reading this: http://docs.ansible.com/ansible/latest/plugins/invento…

---

## [Ansible 2.4 to 2.5 files - file module change](https://forum.ansible.com/t/ansible-2-4-to-2-5-files-file-module-change/27233)

<div class="topic-metadata">

**Author:** [@Mike\_Garris](https://forum.ansible.com/u/Mike_Garris)\
**Replies:** 2\
**Last updated:** [April 11, 2018, 6:39pm UTC](https://forum.ansible.com/t/ansible-2-4-to-2-5-files-file-module-change/27233 "2018-04-11T18:39:19Z")

</div>

Am I reading the docs correctly with regards to the file module being changed? “Sets attributes of files” - https://docs.ansible.com/ansible/2.4/list\_of\_files\_modules.html to “Read file contents” - https://docs.ansibl…

---

## [Where to put files and templates that don't belong to a role](https://forum.ansible.com/t/where-to-put-files-and-templates-that-dont-belong-to-a-role/27247)

<div class="topic-metadata">

**Author:** [@Clayton\_Louden](https://forum.ansible.com/u/Clayton_Louden)\
**Replies:** 3\
**Last updated:** [April 11, 2018, 5:47pm UTC](https://forum.ansible.com/t/where-to-put-files-and-templates-that-dont-belong-to-a-role/27247 "2018-04-11T17:47:52Z")

</div>

Hi everyone, Where do you usually put files or templates that are just used in a certain play but are not part of a role? Currently I do have them just alongside my playbooks organised by play someplay.yml files/ somep…

---

## [finding a phrase through ansible script](https://forum.ansible.com/t/finding-a-phrase-through-ansible-script/27250)

<div class="topic-metadata">

**Author:** [@Bishwajit\_Samanta](https://forum.ansible.com/u/Bishwajit_Samanta)\
**Replies:** 5\
**Last updated:** [April 11, 2018, 5:35pm UTC](https://forum.ansible.com/t/finding-a-phrase-through-ansible-script/27250 "2018-04-11T17:35:06Z")

</div>

i am having a problem in finding solution. I have a piece of file which contains data in below format (json type with quotes)::- hostinfo: 'host001': ip: x.x.x.x hostclass: 'puppet' 'host002': ip: y.y.y.…

---

## [add\_host case sensitive.](https://forum.ansible.com/t/add-host-case-sensitive/27248)

<div class="topic-metadata">

**Author:** [@Marek\_Slebodnik](https://forum.ansible.com/u/Marek_Slebodnik)\
**Replies:** 2\
**Last updated:** [April 11, 2018, 4:01pm UTC](https://forum.ansible.com/t/add-host-case-sensitive/27248 "2018-04-11T16:01:38Z")

</div>

Hello, I’ve got playbook with dynamic inventory. And what bothers me is, that add\_host is case sensitive. So when I have in my initial inventory

---

## [AWX API Golang Client](https://forum.ansible.com/t/awx-api-golang-client/27218)

<div class="topic-metadata">

**Author:** [@mtayer](https://forum.ansible.com/u/mtayer)\
**Replies:** 3\
**Last updated:** [April 11, 2018, 2:19pm UTC](https://forum.ansible.com/t/awx-api-golang-client/27218 "2018-04-11T14:19:16Z")

</div>

Hello, As part of efforts to develop an internal Openshift autoheal component, and because we could not find an official or otherwise maintained golang client for the AWX API we created a new one. It is currently embed…

---

## [create tepdir and copy file into it?](https://forum.ansible.com/t/create-tepdir-and-copy-file-into-it/27231)

<div class="topic-metadata">

**Author:** [@Michael\_Renner](https://forum.ansible.com/u/Michael_Renner)\
**Replies:** 2\
**Last updated:** [April 11, 2018, 1:34pm UTC](https://forum.ansible.com/t/create-tepdir-and-copy-file-into-it/27231 "2018-04-11T13:34:37Z")

</div>

Moin, I want to download a file using the maven\_artifact plugin into a temporary directory (an copy this to several other maschines). Now I wonder how to use a registerd variable for this … name: create temporary bui…

---

## [HTTPS connection  with Netapp ONTAP backend using Ansible](https://forum.ansible.com/t/https-connection-with-netapp-ontap-backend-using-ansible/27243)

<div class="topic-metadata">

**Author:** [@gcect.shanu](https://forum.ansible.com/u/gcect.shanu)\
**Replies:** 0\
**Last updated:** [April 11, 2018, 10:47am UTC](https://forum.ansible.com/t/https-connection-with-netapp-ontap-backend-using-ansible/27243 "2018-04-11T10:47:41Z")

</div>

This is regarding the issue: Insecure communication with NetApp backend systems through (at least the) na\_cdot\* modules Link: https://github.com/ansible/ansible/issues/33873 Description: Instead of by default doing TL…

---

## [Proper handling of host specific credential files](https://forum.ansible.com/t/proper-handling-of-host-specific-credential-files/27242)

<div class="topic-metadata">

**Author:** [@Jean\_Helou](https://forum.ansible.com/u/Jean_Helou)\
**Replies:** 0\
**Last updated:** [April 11, 2018, 9:52am UTC](https://forum.ansible.com/t/proper-handling-of-host-specific-credential-files/27242 "2018-04-11T09:52:07Z")

</div>

Hi, I am using ansible 2.5, I have gone through the best practices but I fail to understand how I am supposed to properly handle host-specific files. My exact use case is handling vpn certificates for computers embedde…

---

## [Ansible Python API 2.0 - capture warnings](https://forum.ansible.com/t/ansible-python-api-2-0-capture-warnings/27239)

<div class="topic-metadata">

**Author:** [@Suren\_Baskaran](https://forum.ansible.com/u/Suren_Baskaran)\
**Replies:** 0\
**Last updated:** [April 11, 2018, 8:19am UTC](https://forum.ansible.com/t/ansible-python-api-2-0-capture-warnings/27239 "2018-04-11T08:19:20Z")

</div>

Hello All Been circling around the Callbackbase with all possible tries , but I could not find a way till now to capture these warnings from a playbook execution with the API output \[WARNING\]: \* Failed to parse hosts/U…

---

## [Possible approaches to iteration](https://forum.ansible.com/t/possible-approaches-to-iteration/27227)

<div class="topic-metadata">

**Author:** [@tom.reynick](https://forum.ansible.com/u/tom.reynick)\
**Replies:** 1\
**Last updated:** [April 11, 2018, 3:00am UTC](https://forum.ansible.com/t/possible-approaches-to-iteration/27227 "2018-04-11T03:00:56Z")

</div>

I would like to understand semantics of with\_items in ansible and compare this approach to map for example. For example, let consider: {{ \["1","2", "3"\] | map('regex\_replace', '^(.\*)$', \\1'some tail') tail }} How to r…

---

## [Pip module reinstalls packages every time](https://forum.ansible.com/t/pip-module-reinstalls-packages-every-time/27234)

<div class="topic-metadata">

**Author:** [@Guy\_Knights](https://forum.ansible.com/u/Guy_Knights)\
**Replies:** 0\
**Last updated:** [April 11, 2018, 12:12am UTC](https://forum.ansible.com/t/pip-module-reinstalls-packages-every-time/27234 "2018-04-11T00:12:34Z")

</div>

A task I have uses the pip module in conjunction with ‘with\_items’ to install different ansible packages, like so: name: install ansible versions pip: name: ansible version: “{{ item }}” extra\_args: “–install-optio…

---

## [How to respond to prompts with pywinrm / Ansible when using win\_chocolatey?](https://forum.ansible.com/t/how-to-respond-to-prompts-with-pywinrm-ansible-when-using-win-chocolatey/27221)

<div class="topic-metadata">

**Author:** [@Johnson\_Johnson](https://forum.ansible.com/u/Johnson_Johnson)\
**Replies:** 3\
**Last updated:** [April 10, 2018, 1:56pm UTC](https://forum.ansible.com/t/how-to-respond-to-prompts-with-pywinrm-ansible-when-using-win-chocolatey/27221 "2018-04-10T13:56:54Z")

</div>

How to respond to prompts with pywinrm / Ansible when using win\_chocolatey? I am installing the android-sdk kit / module with chocolatey and get prompted to accept the license (y/n), but have no way to use the expect mod…

---

## [lxc connection plugin - sudo first?](https://forum.ansible.com/t/lxc-connection-plugin-sudo-first/27215)

<div class="topic-metadata">

**Author:** [@Richard\_Hector](https://forum.ansible.com/u/Richard_Hector)\
**Replies:** 4\
**Last updated:** [April 10, 2018, 10:46am UTC](https://forum.ansible.com/t/lxc-connection-plugin-sudo-first/27215 "2018-04-10T10:46:41Z")

</div>

Hi all, I'm trying to use the lxc connection plugin, but it says that my container isn't running. Presumably that's because ansible isn't running as root. Is there a way to tell it to sudo before connecting? I'm awar…

---

## [Force --Limit on Playbooks](https://forum.ansible.com/t/force-limit-on-playbooks/27230)

<div class="topic-metadata">

**Author:** [@Pat](https://forum.ansible.com/u/Pat)\
**Replies:** 0\
**Last updated:** [April 10, 2018, 8:38am UTC](https://forum.ansible.com/t/force-limit-on-playbooks/27230 "2018-04-10T08:38:02Z")

</div>

Hello everyone, I really like the functionality wit ad-hoc commands, that you have to target your commands to a specific host, group or all in order to make the command work. With Playbooks there is a similiar behaviou…

---

## [Steps for ssh forwarding?](https://forum.ansible.com/t/steps-for-ssh-forwarding/17422)

<div class="topic-metadata">

**Author:** [@Ananda\_Debnath](https://forum.ansible.com/u/Ananda_Debnath)\
**Replies:** 15\
**Last updated:** [April 10, 2018, 4:09am UTC](https://forum.ansible.com/t/steps-for-ssh-forwarding/17422 "2018-04-10T04:09:11Z")

</div>

Hi Ansiblers, I have an Ansible controller machine that contains my playbooks, custom libraries, key files etc. I have an inventory of host machines and CentOS VM’s that run on these host machines. The VMs aren’t direc…

---

## [Ansible Jinja2 filter error Rhel 7.4](https://forum.ansible.com/t/ansible-jinja2-filter-error-rhel-7-4/27226)

<div class="topic-metadata">

**Author:** [@smitconsultant2017](https://forum.ansible.com/u/smitconsultant2017)\
**Replies:** 3\
**Last updated:** [April 9, 2018, 10:26pm UTC](https://forum.ansible.com/t/ansible-jinja2-filter-error-rhel-7-4/27226 "2018-04-09T22:26:34Z")

</div>

Hi I am trying to run below playbook to find the server (openstack host), on which vm will be running using jinja2 filter but getting error no test named ‘equalto’. After googling found some ppl suggested upgrade jinja2…

---

## [Ansible user privilege](https://forum.ansible.com/t/ansible-user-privilege/27211)

<div class="topic-metadata">

**Author:** [@Quang\_Truong](https://forum.ansible.com/u/Quang_Truong)\
**Replies:** 2\
**Last updated:** [April 9, 2018, 9:01pm UTC](https://forum.ansible.com/t/ansible-user-privilege/27211 "2018-04-09T21:01:16Z")

</div>

Dear all, I’m new to ansible and system admin on linux, I have a problem that I don’t understand what happen behind the scene. Here is my scenario: I create a kvm (machine B) on my host machine, this is also an ansib…

---

## [Ansible and Packer](https://forum.ansible.com/t/ansible-and-packer/27204)

<div class="topic-metadata">

**Author:** [@Saurabh](https://forum.ansible.com/u/Saurabh)\
**Replies:** 1\
**Last updated:** [April 9, 2018, 7:00pm UTC](https://forum.ansible.com/t/ansible-and-packer/27204 "2018-04-09T19:00:16Z")

</div>

Hi Team, How can we call Packer from Ansible.( It’s Same way we call Docker\_Container from Ansible ) Ansible → Packer → Docker ( In Docker Image Configuration also will be done by Ansible ) Any Solutions for this Re…

---

## [Ansible 2.5 with ansible-hpe-cw7 module issue](https://forum.ansible.com/t/ansible-2-5-with-ansible-hpe-cw7-module-issue/27203)

<div class="topic-metadata">

**Author:** [@EDDY\_BEN-KAISSA](https://forum.ansible.com/u/EDDY_BEN-KAISSA)\
**Replies:** 1\
**Last updated:** [April 9, 2018, 6:06pm UTC](https://forum.ansible.com/t/ansible-2-5-with-ansible-hpe-cw7-module-issue/27203 "2018-04-09T18:06:59Z")

</div>

Hi everyone, I’ve an issue with the hpe module comware 7. I’m trying to use it to establish netconf connection with equipments but unfortunately I obtained error message : fatal: \[LAB\]: UNREACHABLE! =\> { “changed”: fa…

---

## [ansible handling stdin input](https://forum.ansible.com/t/ansible-handling-stdin-input/27225)

<div class="topic-metadata">

**Author:** [@Benny\_Kusman](https://forum.ansible.com/u/Benny_Kusman)\
**Replies:** 2\
**Last updated:** [April 9, 2018, 1:32pm UTC](https://forum.ansible.com/t/ansible-handling-stdin-input/27225 "2018-04-09T13:32:02Z")

</div>

Hi Hopefully someone has encountered and resolved this issue. supposedly my playbook: - main: execute script shell: “/home/settingip” when executing the program, it will run and require stdin/keyboard input, such as…

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

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