# Ansible Developer

**URL:** https://forum.ansible.com/c/archives/ansible-developer/29.md?page=27

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

**Page:** 28

---

## [Ansible Modules](https://forum.ansible.com/t/ansible-modules/29807)

<div class="topic-metadata">

**Author:** [@Sebastian\_Zenobio](https://forum.ansible.com/u/Sebastian_Zenobio)\
**Replies:** 3\
**Last updated:** [March 2, 2019, 1:23pm UTC](https://forum.ansible.com/t/ansible-modules/29807 "2019-03-02T13:23:56Z")

</div>

Hi guys! I wrote a small code inside modules and all is good. The only problem that I have, is when I want to print some message on the tasks (informational). For example: if I have a for inside my code I want that on…

---

## [how to convert textarea in ansible tower survey into a list of dictionary in playbook](https://forum.ansible.com/t/how-to-convert-textarea-in-ansible-tower-survey-into-a-list-of-dictionary-in-playbook/29725)

<div class="topic-metadata">

**Author:** [@Xiangli\_Li](https://forum.ansible.com/u/Xiangli_Li)\
**Replies:** 2\
**Last updated:** [March 1, 2019, 2:44pm UTC](https://forum.ansible.com/t/how-to-convert-textarea-in-ansible-tower-survey-into-a-list-of-dictionary-in-playbook/29725 "2019-03-01T14:44:47Z")

</div>

Hello, I am new to ansible tower, and I am trying to migrate my playbooks into ansible tower environment. in my playbook, I have variable like db\_list: { dbid: 1, dbname: abc} { dbid: 2, dbname: xyz} in tower surve…

---

## [Ansible at command usage](https://forum.ansible.com/t/ansible-at-command-usage/29789)

<div class="topic-metadata">

**Author:** [@Sreenivas\_Reddy](https://forum.ansible.com/u/Sreenivas_Reddy)\
**Replies:** 1\
**Last updated:** [February 27, 2019, 8:55pm UTC](https://forum.ansible.com/t/ansible-at-command-usage/29789 "2019-02-27T20:55:26Z")

</div>

I want to execute my playbooks on scheduled basis. i used ansible at module for this. below is the sample playbook running git version for testing purpose.

---

## [why i cannot remove this file /etc/yum.repos.d/redhat-rhui,repo even with the root permission.](https://forum.ansible.com/t/why-i-cannot-remove-this-file-etc-yum-repos-d-redhat-rhui-repo-even-with-the-root-permission/29738)

<div class="topic-metadata">

**Author:** [@Jason\_Yu](https://forum.ansible.com/u/Jason_Yu)\
**Replies:** 5\
**Last updated:** [February 22, 2019, 10:54pm UTC](https://forum.ansible.com/t/why-i-cannot-remove-this-file-etc-yum-repos-d-redhat-rhui-repo-even-with-the-root-permission/29738 "2019-02-22T22:54:27Z")

</div>

I got the following error when I tried to remove the /etc/yum.repos.d/redhat-rhui.repo file. My playbook is as following: name: Configure BASE Linux Servers hosts: linux gather\_facts: true become: yes become\_user: …

---

## [Getting error when trying to get 2 variables in vars\_prompt](https://forum.ansible.com/t/getting-error-when-trying-to-get-2-variables-in-vars-prompt/29745)

<div class="topic-metadata">

**Author:** [@Kendon\_Emmons](https://forum.ansible.com/u/Kendon_Emmons)\
**Replies:** 1\
**Last updated:** [February 22, 2019, 2:24pm UTC](https://forum.ansible.com/t/getting-error-when-trying-to-get-2-variables-in-vars-prompt/29745 "2019-02-22T14:24:25Z")

</div>

I am trying to get two variables in my vars\_prompt, for username and password. My playbook currently looks like this: \`

---

## [How to configure windows server with ansible using yml](https://forum.ansible.com/t/how-to-configure-windows-server-with-ansible-using-yml/29718)

<div class="topic-metadata">

**Author:** [@rajendar\_t](https://forum.ansible.com/u/rajendar_t)\
**Replies:** 1\
**Last updated:** [February 20, 2019, 5:56pm UTC](https://forum.ansible.com/t/how-to-configure-windows-server-with-ansible-using-yml/29718 "2019-02-20T17:56:49Z")

</div>

Hi All, 1)How to turn off IE enhanced security using ansible 2) is there any I can configure user account in Windows server by using yml Thanks Rajedar

---

## [Want to know ansible keyword](https://forum.ansible.com/t/want-to-know-ansible-keyword/29598)

<div class="topic-metadata">

**Author:** [@PREM\_PRATAP](https://forum.ansible.com/u/PREM_PRATAP)\
**Replies:** 2\
**Last updated:** [February 19, 2019, 11:11pm UTC](https://forum.ansible.com/t/want-to-know-ansible-keyword/29598 "2019-02-19T23:11:17Z")

</div>

Sir if someone change the content of a copied file on a remote machine then if i copy it again it will change the content . What this feature of ansible is called?

---

## [New GCP Magic Module Contirbution](https://forum.ansible.com/t/new-gcp-magic-module-contirbution/29706)

<div class="topic-metadata">

**Author:** [@sagar\_mache](https://forum.ansible.com/u/sagar_mache)\
**Replies:** 1\
**Last updated:** [February 19, 2019, 3:00pm UTC](https://forum.ansible.com/t/new-gcp-magic-module-contirbution/29706 "2019-02-19T15:00:33Z")

</div>

Hi, I have created one GCP magic module for Ansible, I would like to contribute this module to the community. Can anybody know the exact contribution procedure for raising of pull request. Thanks, Sagar Mache

---

## [Should we drop Fedora rpms from https://releases.ansible.com/ ?](https://forum.ansible.com/t/should-we-drop-fedora-rpms-from-https-releases-ansible-com/29703)

<div class="topic-metadata">

**Author:** [@tkuratom](https://forum.ansible.com/u/tkuratom)\
**Replies:** 0\
**Last updated:** [February 19, 2019, 1:48am UTC](https://forum.ansible.com/t/should-we-drop-fedora-rpms-from-https-releases-ansible-com/29703 "2019-02-19T01:48:14Z")

</div>

Hey all, I just sent an email to ansible-project, requesting feedback on the idea of dropping Fedora builds from https://releases.ansible.com/ (The Fedora Project itself would still provide rpms in their repositories…

---

## [Recent changes about default labeling](https://forum.ansible.com/t/recent-changes-about-default-labeling/29699)

<div class="topic-metadata">

**Author:** [@mperina](https://forum.ansible.com/u/mperina)\
**Replies:** 3\
**Last updated:** [February 18, 2019, 6:23pm UTC](https://forum.ansible.com/t/recent-changes-about-default-labeling/29699 "2019-02-18T18:23:39Z")

</div>

Hi, I’m one of oVirt modules maintainers and and we were using “ovirt” label to filter issues related to oVirt Ansible modules \[1\]. Today I’ve found out that “ovirt” label doesn’t exist anymore and instead all issues a…

---

## [win\_command with become still doesn't seem to work](https://forum.ansible.com/t/win-command-with-become-still-doesnt-seem-to-work/29677)

<div class="topic-metadata">

**Author:** [@Mike\_V](https://forum.ansible.com/u/Mike_V)\
**Replies:** 4\
**Last updated:** [February 15, 2019, 3:15pm UTC](https://forum.ansible.com/t/win-command-with-become-still-doesnt-seem-to-work/29677 "2019-02-15T15:15:30Z")

</div>

Hi, I’m trying to remotely install visual studios. I’ve staged the installation file locally and able install if logged in with local admin account. Failed attempt #1 win\_command: c:\\stage\\vs\_Enterprise.exe --add Micr…

---

## [Thu 21st Feb - Big PR review for Ansible hackathon](https://forum.ansible.com/t/thu-21st-feb-big-pr-review-for-ansible-hackathon/29679)

<div class="topic-metadata">

**Author:** [@gundalow](https://forum.ansible.com/u/gundalow)\
**Replies:** 0\
**Last updated:** [February 14, 2019, 9:59am UTC](https://forum.ansible.com/t/thu-21st-feb-big-pr-review-for-ansible-hackathon/29679 "2019-02-14T09:59:14Z")

</div>

Ansible is a very popular project by any metric. Our delightful community contributes numerous Pull Requests (PRs) every month. Unfortunately, the volume of incoming PRs means contributors often have to wait days, weeks,…

---

## [local or remote execution](https://forum.ansible.com/t/local-or-remote-execution/29676)

<div class="topic-metadata">

**Author:** [@Dmitriy\_Trubov](https://forum.ansible.com/u/Dmitriy_Trubov)\
**Replies:** 2\
**Last updated:** [February 14, 2019, 6:42am UTC](https://forum.ansible.com/t/local-or-remote-execution/29676 "2019-02-14T06:42:14Z")

</div>

Hi, I have ansible task shell: “python task.py” register: result until: result.stdout.find(“in-progress”)==-1 retries: 7 delay: 20 python module executed remotely on target host. Where is executed verification o…

---

## [Ansible Template Module Backup - Manage Number of Backup Copies](https://forum.ansible.com/t/ansible-template-module-backup-manage-number-of-backup-copies/29460)

<div class="topic-metadata">

**Author:** [@Daniel\_LeBlanc](https://forum.ansible.com/u/Daniel_LeBlanc)\
**Replies:** 1\
**Last updated:** [February 14, 2019, 6:18am UTC](https://forum.ansible.com/t/ansible-template-module-backup-manage-number-of-backup-copies/29460 "2019-02-14T06:18:25Z")

</div>

Hello. I am using the Ansible template module and create a backup file each change that is pushed. Over time these backup files become large in number as more and more changes are pushed out. In my case it only makes se…

---

## [FAILED RETRYING message in until loop](https://forum.ansible.com/t/failed-retrying-message-in-until-loop/29664)

<div class="topic-metadata">

**Author:** [@Dmitriy\_Trubov](https://forum.ansible.com/u/Dmitriy_Trubov)\
**Replies:** 0\
**Last updated:** [February 12, 2019, 11:55pm UTC](https://forum.ansible.com/t/failed-retrying-message-in-until-loop/29664 "2019-02-12T23:55:40Z")

</div>

Hi, I use until command and got message TASK \[shell\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* FAILED -…

---

## [RFC: jq filter](https://forum.ansible.com/t/rfc-jq-filter/29577)

<div class="topic-metadata">

**Author:** [@moreati](https://forum.ansible.com/u/moreati)\
**Replies:** 6\
**Last updated:** [February 11, 2019, 8:11pm UTC](https://forum.ansible.com/t/rfc-jq-filter/29577 "2019-02-11T20:11:39Z")

</div>

Abstract I would like to contribute a new jq() filter to Ansible, exposing the jq expression language. This would complement the existing json\_query() filter, based on jmespath expressions. I wanted to see if such a fil…

---

## [using groups\_vars in INVENTORY](https://forum.ansible.com/t/using-groups-vars-in-inventory/29321)

<div class="topic-metadata">

**Author:** [@aidewuado](https://forum.ansible.com/u/aidewuado)\
**Replies:** 6\
**Last updated:** [February 11, 2019, 1:20pm UTC](https://forum.ansible.com/t/using-groups-vars-in-inventory/29321 "2019-02-11T13:20:16Z")

</div>

Hello comunity I’m trying to set up “group\_vars” in inventory, but for some reason it does not work. I’ve tried with .ini and .yml files, in both I get the same error: \` ERROR! failed to combine variables, expected d…

---

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

---

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

---

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

---

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

---

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

---

## [Help with mongodb\_replicaset PR requested](https://forum.ansible.com/t/help-with-mongodb-replicaset-pr-requested/29601)

<div class="topic-metadata">

**Author:** [@rhysmeister](https://forum.ansible.com/u/rhysmeister)\
**Replies:** 0\
**Last updated:** [February 2, 2019, 9:01am UTC](https://forum.ansible.com/t/help-with-mongodb-replicaset-pr-requested/29601 "2019-02-02T09:01:35Z")

</div>

Hello, I’d like to ask for a little help getting a PR accepted… https://github.com/ansible/ansible/pull/49690 This has already been reviewed and I have made changes based on that feedback. I have already had a PR for …

---

## [import task in loop](https://forum.ansible.com/t/import-task-in-loop/29585)

<div class="topic-metadata">

**Author:** [@Dmitriy\_Trubov](https://forum.ansible.com/u/Dmitriy_Trubov)\
**Replies:** 0\
**Last updated:** [February 1, 2019, 12:50am UTC](https://forum.ansible.com/t/import-task-in-loop/29585 "2019-02-01T00:50:31Z")

</div>

Hi, I want to execute certain tasks in loop until some condition satisfied. Here is main module: name: Wait MainStatus Playbook vars: cosId: “{{realCosId}}” jsonStatus: {“status”:‘in-progress’} hosts: all tasks: …

---

## [Conditional Statements help](https://forum.ansible.com/t/conditional-statements-help/29583)

<div class="topic-metadata">

**Author:** [@Alan\_Harkleroad](https://forum.ansible.com/u/Alan_Harkleroad)\
**Replies:** 0\
**Last updated:** [January 31, 2019, 8:34pm UTC](https://forum.ansible.com/t/conditional-statements-help/29583 "2019-01-31T20:34:23Z")

</div>

Right now I am trying to have a role execute a function if the condition is host a or b, and before that only complete the previous task if its not a or b. The problem I am having with the below is that is never reads t…

---

## [New module being not merged since monthes, a year now... PR #3483](https://forum.ansible.com/t/new-module-being-not-merged-since-monthes-a-year-now-pr-3483/29498)

<div class="topic-metadata">

**Author:** [@pascalheraud73](https://forum.ansible.com/u/pascalheraud73)\
**Replies:** 1\
**Last updated:** [January 30, 2019, 5:13pm UTC](https://forum.ansible.com/t/new-module-being-not-merged-since-monthes-a-year-now-pr-3483/29498 "2019-01-30T17:13:46Z")

</div>

Hello, I’m still looking for a mean to get this PR merged : https://github.com/ansible/ansible/pull/34837 It has been submitted one year ago now. We are using the module in production, all checks passed. I read Ansi…

---

## [My ansible playbook is very slow since couple of days and hangs alot while execution.](https://forum.ansible.com/t/my-ansible-playbook-is-very-slow-since-couple-of-days-and-hangs-alot-while-execution/29553)

<div class="topic-metadata">

**Author:** [@neelam\_poonawala](https://forum.ansible.com/u/neelam_poonawala)\
**Replies:** 1\
**Last updated:** [January 30, 2019, 5:05pm UTC](https://forum.ansible.com/t/my-ansible-playbook-is-very-slow-since-couple-of-days-and-hangs-alot-while-execution/29553 "2019-01-30T17:05:38Z")

</div>

Any suggestions how do I fix it? I do have this in my ansible.cfg file \[defaults\] roles\_path = ./roles host\_key\_checking = False \[ssh\_connection\] pipelining = True control\_path = /tmp/ansible-ssh-%%h-%%p-%%r

---

## [Import module error: ansible.utils.display](https://forum.ansible.com/t/import-module-error-ansible-utils-display/29559)

<div class="topic-metadata">

**Author:** [@Andrew\_Klychkov](https://forum.ansible.com/u/Andrew_Klychkov)\
**Replies:** 2\
**Last updated:** [January 30, 2019, 6:42am UTC](https://forum.ansible.com/t/import-module-error-ansible-utils-display/29559 "2019-01-30T06:42:53Z")

</div>

Hi, all! I’m trying to import: 117 from ansible.utils.display import Display in my new module, placed in lib/ansible/modules/database/postgresql/ But during tests and execution the following error occurred: Sanity c…

---

## [nxos failure on 9k when removing vlan (nxos\_vlan absent)](https://forum.ansible.com/t/nxos-failure-on-9k-when-removing-vlan-nxos-vlan-absent/29554)

<div class="topic-metadata">

**Author:** [@Rick\_Williams](https://forum.ansible.com/u/Rick_Williams)\
**Replies:** 0\
**Last updated:** [January 28, 2019, 9:56pm UTC](https://forum.ansible.com/t/nxos-failure-on-9k-when-removing-vlan-nxos-vlan-absent/29554 "2019-01-28T21:56:16Z")

</div>

Hi Peter, Will do. Thanks for the reply.

---

## [nxos failure on 9k when removing vlan (nxos\_vlan absent)](https://forum.ansible.com/t/nxos-failure-on-9k-when-removing-vlan-nxos-vlan-absent/29547)

<div class="topic-metadata">

**Author:** [@Rick\_Williams](https://forum.ansible.com/u/Rick_Williams)\
**Replies:** 1\
**Last updated:** [January 28, 2019, 9:53pm UTC](https://forum.ansible.com/t/nxos-failure-on-9k-when-removing-vlan-nxos-vlan-absent/29547 "2019-01-28T21:53:51Z")

</div>

Hi all, I’m running into problems with nxos\_vlan vlan removal on cisco nexus 9K. Works ok on 5k. For the 9k, ansible seems to try VXLAN commands when not configured for VXLAN. “10.6.0.81”: { “\_ansible\_no\_log”: false, …

[Previous page](https://forum.ansible.com/c/archives/ansible-developer/29.md?page=26)

[Next page](https://forum.ansible.com/c/archives/ansible-developer/29.md?page=28)
