# Ansible Developer

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

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

**Page:** 22

---

## [Verify groups in linux server and display the groups doesn't exist using lineinfile module](https://forum.ansible.com/t/verify-groups-in-linux-server-and-display-the-groups-doesnt-exist-using-lineinfile-module/31820)

<div class="topic-metadata">

**Author:** [@Prudhvi1](https://forum.ansible.com/u/Prudhvi1)\
**Replies:** 0\
**Last updated:** [December 13, 2019, 9:59pm UTC](https://forum.ansible.com/t/verify-groups-in-linux-server-and-display-the-groups-doesnt-exist-using-lineinfile-module/31820 "2019-12-13T21:59:04Z")

</div>

I want to search for available groups in the server and print the groups doesn’t exist. - name: Checking if group exist lineinfile: dest: /etc/group line: "{{ item.group }}" check\_mode: yes register: verif…

---

## [Feature design: add option to synchronize module to pass password on command-line instead of pipes](https://forum.ansible.com/t/feature-design-add-option-to-synchronize-module-to-pass-password-on-command-line-instead-of-pipes/31811)

<div class="topic-metadata">

**Author:** [@Platon\_Pronko](https://forum.ansible.com/u/Platon_Pronko)\
**Replies:** 2\
**Last updated:** [December 12, 2019, 6:59pm UTC](https://forum.ansible.com/t/feature-design-add-option-to-synchronize-module-to-pass-password-on-command-line-instead-of-pipes/31811 "2019-12-12T18:59:25Z")

</div>

Hi! I’m writing regarding this issue: https://github.com/ansible/ansible/issues/56629#issuecomment-559045249 I suggested that I could add an option that will make the password be added to sshpass command command line d…

---

## [unable to delete files from sub folder using ansible](https://forum.ansible.com/t/unable-to-delete-files-from-sub-folder-using-ansible/31795)

<div class="topic-metadata">

**Author:** [@Nasir\_Nasir](https://forum.ansible.com/u/Nasir_Nasir)\
**Replies:** 0\
**Last updated:** [December 10, 2019, 9:06am UTC](https://forum.ansible.com/t/unable-to-delete-files-from-sub-folder-using-ansible/31795 "2019-12-10T09:06:25Z")

</div>

Hi All, I am using the below code for deleting file from folders, i am able to delete file from parent folder but its skipping files in sub folders: Please check and help me getting this fixed. name: Ansible delete …

---

## [New Ansible release 2.9.2](https://forum.ansible.com/t/new-ansible-release-2-9-2/31767)

<div class="topic-metadata">

**Author:** [@system](https://forum.ansible.com/u/system)\
**Replies:** 1\
**Last updated:** [December 10, 2019, 1:55am UTC](https://forum.ansible.com/t/new-ansible-release-2-9-2/31767 "2019-12-10T01:55:04Z")

</div>

Hi all- we’re happy to announce that the general release of Ansible 2.9.2 is now available! How do you get it?

---

## [Ansible Tower and Akamai API for Cache purging Authorization header missing](https://forum.ansible.com/t/ansible-tower-and-akamai-api-for-cache-purging-authorization-header-missing/31789)

<div class="topic-metadata">

**Author:** [@Garry\_Taylor](https://forum.ansible.com/u/Garry_Taylor)\
**Replies:** 0\
**Last updated:** [December 9, 2019, 10:53am UTC](https://forum.ansible.com/t/ansible-tower-and-akamai-api-for-cache-purging-authorization-header-missing/31789 "2019-12-09T10:53:35Z")

</div>

Hello, We have been using Ansible Tower to purge website objects in Akamai cache (Akamai is a CDN) for several years, using an Akamai API Akamai no longer provide the API version 2, and have forced customers to use a n…

---

## [Failed when using exit\_json to get the return value](https://forum.ansible.com/t/failed-when-using-exit-json-to-get-the-return-value/31788)

<div class="topic-metadata">

**Author:** [@Luke\_Zhao](https://forum.ansible.com/u/Luke_Zhao)\
**Replies:** 0\
**Last updated:** [December 9, 2019, 3:46am UTC](https://forum.ansible.com/t/failed-when-using-exit-json-to-get-the-return-value/31788 "2019-12-09T03:46:06Z")

</div>

Hi! Friends, I know we can get successful returns calling module.exit\_json, so I using the code below in my custom module to get some returns: \` return\_args = dict( hello=hello, changed=changed, msg=msg, test=test ) …

---

## [\[CI job\] functional test for the VMware modules](https://forum.ansible.com/t/ci-job-functional-test-for-the-vmware-modules/31784)

<div class="topic-metadata">

**Author:** [@\_utf-8\_Q\_Gon\_C3\_A9ri](https://forum.ansible.com/u/_utf-8_Q_Gon_C3_A9ri)\
**Replies:** 0\
**Last updated:** [December 6, 2019, 10:01pm UTC](https://forum.ansible.com/t/ci-job-functional-test-for-the-vmware-modules/31784 "2019-12-06T22:01:24Z")

</div>

Hi all, Today, we've enabled a new Zuul-CI job to check the Mware PR. These jobs are complementary to the existing jobs running on Shippable. Those run on top of vcsim, an API simulator (govcsim). Whereas the new ones…

---

## [Issue trying to parse tag](https://forum.ansible.com/t/issue-trying-to-parse-tag/31781)

<div class="topic-metadata">

**Author:** [@Christian\_Del\_Pino1](https://forum.ansible.com/u/Christian_Del_Pino1)\
**Replies:** 0\
**Last updated:** [December 6, 2019, 7:08pm UTC](https://forum.ansible.com/t/issue-trying-to-parse-tag/31781 "2019-12-06T19:08:36Z")

</div>

Hi, I am currently trying to connect to a newly created ec2 instance via a tag that I created, but I am getting an error during the run: setting up inventory plugins host\_list declined parsing /Users/christiandelpino/…

---

## [Namespace request for tarantool](https://forum.ansible.com/t/namespace-request-for-tarantool/31753)

<div class="topic-metadata">

**Author:** [@user31](https://forum.ansible.com/u/user31)\
**Replies:** 0\
**Last updated:** [December 2, 2019, 11:35am UTC](https://forum.ansible.com/t/namespace-request-for-tarantool/31753 "2019-12-02T11:35:19Z")

</div>

hi, we created this namespace request 7 days ago: https://github.com/ansible/galaxy/issues/2121 but there has been no reply since then we counted very much on the 1-2 day sla on your website feeling very awkward for…

---

## [overriding built-in inventory collection scripts](https://forum.ansible.com/t/overriding-built-in-inventory-collection-scripts/31751)

<div class="topic-metadata">

**Author:** [@Eric\_Jorgensen](https://forum.ansible.com/u/Eric_Jorgensen)\
**Replies:** 0\
**Last updated:** [November 29, 2019, 6:14pm UTC](https://forum.ansible.com/t/overriding-built-in-inventory-collection-scripts/31751 "2019-11-29T18:14:16Z")

</div>

Hello, I would like to use some of my own routines to override the built-in inventory collection scripts. For example, the default gather facts for raspberry pi shows debian for OS, and I’d like it to use /proc/device-t…

---

## [How to patch a plugin](https://forum.ansible.com/t/how-to-patch-a-plugin/31719)

<div class="topic-metadata">

**Author:** [@Andrew\_Hilborne](https://forum.ansible.com/u/Andrew_Hilborne)\
**Replies:** 2\
**Last updated:** [November 28, 2019, 11:07am UTC](https://forum.ansible.com/t/how-to-patch-a-plugin/31719 "2019-11-28T11:07:58Z")

</div>

We use hostnames which often start with a numeral (we can’t do anything about this). One result of this is that errors during a play often produce a complaint from mail.CallbackModule like this: Failure using method (v…

---

## [ansible task to cat a file with sql commands and pipe the commands into database using psql with synchronise module (remotely)](https://forum.ansible.com/t/ansible-task-to-cat-a-file-with-sql-commands-and-pipe-the-commands-into-database-using-psql-with-synchronise-module-remotely/31728)

<div class="topic-metadata">

**Author:** [@Jonin](https://forum.ansible.com/u/Jonin)\
**Replies:** 2\
**Last updated:** [November 27, 2019, 11:08am UTC](https://forum.ansible.com/t/ansible-task-to-cat-a-file-with-sql-commands-and-pipe-the-commands-into-database-using-psql-with-synchronise-module-remotely/31728 "2019-11-27T11:08:36Z")

</div>

Hi, I have created the following task to be run on a remote host: hosts: nodes remote\_user: root tasks: name: Step Seven - remove all current postcode data and then re-populate the database with most recent data be…

---

## [overriding built-in inventory collection scripts](https://forum.ansible.com/t/overriding-built-in-inventory-collection-scripts/31729)

<div class="topic-metadata">

**Author:** [@Eric\_Jorgensen](https://forum.ansible.com/u/Eric_Jorgensen)\
**Replies:** 0\
**Last updated:** [November 26, 2019, 10:05pm UTC](https://forum.ansible.com/t/overriding-built-in-inventory-collection-scripts/31729 "2019-11-26T22:05:16Z")

</div>

Hello, I would like to use some of my own routines to override the built-in inventory collection scripts. For example, the default gather facts for raspberry pi shows debian for OS, and I’d like it to use /proc/device-t…

---

## [Conditional Module Parameter Help please.](https://forum.ansible.com/t/conditional-module-parameter-help-please/31280)

<div class="topic-metadata">

**Author:** [@Joe\_Rosiak](https://forum.ansible.com/u/Joe_Rosiak)\
**Replies:** 1\
**Last updated:** [November 22, 2019, 3:14pm UTC](https://forum.ansible.com/t/conditional-module-parameter-help-please/31280 "2019-11-22T15:14:18Z")

</div>

Hi all, I am attempting to create a custom module and when I am defining the custom parameters. Example. I have this section defined and I only want to packagename required if someone passes “add\_package\_to\_content\_vie…

---

## [Inventory Plugin cache is not being flushed in Ansible 2.7 anymore](https://forum.ansible.com/t/inventory-plugin-cache-is-not-being-flushed-in-ansible-2-7-anymore/31709)

<div class="topic-metadata">

**Author:** [@Philip\_Douglass](https://forum.ansible.com/u/Philip_Douglass)\
**Replies:** 0\
**Last updated:** [November 22, 2019, 2:59pm UTC](https://forum.ansible.com/t/inventory-plugin-cache-is-not-being-flushed-in-ansible-2-7-anymore/31709 "2019-11-22T14:59:06Z")

</div>

Due to the following deprecation warnings: \[DEPRECATION WARNING\]: InventoryModule should utilize self.\_cache as a dict instead of self.cache. When expecting a KeyError, use self.\_cache\[key\] instead of using self.cache.g…

---

## [ansible tower messing up the order in which inventory hosts gets played](https://forum.ansible.com/t/ansible-tower-messing-up-the-order-in-which-inventory-hosts-gets-played/31702)

<div class="topic-metadata">

**Author:** [@madhan0618](https://forum.ansible.com/u/madhan0618)\
**Replies:** 3\
**Last updated:** [November 21, 2019, 3:37pm UTC](https://forum.ansible.com/t/ansible-tower-messing-up-the-order-in-which-inventory-hosts-gets-played/31702 "2019-11-21T15:37:48Z")

</div>

i have a code like this template: src: …/files/kfhost.j2 dest: /app/bin/kafka/server.properties owner: kafka group: kafka mode: 0755 the jinga file has an entry like this broker.id={{ play\_hosts.index(inventory\_…

---

## [Blacklisting hosts of a group in inventory file](https://forum.ansible.com/t/blacklisting-hosts-of-a-group-in-inventory-file/31696)

<div class="topic-metadata">

**Author:** [@chavali\_shruti](https://forum.ansible.com/u/chavali_shruti)\
**Replies:** 1\
**Last updated:** [November 21, 2019, 12:48pm UTC](https://forum.ansible.com/t/blacklisting-hosts-of-a-group-in-inventory-file/31696 "2019-11-21T12:48:27Z")

</div>

Suppose I want to blacklist a host of a group, in the inventory file, so as not to allow the running of any other tasks on it. How can i do it? I do want it in my hosts list and later, after i run a playbook on it… i wa…

---

## [Import sql script to rds database](https://forum.ansible.com/t/import-sql-script-to-rds-database/31693)

<div class="topic-metadata">

**Author:** [@Biraj\_Sahu](https://forum.ansible.com/u/Biraj_Sahu)\
**Replies:** 0\
**Last updated:** [November 20, 2019, 2:06pm UTC](https://forum.ansible.com/t/import-sql-script-to-rds-database/31693 "2019-11-20T14:06:24Z")

</div>

Hello Friends, I am in need of some help in ansible. I am pretty new to ansible and I want to achieve the following as part of my work: As part of regular deployment of our application, we would have a sql script(whi…

---

## [how to get group\_vars/all data into dynamic inventory plugin?](https://forum.ansible.com/t/how-to-get-group-vars-all-data-into-dynamic-inventory-plugin/31681)

<div class="topic-metadata">

**Author:** [@Mohamed\_Javeed](https://forum.ansible.com/u/Mohamed_Javeed)\
**Replies:** 1\
**Last updated:** [November 20, 2019, 3:36am UTC](https://forum.ansible.com/t/how-to-get-group-vars-all-data-into-dynamic-inventory-plugin/31681 "2019-11-20T03:36:47Z")

</div>

Hi All, I am developing a Dynamic inventory plugin. is there a way I can get group\_vars/all data into my inventory plugin? Thanks Mohamed Javeed

---

## [Will Ansible work in case of Windows Jump Server?](https://forum.ansible.com/t/will-ansible-work-in-case-of-windows-jump-server/31677)

<div class="topic-metadata">

**Author:** [@pratik\_ghodekar](https://forum.ansible.com/u/pratik_ghodekar)\
**Replies:** 2\
**Last updated:** [November 19, 2019, 9:47am UTC](https://forum.ansible.com/t/will-ansible-work-in-case-of-windows-jump-server/31677 "2019-11-19T09:47:17Z")

</div>

Hello, I wanted to know if we have Windows jump server instead or bastion server will Ansible work? if yes how can we achieve this

---

## [Ansible debug module wont show colorful output like shell echo](https://forum.ansible.com/t/ansible-debug-module-wont-show-colorful-output-like-shell-echo/31671)

<div class="topic-metadata">

**Author:** [@Nick1](https://forum.ansible.com/u/Nick1)\
**Replies:** 0\
**Last updated:** [November 17, 2019, 2:13am UTC](https://forum.ansible.com/t/ansible-debug-module-wont-show-colorful-output-like-shell-echo/31671 "2019-11-17T02:13:41Z")

</div>

My shell script echoes status in colorful texts. I used register variable to store the output. Used debug module to output it. But instead of colorful texts all it does is append like : “stdout\_lines”: \[ “\\u001b\[31mRed …

---

## [Ansible strategy's host\_pinned not working as expected](https://forum.ansible.com/t/ansible-strategys-host-pinned-not-working-as-expected/31668)

<div class="topic-metadata">

**Author:** [@ben\_ra](https://forum.ansible.com/u/ben_ra)\
**Replies:** 0\
**Last updated:** [November 15, 2019, 10:43am UTC](https://forum.ansible.com/t/ansible-strategys-host-pinned-not-working-as-expected/31668 "2019-11-15T10:43:28Z")

</div>

Hi, we are using Ansible to update a flied of more than 60000 devices. Since linear or free strategy are taking a long time to finish depending on the batch size we define, we were looking for a faster strategy. I found…

---

## [New Ansible releases 2.7.15, 2.8.7, and 2.9.1](https://forum.ansible.com/t/new-ansible-releases-2-7-15-2-8-7-and-2-9-1/31656)

<div class="topic-metadata">

**Author:** [@system](https://forum.ansible.com/u/system)\
**Replies:** 0\
**Last updated:** [November 14, 2019, 1:35am UTC](https://forum.ansible.com/t/new-ansible-releases-2-7-15-2-8-7-and-2-9-1/31656 "2019-11-14T01:35:08Z")

</div>

Hi all- we’re happy to announce that the general release of Ansible 2.7.15, 2.8.7, and 2.9.1 are now available! How do you get it?

---

## [How to write remote cli module (no client-side python) right way?](https://forum.ansible.com/t/how-to-write-remote-cli-module-no-client-side-python-right-way/31646)

<div class="topic-metadata">

**Author:** [@Alex\_Sviridov](https://forum.ansible.com/u/Alex_Sviridov)\
**Replies:** 0\
**Last updated:** [November 12, 2019, 8:31pm UTC](https://forum.ansible.com/t/how-to-write-remote-cli-module-no-client-side-python-right-way/31646 "2019-11-12T20:31:26Z")

</div>

I cannot to find out how to write a module to controle remote device via SSH. Please can you help me with the example? I have several roles using the “raw” module but I’d like to write my own module to have the complex …

---

## [ecs\_tag](https://forum.ansible.com/t/ecs-tag/31590)

<div class="topic-metadata">

**Author:** [@Michael\_Pechner](https://forum.ansible.com/u/Michael_Pechner)\
**Replies:** 2\
**Last updated:** [November 12, 2019, 2:06pm UTC](https://forum.ansible.com/t/ecs-tag/31590 "2019-11-12T14:06:32Z")

</div>

I wrote an ecs\_tag module based on the ec2\_tag code. It only handles tagging ecs\_clusters at the moment, since that is all I need. The boto3 ecs client call tag\_resources can tag services and tasks as well. Questions: …

---

## [facts gathering question](https://forum.ansible.com/t/facts-gathering-question/31404)

<div class="topic-metadata">

**Author:** [@christian.tremel](https://forum.ansible.com/u/christian.tremel)\
**Replies:** 2\
**Last updated:** [November 11, 2019, 9:44pm UTC](https://forum.ansible.com/t/facts-gathering-question/31404 "2019-11-11T21:44:42Z")

</div>

hi all, quick question, i’m trying to add some aix specific facts using the BaseFactCollector. for some reason the facts to not show up in the setup output. whats kind of wizardy has to be done do make this working? i …

---

## [access to host\_vars and group\_vars from new Inventory plugin](https://forum.ansible.com/t/access-to-host-vars-and-group-vars-from-new-inventory-plugin/31494)

<div class="topic-metadata">

**Author:** [@Artem\_Gromov](https://forum.ansible.com/u/Artem_Gromov)\
**Replies:** 2\
**Last updated:** [November 11, 2019, 9:39pm UTC](https://forum.ansible.com/t/access-to-host-vars-and-group-vars-from-new-inventory-plugin/31494 "2019-11-11T21:39:40Z")

</div>

Hi, I am trying to develop custom inventory plugin. And I wonder if its possible to access vars defined in host\_vars and group\_vars from parse method of this plugin. All i can get are vars ‘inventory\_file’, ‘inventory…

---

## [Ansible Logging](https://forum.ansible.com/t/ansible-logging/31617)

<div class="topic-metadata">

**Author:** [@Nikhil\_Pandit](https://forum.ansible.com/u/Nikhil_Pandit)\
**Replies:** 1\
**Last updated:** [November 7, 2019, 7:14pm UTC](https://forum.ansible.com/t/ansible-logging/31617 "2019-11-07T19:14:22Z")

</div>

I am trying the logging method in ansible-playbook. Is there any method to get failed tasks at the end of play, So this can be helpful to understand the which tasks was failed on which hosts like summary. summary like b…

---

## [Ansible J2 unicode](https://forum.ansible.com/t/ansible-j2-unicode/31601)

<div class="topic-metadata">

**Author:** [@td784](https://forum.ansible.com/u/td784)\
**Replies:** 2\
**Last updated:** [November 5, 2019, 8:25pm UTC](https://forum.ansible.com/t/ansible-j2-unicode/31601 "2019-11-05T20:25:12Z")

</div>

Hi everyone. When trying to template out a weblogic wl.properties file, I am running into a Jinja2 template problem. Here is a snippet of code I am running into issues with:

---

## [IAM Module does not support tag](https://forum.ansible.com/t/iam-module-does-not-support-tag/31570)

<div class="topic-metadata">

**Author:** [@MarkM](https://forum.ansible.com/u/MarkM)\
**Replies:** 2\
**Last updated:** [October 30, 2019, 2:20pm UTC](https://forum.ansible.com/t/iam-module-does-not-support-tag/31570 "2019-10-30T14:20:21Z")

</div>

Hey guys, I’m an Ansible noob and was using the AWS IAM module to create users and I noticed this module does not support tagging. Does anyone have any ideas how this can be achieved or if this will be an added feature. …

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

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