# Archives

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

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

**Page:** 325

---

## [How to access stdout from all hosts in a localserver](https://forum.ansible.com/t/how-to-access-stdout-from-all-hosts-in-a-localserver/29327)

<div class="topic-metadata">

**Author:** [@madhav\_manne](https://forum.ansible.com/u/madhav_manne)\
**Replies:** 1\
**Last updated:** [December 26, 2018, 10:14am UTC](https://forum.ansible.com/t/how-to-access-stdout-from-all-hosts-in-a-localserver/29327 "2018-12-26T10:14:08Z")

</div>

My playbook is as follows hosts: nodes become: yes tasks: name: Run Shell Script to get IPs with 4xx and 5xx errors script: /home/ubuntu/ips.sh args: chdir: /home/ubuntu register: ips name: shell: echo “{{ hos…

---

## [Vault : ordinal not in range](https://forum.ansible.com/t/vault-ordinal-not-in-range/29318)

<div class="topic-metadata">

**Author:** [@YvanM](https://forum.ansible.com/u/YvanM)\
**Replies:** 3\
**Last updated:** [December 26, 2018, 9:28am UTC](https://forum.ansible.com/t/vault-ordinal-not-in-range/29318 "2018-12-26T09:28:09Z")

</div>

Hi, I am using Ansible from a Debian testing host. Each time I try to use a vault file it makes Ansible crash. The content of the vault file is really simple: dyndns\_pwd: 1234 smtpd\_pwd: 1234 I am sure that it contain…

---

## [Error when precheck Kolla-ansible](https://forum.ansible.com/t/error-when-precheck-kolla-ansible/29328)

<div class="topic-metadata">

**Author:** [@M\_nh\_Nguy\_n\_Ti\_n](https://forum.ansible.com/u/M_nh_Nguy_n_Ti_n)\
**Replies:** 0\
**Last updated:** [December 26, 2018, 4:41am UTC](https://forum.ansible.com/t/error-when-precheck-kolla-ansible/29328 "2018-12-26T04:41:53Z")

</div>

Hi everyone I am facing this problem when precheck with Kolla-ansible. My IP: controller 172.16.32.16. compute-01: 172.16.32.15, compute-02:172.16.32.14 Please help me. Thank a lot! fatal: \[172.16.32.15\]: FAILED! =\> …

---

## [How to cancel pending Ansible Tower jobs dynamically](https://forum.ansible.com/t/how-to-cancel-pending-ansible-tower-jobs-dynamically/29326)

<div class="topic-metadata">

**Author:** [@Saravanan](https://forum.ansible.com/u/Saravanan)\
**Replies:** 0\
**Last updated:** [December 25, 2018, 6:44pm UTC](https://forum.ansible.com/t/how-to-cancel-pending-ansible-tower-jobs-dynamically/29326 "2018-12-25T18:44:26Z")

</div>

Hi Ansible Experts, This question is more relevant to Ansible Tower. We are running multiple Ansible Job templates with different scheduler in Ansible Tower. Sometime few jobs are pending, causes other jobs in the queu…

---

## [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 …

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

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