# Latest

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

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

**Page:** 496

---

## [What are the correct sFTP settings for Ansible](https://forum.ansible.com/t/what-are-the-correct-sftp-settings-for-ansible/29325)

<div class="topic-metadata">

**Author:** [@Baraka\_Baraka](https://forum.ansible.com/u/Baraka_Baraka)\
**Replies:** 0\
**Last updated:** [December 25, 2018, 5:34pm UTC](https://forum.ansible.com/t/what-are-the-correct-sftp-settings-for-ansible/29325 "2018-12-25T17:34:04Z")

</div>

Hi! I am having the problem on a DigitalOcean Ubuntu 18.04.1 LTS server, that when I ping the server with: “ansible all -m ping” I get this error message: “\[WARNING\]: sftp transfer mechanism failed on \[xxx.xxx.xxx.xxx\]”…

---

## [Help passing list from Ansible to Terraform list variable](https://forum.ansible.com/t/help-passing-list-from-ansible-to-terraform-list-variable/29320)

<div class="topic-metadata">

**Author:** [@Stephen\_Nesbitt](https://forum.ansible.com/u/Stephen_Nesbitt)\
**Replies:** 3\
**Last updated:** [December 25, 2018, 1:42am UTC](https://forum.ansible.com/t/help-passing-list-from-ansible-to-terraform-list-variable/29320 "2018-12-25T01:42:40Z")

</div>

All: I am using the terraform module and have a terraform plan that contains a list type variable. (Ansible 2.7.2) It may be my lack of deep knowledge of YAML, but every attempt I’ve tried, results in a validation erro…

---

## [\[STAT\] Execute script if it's exist](https://forum.ansible.com/t/stat-execute-script-if-its-exist/29322)

<div class="topic-metadata">

**Author:** [@mcoussi](https://forum.ansible.com/u/mcoussi)\
**Replies:** 1\
**Last updated:** [December 24, 2018, 2:13pm UTC](https://forum.ansible.com/t/stat-execute-script-if-its-exist/29322 "2018-12-24T14:13:10Z")

</div>

Hi, I want to execute a command if a file exist. The script juste create a file in the same folder. \` #/bin/sh touch test.txt \` Ansible execute module below. \`

---

## [UNREACHABLE! =\> {"changed": false, "msg": "Authentication or permission failure.](https://forum.ansible.com/t/unreachable-changed-false-msg-authentication-or-permission-failure/29313)

<div class="topic-metadata">

**Author:** [@Karol\_Oltarzewski](https://forum.ansible.com/u/Karol_Oltarzewski)\
**Replies:** 3\
**Last updated:** [December 22, 2018, 6:09am UTC](https://forum.ansible.com/t/unreachable-changed-false-msg-authentication-or-permission-failure/29313 "2018-12-22T06:09:09Z")

</div>

Good morning I have following question when I want to run Ansible-playbook by it: sudo ansible-playbook -i hosts playbook.yml -u karol -k --become -K I am getting following error: fatal: \[10.0.2.15\]: UNREACHABLE! =\> …

---

## [filtering out attributes](https://forum.ansible.com/t/filtering-out-attributes/29319)

<div class="topic-metadata">

**Author:** [@Justin\_DynamicD](https://forum.ansible.com/u/Justin_DynamicD)\
**Replies:** 1\
**Last updated:** [December 22, 2018, 4:11am UTC](https://forum.ansible.com/t/filtering-out-attributes/29319 "2018-12-22T04:11:46Z")

</div>

First I apologize if this was covered elsewhere, but nothing seemed to match my scenario… at least not in a way I could recreate. I have a role that builds a list of dictionaries. I’ve found it fairly easy to extend thi…

---

## [task with delegate\_to fails ansible\_remote\_tmp is set](https://forum.ansible.com/t/task-with-delegate-to-fails-ansible-remote-tmp-is-set/29307)

<div class="topic-metadata">

**Author:** [@asilver](https://forum.ansible.com/u/asilver)\
**Replies:** 2\
**Last updated:** [December 21, 2018, 9:43pm UTC](https://forum.ansible.com/t/task-with-delegate-to-fails-ansible-remote-tmp-is-set/29307 "2018-12-21T21:43:30Z")

</div>

Hello, I’m having a problem where a particular task is failing when I use delegate\_to. The problem is I’m also setting ansible\_remote\_tmp to a specific directory for the target systems. However, it appears that when I u…

---

## [Passing variables between playbooks on Workflow Templates](https://forum.ansible.com/t/passing-variables-between-playbooks-on-workflow-templates/26560)

<div class="topic-metadata">

**Author:** [@Pablo\_Ilarragorri](https://forum.ansible.com/u/Pablo_Ilarragorri)\
**Replies:** 7\
**Last updated:** [December 21, 2018, 4:42pm UTC](https://forum.ansible.com/t/passing-variables-between-playbooks-on-workflow-templates/26560 "2018-12-21T16:42:44Z")

</div>

Hi, I’m creating a Workflow template that include several playbooks, what I’m trying to do is to generate a variable from one of the playbooks (let’s say capture the output of a task) and pass it or make it available fo…

---

## [vmware\_vm\_inventory plugin, how is it supposed to be used ?](https://forum.ansible.com/t/vmware-vm-inventory-plugin-how-is-it-supposed-to-be-used/29295)

<div class="topic-metadata">

**Author:** [@Jimmy\_Htor](https://forum.ansible.com/u/Jimmy_Htor)\
**Replies:** 2\
**Last updated:** [December 21, 2018, 4:13pm UTC](https://forum.ansible.com/t/vmware-vm-inventory-plugin-how-is-it-supposed-to-be-used/29295 "2018-12-21T16:13:48Z")

</div>

It does work, it lists the VMs (including UUID) from vCenter. So far, so good. But then? How are you supposed to obtain their DNS name or IP in order to be able to actually connect to them (i.e. use them as hosts) Thx …

---

## [Prefered way to launch a vm on vmware](https://forum.ansible.com/t/prefered-way-to-launch-a-vm-on-vmware/29314)

<div class="topic-metadata">

**Author:** [@Michael\_W](https://forum.ansible.com/u/Michael_W)\
**Replies:** 2\
**Last updated:** [December 21, 2018, 1:26pm UTC](https://forum.ansible.com/t/prefered-way-to-launch-a-vm-on-vmware/29314 "2018-12-21T13:26:59Z")

</div>

Hello, I’m new to ansible and tried to launch a Linux VM on my first Ansible tests. This means cloning a vm from a template, booting and running some first-boot commands in order to hand over controll to Puppet inside …

---

## [Remove and create directory in a single task is failing](https://forum.ansible.com/t/remove-and-create-directory-in-a-single-task-is-failing/29317)

<div class="topic-metadata">

**Author:** [@Kai\_Stian\_Olstad](https://forum.ansible.com/u/Kai_Stian_Olstad)\
**Replies:** 0\
**Last updated:** [December 21, 2018, 12:26pm UTC](https://forum.ansible.com/t/remove-and-create-directory-in-a-single-task-is-failing/29317 "2018-12-21T12:26:21Z")

</div>

You need to use with\_nested: https://docs.ansible.com/ansible/2.4/playbooks\_loops.html#nested-loops

---

## [Remove and create directory in a single task is failing](https://forum.ansible.com/t/remove-and-create-directory-in-a-single-task-is-failing/29316)

<div class="topic-metadata">

**Author:** [@Dick\_Visser](https://forum.ansible.com/u/Dick_Visser)\
**Replies:** 0\
**Last updated:** [December 21, 2018, 12:16pm UTC](https://forum.ansible.com/t/remove-and-create-directory-in-a-single-task-is-failing/29316 "2018-12-21T12:16:57Z")

</div>

This is the same question as you asked in an earlier thread - to which you got two answers. Without any feedback on how that worked out for you (did you actually try them? did they work?), you are now trying almost th…

---

## [With\_items using {{ role\_path }} and multiple items.values give error](https://forum.ansible.com/t/with-items-using-role-path-and-multiple-items-values-give-error/29315)

<div class="topic-metadata">

**Author:** [@itsme](https://forum.ansible.com/u/itsme)\
**Replies:** 0\
**Last updated:** [December 21, 2018, 11:45am UTC](https://forum.ansible.com/t/with-items-using-role-path-and-multiple-items-values-give-error/29315 "2018-12-21T11:45:53Z")

</div>

Hi, I’m trying to copy multiple files from the task/files folder but ansible shows an error: FAILED! =\> {“reason”: "Syntax Error while loading YAML.\\n did not find expected ‘,’ or ‘}’ And i don’t see what’s wrong… n…

---

## [Python3 dynamic inventory](https://forum.ansible.com/t/python3-dynamic-inventory/29286)

<div class="topic-metadata">

**Author:** [@iamroddo](https://forum.ansible.com/u/iamroddo)\
**Replies:** 5\
**Last updated:** [December 21, 2018, 11:43am UTC](https://forum.ansible.com/t/python3-dynamic-inventory/29286 "2018-12-21T11:43:34Z")

</div>

Hi All, I’ve seen https://github.com/ansible/awx/issues/1447 which indicates that Python3 is not supported. Is there a way to bolt on support or is it something the requires patiences, until support for it is released? …

---

## ["omit" but for ordinary variables?](https://forum.ansible.com/t/omit-but-for-ordinary-variables/29309)

<div class="topic-metadata">

**Author:** [@Karl\_Auer](https://forum.ansible.com/u/Karl_Auer)\
**Replies:** 2\
**Last updated:** [December 21, 2018, 7:00am UTC](https://forum.ansible.com/t/omit-but-for-ordinary-variables/29309 "2018-12-21T07:00:03Z")

</div>

Is there anything like the “default(omit)” filter available for ordinary variable declarations? I am building a list of volume details, which will be passed too the ec2 module. With module parameters, one can comvert an…

---

## [Syntax error while running Firewall playbook](https://forum.ansible.com/t/syntax-error-while-running-firewall-playbook/29310)

<div class="topic-metadata">

**Author:** [@Prashant\_Jaiswal](https://forum.ansible.com/u/Prashant_Jaiswal)\
**Replies:** 5\
**Last updated:** [December 21, 2018, 6:59am UTC](https://forum.ansible.com/t/syntax-error-while-running-firewall-playbook/29310 "2018-12-21T06:59:25Z")

</div>

Hi, While running a playbook to enable multiple TCP & UDP ports on a remote m/c I am getting some syntax error which I can’t figure it out. The error says FAILED! =\> {“msg”: “The task includes an option with an undefine…

---

## [Venv association with tower-cli/Tower Ansible module](https://forum.ansible.com/t/venv-association-with-tower-cli-tower-ansible-module/29312)

<div class="topic-metadata">

**Author:** [@iamroddo](https://forum.ansible.com/u/iamroddo)\
**Replies:** 0\
**Last updated:** [December 20, 2018, 8:57pm UTC](https://forum.ansible.com/t/venv-association-with-tower-cli-tower-ansible-module/29312 "2018-12-20T20:57:00Z")

</div>

Is there a way to associate a custom Python virtual environment to an organization, project or job template using either tower-cli or an Ansible Tower module?

---

## [AWX Jobs intermittently not inheriting notifications from job template](https://forum.ansible.com/t/awx-jobs-intermittently-not-inheriting-notifications-from-job-template/29311)

<div class="topic-metadata">

**Author:** [@John\_Mason](https://forum.ansible.com/u/John_Mason)\
**Replies:** 0\
**Last updated:** [December 20, 2018, 4:41pm UTC](https://forum.ansible.com/t/awx-jobs-intermittently-not-inheriting-notifications-from-job-template/29311 "2018-12-20T16:41:08Z")

</div>

Hi, We are launching jobs via job templates in AWX (v2.1.2.0) using the API from an internal application. We use a webhook defined in the job template to send status updates to that internal application. We have been n…

---

## [Converted "with\_items" play to new-style loop, now it is failing](https://forum.ansible.com/t/converted-with-items-play-to-new-style-loop-now-it-is-failing/29294)

<div class="topic-metadata">

**Author:** [@Will\_Dennis](https://forum.ansible.com/u/Will_Dennis)\
**Replies:** 5\
**Last updated:** [December 20, 2018, 4:33pm UTC](https://forum.ansible.com/t/converted-with-items-play-to-new-style-loop-now-it-is-failing/29294 "2018-12-20T16:33:13Z")

</div>

Hi all, I had a play in one of my roles that used to look like this: \` name: Ensure PRTG monitoring scripts are installed copy: src: “{{ item }}” dest: /var/prtg/scriptsxml/{{ item }} owner: root group: root mo…

---

## [How to access hostvar of different host in replace module](https://forum.ansible.com/t/how-to-access-hostvar-of-different-host-in-replace-module/29308)

<div class="topic-metadata">

**Author:** [@Dineshkumar\_Ramasamy](https://forum.ansible.com/u/Dineshkumar_Ramasamy)\
**Replies:** 3\
**Last updated:** [December 20, 2018, 3:57pm UTC](https://forum.ansible.com/t/how-to-access-hostvar-of-different-host-in-replace-module/29308 "2018-12-20T15:57:11Z")

</div>

Hi, I’m trying to access hostvar in replace module but I could not access the same. hosts:

---

## [Find variable in dictonary based on a known key:value pair](https://forum.ansible.com/t/find-variable-in-dictonary-based-on-a-known-key-value-pair/29306)

<div class="topic-metadata">

**Author:** [@Eric\_Brewer](https://forum.ansible.com/u/Eric_Brewer)\
**Replies:** 4\
**Last updated:** [December 20, 2018, 3:00pm UTC](https://forum.ansible.com/t/find-variable-in-dictonary-based-on-a-known-key-value-pair/29306 "2018-12-20T15:00:30Z")

</div>

So having a dictionary in a var file, how would I find a value, if I don’t know the list position, but I do know a value of another key:value pair? \` physical\_interface\_list: lan: 1 slave: no route\_list: ip4: 1.1.1…

---

## [Using a defined group\_var over an undefined host\_var (or how to hack variable precedence)](https://forum.ansible.com/t/using-a-defined-group-var-over-an-undefined-host-var-or-how-to-hack-variable-precedence/29288)

<div class="topic-metadata">

**Author:** [@Eric\_Brewer](https://forum.ansible.com/u/Eric_Brewer)\
**Replies:** 3\
**Last updated:** [December 20, 2018, 2:44pm UTC](https://forum.ansible.com/t/using-a-defined-group-var-over-an-undefined-host-var-or-how-to-hack-variable-precedence/29288 "2018-12-20T14:44:32Z")

</div>

I have a scenario where I need to be able to specify to use the group\_vars for a NTP timeserver, unless the host\_vars are defined. All of the variables are going to be coming out of an intermediary document that the cust…

---

## [How to build awx as docker image](https://forum.ansible.com/t/how-to-build-awx-as-docker-image/29280)

<div class="topic-metadata">

**Author:** [@kurrent93](https://forum.ansible.com/u/kurrent93)\
**Replies:** 3\
**Last updated:** [December 20, 2018, 1:48pm UTC](https://forum.ansible.com/t/how-to-build-awx-as-docker-image/29280 "2018-12-20T13:48:40Z")

</div>

Hello In relation to https://groups.google.com/d/msg/awx-project/qc3leFTQjfI/-balnkYJBgAJ - I’m wanting to build a custom docker image, that will have the Openshift python package. This is so I can use the K8s inventor…

---

## [Am newbie to Ansible](https://forum.ansible.com/t/am-newbie-to-ansible/29171)

<div class="topic-metadata">

**Author:** [@mohamed\_salman](https://forum.ansible.com/u/mohamed_salman)\
**Replies:** 1\
**Last updated:** [December 20, 2018, 8:12am UTC](https://forum.ansible.com/t/am-newbie-to-ansible/29171 "2018-12-20T08:12:40Z")

</div>

Hi everyone, I have one doubt in ansible. I Am using ubuntu 16.04 machine. How to create a user ID into MS Office 365 AD using ansible win\_domain\_user module from my machine ?

---

## [Limit and selection of group with dynamic inventory](https://forum.ansible.com/t/limit-and-selection-of-group-with-dynamic-inventory/29304)

<div class="topic-metadata">

**Author:** [@Mehul\_Ved](https://forum.ansible.com/u/Mehul_Ved)\
**Replies:** 0\
**Last updated:** [December 19, 2018, 5:46pm UTC](https://forum.ansible.com/t/limit-and-selection-of-group-with-dynamic-inventory/29304 "2018-12-19T17:46:56Z")

</div>

Hello, I have a setup in google cloud which has been working very well with Ansible. Till last week, we had only one “environment” per machine. Each environment was marked by a network tag which ansible would pick up wh…

---

## [Adding rhn channels via ansible](https://forum.ansible.com/t/adding-rhn-channels-via-ansible/29303)

<div class="topic-metadata">

**Author:** [@Chris\_Bidwell](https://forum.ansible.com/u/Chris_Bidwell)\
**Replies:** 0\
**Last updated:** [December 19, 2018, 5:09pm UTC](https://forum.ansible.com/t/adding-rhn-channels-via-ansible/29303 "2018-12-19T17:09:11Z")

</div>

Hey all, How’s it going? So I’m trying to create a playbook that will add rhn-channels to servers based on both Server/Workstation. Here’s my pb:

---

## [organizing job templates](https://forum.ansible.com/t/organizing-job-templates/29302)

<div class="topic-metadata">

**Author:** [@dmakovey](https://forum.ansible.com/u/dmakovey)\
**Replies:** 0\
**Last updated:** [December 19, 2018, 4:32pm UTC](https://forum.ansible.com/t/organizing-job-templates/29302 "2018-12-19T16:32:45Z")

</div>

as our team generates more and more job templates for AWX we're finding it harder to locate needed template. Labels are nice but there's not "label cloud" or something like that to navigate grouped templates. How are …

---

## [What is the best practice to manage project \`foobar\` uninstall action ?](https://forum.ansible.com/t/what-is-the-best-practice-to-manage-project-foobar-uninstall-action/29272)

<div class="topic-metadata">

**Author:** [@Stephane\_Klein1](https://forum.ansible.com/u/Stephane_Klein1)\
**Replies:** 5\
**Last updated:** [December 19, 2018, 3:54pm UTC](https://forum.ansible.com/t/what-is-the-best-practice-to-manage-project-foobar-uninstall-action/29272 "2018-12-19T15:54:29Z")

</div>

Hi, What is the best practice to manage project foobar uninstall action ? a. Write two playbooks example: foobar\_install.yml and foobar\_uninstall.yml and two roles roles/foobar\_install\_and\_upgrade/... and roles/foobar…

---

## [Create virtual server from CSV](https://forum.ansible.com/t/create-virtual-server-from-csv/29301)

<div class="topic-metadata">

**Author:** [@Sharon\_Day](https://forum.ansible.com/u/Sharon_Day)\
**Replies:** 0\
**Last updated:** [December 19, 2018, 3:54pm UTC](https://forum.ansible.com/t/create-virtual-server-from-csv/29301 "2018-12-19T15:54:27Z")

</div>

I have a requirement to build out a virtual server by parsing the items from a CSV spreadsheet. I have it working if I’m creating a single virtual server, but if I need a virtual server using port 443 and another one usi…

---

## [HELP with getting AWX to see my roles](https://forum.ansible.com/t/help-with-getting-awx-to-see-my-roles/29300)

<div class="topic-metadata">

**Author:** [@Ralphael\_Johnson](https://forum.ansible.com/u/Ralphael_Johnson)\
**Replies:** 2\
**Last updated:** [December 19, 2018, 3:51pm UTC](https://forum.ansible.com/t/help-with-getting-awx-to-see-my-roles/29300 "2018-12-19T15:51:48Z")

</div>

AWX will not see my roles in my repo. Can provide me some material to read or even better just provide some directions on how to get it done lol. I keep seeing something about a requirements.yml but I am unsure if I am u…

---

## [Overriding AWS AMI volume device names?](https://forum.ansible.com/t/overriding-aws-ami-volume-device-names/29299)

<div class="topic-metadata">

**Author:** [@Karl\_Auer](https://forum.ansible.com/u/Karl_Auer)\
**Replies:** 0\
**Last updated:** [December 19, 2018, 1:36pm UTC](https://forum.ansible.com/t/overriding-aws-ami-volume-device-names/29299 "2018-12-19T13:36:19Z")

</div>

Hi there. I have an AMI that was taken from an instance with two EBS volumes, attached to devices /dev/sda1 and xvdb. I want to override the volume device names, and put volumes on (say) xvda and xvdf. (and xvdg, xvdh……

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

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