# Archives

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

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

**Page:** 315

---

## [Email Module Failure on Ansible](https://forum.ansible.com/t/email-module-failure-on-ansible/29626)

<div class="topic-metadata">

**Author:** [@CK\_LZEM7](https://forum.ansible.com/u/CK_LZEM7)\
**Replies:** 0\
**Last updated:** [February 6, 2019, 4:33am UTC](https://forum.ansible.com/t/email-module-failure-on-ansible/29626 "2019-02-06T04:33:36Z")

</div>

I have set up an ansible tower using the following docker image \*\*ybalt/ansible-tower:\*\*\*\*latest\*\* After setting up I have upgraded the applications inside the container by \*\*apt-get upgrade\*\* After that following a…

---

## [Create new Inventory --- add extra vars by default](https://forum.ansible.com/t/create-new-inventory-add-extra-vars-by-default/29625)

<div class="topic-metadata">

**Author:** [@Sindhuja\_Koneru](https://forum.ansible.com/u/Sindhuja_Koneru)\
**Replies:** 3\
**Last updated:** [February 6, 2019, 2:16am UTC](https://forum.ansible.com/t/create-new-inventory-add-extra-vars-by-default/29625 "2019-02-06T02:16:37Z")

</div>

Hi, Is below possible in Ansible, please guide? When creating a new Ansible inventory, is it possible to make any config settings in tower such that it auto populates EXTRA VARS. Idea is that user should not update th…

---

## [how to invoke an ansible module which accepts a variable set of parameters](https://forum.ansible.com/t/how-to-invoke-an-ansible-module-which-accepts-a-variable-set-of-parameters/29624)

<div class="topic-metadata">

**Author:** [@Chris7444](https://forum.ansible.com/u/Chris7444)\
**Replies:** 0\
**Last updated:** [February 5, 2019, 9:56pm UTC](https://forum.ansible.com/t/how-to-invoke-an-ansible-module-which-accepts-a-variable-set-of-parameters/29624 "2019-02-05T21:56:35Z")

</div>

Hi I want to invoke a module wich accepts an attribute osCustomAttributes which takes a variable set of properties (sorry if the wording is not the correct one for yaml) Example below. All the names under osCustomAttri…

---

## [Ansible-pull for windows](https://forum.ansible.com/t/ansible-pull-for-windows/29623)

<div class="topic-metadata">

**Author:** [@Subhi\_Andrews](https://forum.ansible.com/u/Subhi_Andrews)\
**Replies:** 0\
**Last updated:** [February 5, 2019, 9:56pm UTC](https://forum.ansible.com/t/ansible-pull-for-windows/29623 "2019-02-05T21:56:29Z")

</div>

Are there any plans to bring ansible-pull to windows? Thanks, Subhi.

---

## [i really dont know how to fix this error](https://forum.ansible.com/t/i-really-dont-know-how-to-fix-this-error/29622)

<div class="topic-metadata">

**Author:** [@Luis\_Renato\_Gazolla](https://forum.ansible.com/u/Luis_Renato_Gazolla)\
**Replies:** 1\
**Last updated:** [February 5, 2019, 7:45pm UTC](https://forum.ansible.com/t/i-really-dont-know-how-to-fix-this-error/29622 "2019-02-05T19:45:06Z")

</div>

i got this error when i try to set permissions in a folders in many servers using ansible "FAILED! =\> {“changed”: false, “module\_stderr”: “Shared connection to 10.0.0.12 closed.\\r\\n”, “module\_stdout”: “Traceback (most r…

---

## [ansible hosts and user](https://forum.ansible.com/t/ansible-hosts-and-user/29619)

<div class="topic-metadata">

**Author:** [@ryad9200000](https://forum.ansible.com/u/ryad9200000)\
**Replies:** 1\
**Last updated:** [February 5, 2019, 1:51pm UTC](https://forum.ansible.com/t/ansible-hosts-and-user/29619 "2019-02-05T13:51:28Z")

</div>

Hy, How to make that when one executes a playbook with a host parameter, ansible only recovers part of the host name as user. Example: ansible-playbook playbook.yml -l “hostuser1” i want ansible to dynamically use us…

---

## [Ansible service not work](https://forum.ansible.com/t/ansible-service-not-work/29611)

<div class="topic-metadata">

**Author:** [@ryad9200000](https://forum.ansible.com/u/ryad9200000)\
**Replies:** 3\
**Last updated:** [February 5, 2019, 1:51pm UTC](https://forum.ansible.com/t/ansible-service-not-work/29611 "2019-02-05T13:51:02Z")

</div>

Hy, I want start one service with next command in ansible : - name: Start service httpd, if not started service: name: httpd state: started This task not work even with line command become: yes ! on the othe…

---

## [Limit forks per organization AWX 1.0.6.8](https://forum.ansible.com/t/limit-forks-per-organization-awx-1-0-6-8/29529)

<div class="topic-metadata">

**Author:** [@Tomas\_Piantanida](https://forum.ansible.com/u/Tomas_Piantanida)\
**Replies:** 5\
**Last updated:** [February 5, 2019, 1:39pm UTC](https://forum.ansible.com/t/limit-forks-per-organization-awx-1-0-6-8/29529 "2019-02-05T13:39:03Z")

</div>

Hi all, In my team we are trying to limit the amount of forks that a given organization would be able to use when running a job. Our main goal is to share AWX with other teams. The problem is that whenever a job is bei…

---

## [How do I read/ use Ansible tower credentials (machine/ network/ Vault/ Source Control)?](https://forum.ansible.com/t/how-do-i-read-use-ansible-tower-credentials-machine-network-vault-source-control/29541)

<div class="topic-metadata">

**Author:** [@Saravanan](https://forum.ansible.com/u/Saravanan)\
**Replies:** 2\
**Last updated:** [February 5, 2019, 12:28pm UTC](https://forum.ansible.com/t/how-do-i-read-use-ansible-tower-credentials-machine-network-vault-source-control/29541 "2019-02-05T12:28:46Z")

</div>

Hi Ansible Experts, This question is more relevant to Ansible Tower. Can someone help to read the Ansible tower credentials in Playbook? We have created machine type credential called sampleCredential and password for…

---

## [ios\_facts module, add bytes total and bytes free](https://forum.ansible.com/t/ios-facts-module-add-bytes-total-and-bytes-free/29599)

<div class="topic-metadata">

**Author:** [@Brian\_Koch](https://forum.ansible.com/u/Brian_Koch)\
**Replies:** 2\
**Last updated:** [February 5, 2019, 12:01pm UTC](https://forum.ansible.com/t/ios-facts-module-add-bytes-total-and-bytes-free/29599 "2019-02-05T12:01:34Z")

</div>

I’m not much of a python developer, but i’m using ansible now for upgrading IOS devices. One thing that would be helpful would if ios\_facts could also gather the flash memory total and free bytes: EX: Directory of fla…

---

## [scaleway inventory plugin does not list some (not running) hosts](https://forum.ansible.com/t/scaleway-inventory-plugin-does-not-list-some-not-running-hosts/29620)

<div class="topic-metadata">

**Author:** [@Oleg\_Semyonov](https://forum.ansible.com/u/Oleg_Semyonov)\
**Replies:** 0\
**Last updated:** [February 5, 2019, 11:01am UTC](https://forum.ansible.com/t/scaleway-inventory-plugin-does-not-list-some-not-running-hosts/29620 "2019-02-05T11:01:22Z")

</div>

I am trying to use scaleway dynamic inventory plugin with scaleway module to manage cloud VPS farm. The desired workflow is: \[inv:localhost\] - add VPS host to scaleway via scaleway\_compute module (state: running, wait:…

---

## [ansible k8s module failing to connect to cluster with 503](https://forum.ansible.com/t/ansible-k8s-module-failing-to-connect-to-cluster-with-503/29618)

<div class="topic-metadata">

**Author:** [@Alon\_Nisser](https://forum.ansible.com/u/Alon_Nisser)\
**Replies:** 2\
**Last updated:** [February 5, 2019, 7:27am UTC](https://forum.ansible.com/t/ansible-k8s-module-failing-to-connect-to-cluster-with-503/29618 "2019-02-05T07:27:06Z")

</div>

I’m trying to use ansible new k8s module (based ok k8\_raw from 2.6) to maintain an aks k8 cluster. While I can work with the cluster with kubectl , any command with the k8s cluster fails with a 503 error. For example th…

---

## [Ansible Project](https://forum.ansible.com/t/ansible-project/29617)

<div class="topic-metadata">

**Author:** [@Siva\_Sundari](https://forum.ansible.com/u/Siva_Sundari)\
**Replies:** 0\
**Last updated:** [February 5, 2019, 6:31am UTC](https://forum.ansible.com/t/ansible-project/29617 "2019-02-05T06:31:20Z")

</div>

www.ansible.com. In computing, Ansible is an open-source software provisioning, configuration management, and application deployment tool. It runs on many Unix-like systems, and can configure both Unix-like systems as we…

---

## [pause in loop-control](https://forum.ansible.com/t/pause-in-loop-control/29616)

<div class="topic-metadata">

**Author:** [@Dmitriy\_Trubov](https://forum.ansible.com/u/Dmitriy_Trubov)\
**Replies:** 0\
**Last updated:** [February 5, 2019, 2:39am UTC](https://forum.ansible.com/t/pause-in-loop-control/29616 "2019-02-05T02:39:33Z")

</div>

HI, here is code: name: Wait MainStatus Playbook 5 vars: cosId: “{{realCosId}}” jsonStatus: {“status”:‘in-progress’} hosts: all tasks: name: Debug debug: msg: “{{jsonStatus.status}}” include\_tasks: waitt…

---

## [long nasty filter chain](https://forum.ansible.com/t/long-nasty-filter-chain/29615)

<div class="topic-metadata">

**Author:** [@Luca\_Cazzaniga](https://forum.ansible.com/u/Luca_Cazzaniga)\
**Replies:** 0\
**Last updated:** [February 5, 2019, 2:39am UTC](https://forum.ansible.com/t/long-nasty-filter-chain/29615 "2019-02-05T02:39:21Z")

</div>

Hi all I’ve some variables scattered in my roles dirs: fstype: \[ ‘xfs’, ‘ext4’, ‘ext3’, ‘btrfs’, ‘ufs’ \] #enable check on all partition of the listed types default\_limit: { limit: 90, unit: ‘%’ } mountpoints: { moun…

---

## [How to run a playbook or command against AWS](https://forum.ansible.com/t/how-to-run-a-playbook-or-command-against-aws/29613)

<div class="topic-metadata">

**Author:** [@Ed\_Greenberg](https://forum.ansible.com/u/Ed_Greenberg)\
**Replies:** 1\
**Last updated:** [February 4, 2019, 6:23pm UTC](https://forum.ansible.com/t/how-to-run-a-playbook-or-command-against-aws/29613 "2019-02-04T18:23:03Z")

</div>

So I have my AWS ACCESS and SECRET keys sitting in environment variables. I have Ansible working, and BOTO installed. I have this little playbook:

---

## [Is there a way to get current task name?](https://forum.ansible.com/t/is-there-a-way-to-get-current-task-name/29524)

<div class="topic-metadata">

**Author:** [@Lionel\_Felicite](https://forum.ansible.com/u/Lionel_Felicite)\
**Replies:** 3\
**Last updated:** [February 4, 2019, 4:53pm UTC](https://forum.ansible.com/t/is-there-a-way-to-get-current-task-name/29524 "2019-02-04T16:53:43Z")

</div>

Hi all, Is there a way to get the current task name? With this example plyabook, I got an undefined “name” variable hosts: all tasks: name: Dump all vars debug: msg: “echo task name is {{ name }}” Error mess…

---

## [Where to provide module facts](https://forum.ansible.com/t/where-to-provide-module-facts/29612)

<div class="topic-metadata">

**Author:** [@Christian\_Sandrini](https://forum.ansible.com/u/Christian_Sandrini)\
**Replies:** 0\
**Last updated:** [February 4, 2019, 4:19pm UTC](https://forum.ansible.com/t/where-to-provide-module-facts/29612 "2019-02-04T16:19:35Z")

</div>

Hi I am new to Ansible module development and would like to create a few modules to control a HP Serviceguard cluster. The 2 main resources that can be controlled are packages and nodes. I plan to create 2 modules for …

---

## [Dynamicly finding a disk](https://forum.ansible.com/t/dynamicly-finding-a-disk/29610)

<div class="topic-metadata">

**Author:** [@Keif\_Gwinn1](https://forum.ansible.com/u/Keif_Gwinn1)\
**Replies:** 0\
**Last updated:** [February 4, 2019, 2:58pm UTC](https://forum.ansible.com/t/dynamicly-finding-a-disk/29610 "2019-02-04T14:58:06Z")

</div>

Hi, I’m trying to dynamically identify a disk based on the device Ids {“ids”: { “sda”: \[“google-persistent-disk-0”, “scsi-0Google\_PersistentDisk\_persistent-disk-0”\], “sda1”: \[“google-persistent-disk-0-part1”,“scsi-0G…

---

## [Email error from playbook run](https://forum.ansible.com/t/email-error-from-playbook-run/29609)

<div class="topic-metadata">

**Author:** [@Josh\_B](https://forum.ansible.com/u/Josh_B)\
**Replies:** 0\
**Last updated:** [February 4, 2019, 2:49pm UTC](https://forum.ansible.com/t/email-error-from-playbook-run/29609 "2019-02-04T14:49:34Z")

</div>

Hello, I am looking at a way to use the send mail template to send me the actual error in the playbook run. I have created a workflow in AWX and after my post, I have an email going out if the server is created successf…

---

## [Defined variable when value different](https://forum.ansible.com/t/defined-variable-when-value-different/29597)

<div class="topic-metadata">

**Author:** [@Rafael\_Tomelin](https://forum.ansible.com/u/Rafael_Tomelin)\
**Replies:** 7\
**Last updated:** [February 4, 2019, 1:21pm UTC](https://forum.ansible.com/t/defined-variable-when-value-different/29597 "2019-02-04T13:21:46Z")

</div>

Hi, How defined variable value when other variable for different the 1. Exemplo vars: networkinterface\_number: 1 name: Create network interface azure\_rm\_networkinterface: name: “interface{{networkinterface\_number…

---

## [Configure the ssh connection plugin to add ssh proxy and user information to the hostname when connecting](https://forum.ansible.com/t/configure-the-ssh-connection-plugin-to-add-ssh-proxy-and-user-information-to-the-hostname-when-connecting/29581)

<div class="topic-metadata">

**Author:** [@Urs\_Lamprecht](https://forum.ansible.com/u/Urs_Lamprecht)\
**Replies:** 1\
**Last updated:** [February 4, 2019, 1:13pm UTC](https://forum.ansible.com/t/configure-the-ssh-connection-plugin-to-add-ssh-proxy-and-user-information-to-the-hostname-when-connecting/29581 "2019-02-04T13:13:34Z")

</div>

We are forced to use CyberArc PSM Proxy which describes itself as a “ssh proxy”. For what I know this is not a jump host / bastion host solution ! I can not access my target servers directly, the only open ssh port is th…

---

## [Error while executing my PB](https://forum.ansible.com/t/error-while-executing-my-pb/29608)

<div class="topic-metadata">

**Author:** [@Zaineb\_Masmoudi](https://forum.ansible.com/u/Zaineb_Masmoudi)\
**Replies:** 2\
**Last updated:** [February 4, 2019, 9:43am UTC](https://forum.ansible.com/t/error-while-executing-my-pb/29608 "2019-02-04T09:43:45Z")

</div>

Hi all, I’m facing this error while I’m executing my PB: TASK \[Exchange intersec keys between servers\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*…

---

## [Non zero return code error | Sophos Installation | Windows](https://forum.ansible.com/t/non-zero-return-code-error-sophos-installation-windows/29606)

<div class="topic-metadata">

**Author:** [@yyellapragada](https://forum.ansible.com/u/yyellapragada)\
**Replies:** 1\
**Last updated:** [February 4, 2019, 4:43am UTC](https://forum.ansible.com/t/non-zero-return-code-error-sophos-installation-windows/29606 "2019-02-04T04:43:28Z")

</div>

Hey Team, Please see the error in the screenshot. I get an error that has no useful information to debug, to the best of my knowledge. Might be I am missing something which I was hoping you can help me find. Please …

---

## [How to handle host unreachable error in a playbook](https://forum.ansible.com/t/how-to-handle-host-unreachable-error-in-a-playbook/29607)

<div class="topic-metadata">

**Author:** [@Saravanan](https://forum.ansible.com/u/Saravanan)\
**Replies:** 0\
**Last updated:** [February 4, 2019, 3:10am UTC](https://forum.ansible.com/t/how-to-handle-host-unreachable-error-in-a-playbook/29607 "2019-02-04T03:10:42Z")

</div>

Hi Ansible Experts, We would need to check the fail-over check of remote servers in the beginning of the play and delegate them during the play execution when its reachable. \`

---

## [jinja2 template with dictionary](https://forum.ansible.com/t/jinja2-template-with-dictionary/29605)

<div class="topic-metadata">

**Author:** [@Ashok1](https://forum.ansible.com/u/Ashok1)\
**Replies:** 0\
**Last updated:** [February 3, 2019, 10:06pm UTC](https://forum.ansible.com/t/jinja2-template-with-dictionary/29605 "2019-02-03T22:06:47Z")

</div>

I have the following dict: syslog\_clients: mailout: hosts: “\[ ‘10.5.10.111’, ‘10.5.10.112’, ‘10.5.10.11’ \]” destinations: destination: ‘/logs/mail/mail.log’ apache: hosts: “\[ ‘10.5.13.24’, ‘10.5.13.25’, ‘10.5.…

---

## [set\_fact with\_items inside var](https://forum.ansible.com/t/set-fact-with-items-inside-var/29604)

<div class="topic-metadata">

**Author:** [@Tony\_Owens](https://forum.ansible.com/u/Tony_Owens)\
**Replies:** 2\
**Last updated:** [February 3, 2019, 8:21pm UTC](https://forum.ansible.com/t/set-fact-with-items-inside-var/29604 "2019-02-03T20:21:12Z")

</div>

I need to add an item to a list. This works: name: “Build Pool IP List” set\_fact: pool\_server\_ips\_list: “{{pool\_server\_ips\_list}} + \[{‘ip’: {‘addr’: item, ‘type’: ‘V4’}}\]” with\_items: “{{pool\_server\_ips}}” with thi…

---

## [Install and Configure Gluster File System](https://forum.ansible.com/t/install-and-configure-gluster-file-system/29603)

<div class="topic-metadata">

**Author:** [@Ameya\_Agashe](https://forum.ansible.com/u/Ameya_Agashe)\
**Replies:** 1\
**Last updated:** [February 3, 2019, 1:18pm UTC](https://forum.ansible.com/t/install-and-configure-gluster-file-system/29603 "2019-02-03T13:18:16Z")

</div>

Hi Guys, I’m not sure why the below yaml gives me an error ? name: Install Gluster and create file system on Cluster hosts: localhost connection: local tasks: name: create gluster volume gluster\_volume: state: pr…

---

## [loop over dict2items](https://forum.ansible.com/t/loop-over-dict2items/29602)

<div class="topic-metadata">

**Author:** [@Luca\_Cazzaniga](https://forum.ansible.com/u/Luca_Cazzaniga)\
**Replies:** 1\
**Last updated:** [February 2, 2019, 7:03pm UTC](https://forum.ansible.com/t/loop-over-dict2items/29602 "2019-02-02T19:03:23Z")

</div>

Hi all, trying the following playbook taken from user\_guide/playbooks\_loops.html - hosts: localhost tasks: - name: create a tag dictionary of non-empty tags set\_fact: tags\_dict: "{{ (tags\_dict|default({})…

---

## [Does Ansible prevent 2 Tasks from modifying the same part of a system?(thus, Task 2 undoing what Task 1 did)](https://forum.ansible.com/t/does-ansible-prevent-2-tasks-from-modifying-the-same-part-of-a-system-thus-task-2-undoing-what-task-1-did/29530)

<div class="topic-metadata">

**Author:** [@Sylvain\_Martel](https://forum.ansible.com/u/Sylvain_Martel)\
**Replies:** 2\
**Last updated:** [February 2, 2019, 1:27pm UTC](https://forum.ansible.com/t/does-ansible-prevent-2-tasks-from-modifying-the-same-part-of-a-system-thus-task-2-undoing-what-task-1-did/29530 "2019-02-02T13:27:38Z")

</div>

Hi, We are new to using ansible, and I saw something while going through our early code that had me worried. I have CoderA and CoderB that are starting to create roles and tasks. In one Task, coderA adds IIS features, b…

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

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