# Ansible Developer

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

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

**Page:** 18

---

## [Ansible Module Development: TypeError: Value of unknown type: \<class 'bson.objectid.ObjectId'\>, 5ec14572cce378f1d3df48eb](https://forum.ansible.com/t/ansible-module-development-typeerror-value-of-unknown-type-class-bson-objectid-objectid-5ec14572cce378f1d3df48eb/33034)

<div class="topic-metadata">

**Author:** [@rhysmeister](https://forum.ansible.com/u/rhysmeister)\
**Replies:** 0\
**Last updated:** [May 27, 2020, 4:20pm UTC](https://forum.ansible.com/t/ansible-module-development-typeerror-value-of-unknown-type-class-bson-objectid-objectid-5ec14572cce378f1d3df48eb/33034 "2020-05-27T16:20:50Z")

</div>

Hello, I have started development of an Ansible module to insert a document into a MongoDB database. It’s over at https://github.com/ansible-collections/community.mongodb/ When a MongoDB document is inserted, without p…

---

## [VMFS Backing device number](https://forum.ansible.com/t/vmfs-backing-device-number/33032)

<div class="topic-metadata">

**Author:** [@Sadanand\_Alegaonkar](https://forum.ansible.com/u/Sadanand_Alegaonkar)\
**Replies:** 0\
**Last updated:** [May 27, 2020, 11:12am UTC](https://forum.ansible.com/t/vmfs-backing-device-number/33032 "2020-05-27T11:12:42Z")

</div>

Hello All, I am trying to find out vmfs device name i.e. storage Lun number or WWPN (naa.60002ac0000000000000000000000000 ) I searched in vmware datastore facts module not able to get the exact result. Please help me …

---

## [How to pass hostname to playbook in ansible playbook](https://forum.ansible.com/t/how-to-pass-hostname-to-playbook-in-ansible-playbook/33028)

<div class="topic-metadata">

**Author:** [@Swordfish\_Binary](https://forum.ansible.com/u/Swordfish_Binary)\
**Replies:** 0\
**Last updated:** [May 27, 2020, 5:55am UTC](https://forum.ansible.com/t/how-to-pass-hostname-to-playbook-in-ansible-playbook/33028 "2020-05-27T05:55:59Z")

</div>

I have a requirement where I need to pass a hostname so that the ansible playbook can take the hostname and do the necessary actions like stopping and starting the service of a application. How can I pass hostname that…

---

## [How to handle password prompt when doing scp file transfer.](https://forum.ansible.com/t/how-to-handle-password-prompt-when-doing-scp-file-transfer/33022)

<div class="topic-metadata">

**Author:** [@Pushparaj\_Gothandam](https://forum.ansible.com/u/Pushparaj_Gothandam)\
**Replies:** 1\
**Last updated:** [May 25, 2020, 4:32pm UTC](https://forum.ansible.com/t/how-to-handle-password-prompt-when-doing-scp-file-transfer/33022 "2020-05-25T16:32:06Z")

</div>

Hi Team, How to handle password prompt when doing scp file transfer. Actually target scp server is generating banner message along with password prompt. Please help how to resolve the issue. name: transfer the image …

---

## [awx throwing Failed to get dashboard job templates list: 500 A server error has occurred.](https://forum.ansible.com/t/awx-throwing-failed-to-get-dashboard-job-templates-list-500-a-server-error-has-occurred/33009)

<div class="topic-metadata">

**Author:** [@Nasir\_Nasir](https://forum.ansible.com/u/Nasir_Nasir)\
**Replies:** 2\
**Last updated:** [May 24, 2020, 10:30am UTC](https://forum.ansible.com/t/awx-throwing-failed-to-get-dashboard-job-templates-list-500-a-server-error-has-occurred/33009 "2020-05-24T10:30:58Z")

</div>

Hi i am getting Failed to get dashboard job templates list: 500 A server error has occurred. after i login to awx please help

---

## [If there are no nodes active to execute in the current play then "meta : clear\_host\_errors" won't actually work](https://forum.ansible.com/t/if-there-are-no-nodes-active-to-execute-in-the-current-play-then-meta-clear-host-errors-wont-actually-work/32998)

<div class="topic-metadata">

**Author:** [@Ashwin\_Regi](https://forum.ansible.com/u/Ashwin_Regi)\
**Replies:** 0\
**Last updated:** [May 21, 2020, 7:18pm UTC](https://forum.ansible.com/t/if-there-are-no-nodes-active-to-execute-in-the-current-play-then-meta-clear-host-errors-wont-actually-work/32998 "2020-05-21T19:18:44Z")

</div>

If there are no nodes active to execute in the current play then “meta : clear\_host\_errors” won’t actually work. To elaborate on the issue, if during the current play if ‘all’ the hosts fail and are moved to the failed l…

---

## [LDAP authentication configuration via API](https://forum.ansible.com/t/ldap-authentication-configuration-via-api/32987)

<div class="topic-metadata">

**Author:** [@lukas\_menne](https://forum.ansible.com/u/lukas_menne)\
**Replies:** 0\
**Last updated:** [May 20, 2020, 6:34pm UTC](https://forum.ansible.com/t/ldap-authentication-configuration-via-api/32987 "2020-05-20T18:34:35Z")

</div>

Hello, I’m trying to find documentation or figure out if its possible to update the authentication configuration within AWX via the API. I would like to setup my LDAP configuration in an automated fashion, so if this i…

---

## [How to provide select access to future objects](https://forum.ansible.com/t/how-to-provide-select-access-to-future-objects/32969)

<div class="topic-metadata">

**Author:** [@Banti\_Kr](https://forum.ansible.com/u/Banti_Kr)\
**Replies:** 0\
**Last updated:** [May 19, 2020, 11:23am UTC](https://forum.ansible.com/t/how-to-provide-select-access-to-future-objects/32969 "2020-05-19T11:23:59Z")

</div>

Hi, I am using ansible to provide read/select access to user and it is working with below ansible code but the user is not able to access or run select to future objects means they can't access the tables created after …

---

## [Execute a playbook till the end regardless of the amount of failed plays in it](https://forum.ansible.com/t/execute-a-playbook-till-the-end-regardless-of-the-amount-of-failed-plays-in-it/32968)

<div class="topic-metadata">

**Author:** [@Plamen\_Petkov](https://forum.ansible.com/u/Plamen_Petkov)\
**Replies:** 0\
**Last updated:** [May 19, 2020, 11:10am UTC](https://forum.ansible.com/t/execute-a-playbook-till-the-end-regardless-of-the-amount-of-failed-plays-in-it/32968 "2020-05-19T11:10:25Z")

</div>

Hi, I am relatively new to the Ansible world. But I have a problem, i can’t find anywhere a solution for, for a very long time. So I have a playbook with a couple of plays in it. If any of the plays failed, a retry fil…

---

## [Unable to see third-party module on devel branch](https://forum.ansible.com/t/unable-to-see-third-party-module-on-devel-branch/32957)

<div class="topic-metadata">

**Author:** [@H\_Z](https://forum.ansible.com/u/H_Z)\
**Replies:** 2\
**Last updated:** [May 19, 2020, 1:59am UTC](https://forum.ansible.com/t/unable-to-see-third-party-module-on-devel-branch/32957 "2020-05-19T01:59:04Z")

</div>

Hi guys, I’m a absolute beginner to Ansible. I was trying to read the source code of the digital ocean cloud module and hope to contribute a new module to it. However, after I forked the repo, I was not able to see any…

---

## [How to pass 'hosts' value to an included/imiported playbook?](https://forum.ansible.com/t/how-to-pass-hosts-value-to-an-included-imiported-playbook/32964)

<div class="topic-metadata">

**Author:** [@Peter\_Bi](https://forum.ansible.com/u/Peter_Bi)\
**Replies:** 1\
**Last updated:** [May 18, 2020, 7:01pm UTC](https://forum.ansible.com/t/how-to-pass-hosts-value-to-an-included-imiported-playbook/32964 "2020-05-18T19:01:46Z")

</div>

I’ve playbook A to include roles to conduct an operation. Now I want to create playbook B to import/include playbook A but want to pass ‘hosts’ value to A. In other words, I want to make A to work dynamically with differ…

---

## [How to provide select access to future objects](https://forum.ansible.com/t/how-to-provide-select-access-to-future-objects/32950)

<div class="topic-metadata">

**Author:** [@Banti\_Kr](https://forum.ansible.com/u/Banti_Kr)\
**Replies:** 0\
**Last updated:** [May 16, 2020, 7:23pm UTC](https://forum.ansible.com/t/how-to-provide-select-access-to-future-objects/32950 "2020-05-16T19:23:43Z")

</div>

Hi, I am using ansible to provide read/select access to user and it is working but the user is not able to access or run select to future objects means they can't access the tables created after user creation.How to use…

---

## [Ansible-lint - Ensure encrytion of Vault Files \*vault.yml or \*vault.yaml](https://forum.ansible.com/t/ansible-lint-ensure-encrytion-of-vault-files-vault-yml-or-vault-yaml/32926)

<div class="topic-metadata">

**Author:** [@j1f0x](https://forum.ansible.com/u/j1f0x)\
**Replies:** 2\
**Last updated:** [May 13, 2020, 7:44pm UTC](https://forum.ansible.com/t/ansible-lint-ensure-encrytion-of-vault-files-vault-yml-or-vault-yaml/32926 "2020-05-13T19:44:43Z")

</div>

It would be nice to have an ansible-lint check that raise an error if unencrypted ansible-vault files are present. In my applications I use the file naming convention \*vault.yml or \*vault.yaml to mark ansible-vault file…

---

## [Poll: dates for the next Ansible Contributor Summit](https://forum.ansible.com/t/poll-dates-for-the-next-ansible-contributor-summit/32924)

<div class="topic-metadata">

**Author:** [@Carol\_Chen](https://forum.ansible.com/u/Carol_Chen)\
**Replies:** 0\
**Last updated:** [May 13, 2020, 2:56pm UTC](https://forum.ansible.com/t/poll-dates-for-the-next-ansible-contributor-summit/32924 "2020-05-13T14:56:31Z")

</div>

Hi all, We’re planning our next full-day virtual Ansible Contributor Summit sometime in late June or early July, and we’re looking for feedback on proposed dates. Here’s the Doodle poll with options for possible dates: h…

---

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

<div class="topic-metadata">

**Author:** [@Matt\_Clay1](https://forum.ansible.com/u/Matt_Clay1)\
**Replies:** 0\
**Last updated:** [May 12, 2020, 10:13pm UTC](https://forum.ansible.com/t/new-ansible-release-2-9-9/32918 "2020-05-12T22:13:01Z")

</div>

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

---

## [New Ansible releases 2.9.8, 2.8.12, and 2.7.18](https://forum.ansible.com/t/new-ansible-releases-2-9-8-2-8-12-and-2-7-18/32912)

<div class="topic-metadata">

**Author:** [@Matt\_Clay1](https://forum.ansible.com/u/Matt_Clay1)\
**Replies:** 0\
**Last updated:** [May 12, 2020, 3:41pm UTC](https://forum.ansible.com/t/new-ansible-releases-2-9-8-2-8-12-and-2-7-18/32912 "2020-05-12T15:41:01Z")

</div>

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

---

## [ansible vm snapshot using ansible](https://forum.ansible.com/t/ansible-vm-snapshot-using-ansible/32906)

<div class="topic-metadata">

**Author:** [@Nasir\_Nasir](https://forum.ansible.com/u/Nasir_Nasir)\
**Replies:** 0\
**Last updated:** [May 11, 2020, 11:36am UTC](https://forum.ansible.com/t/ansible-vm-snapshot-using-ansible/32906 "2020-05-11T11:36:42Z")

</div>

Hi all, creating ansible vm snapshot using ansible , As per the given module https://docs.ansible.com/ansible/latest/modules/azure\_rm\_snapshot\_module.html it only Create, update and delete instance of Azure Snapshot, …

---

## [vmware\_deploy\_ovf fails with urlopen error timed out](https://forum.ansible.com/t/vmware-deploy-ovf-fails-with-urlopen-error-timed-out/32882)

<div class="topic-metadata">

**Author:** [@Ricardo](https://forum.ansible.com/u/Ricardo)\
**Replies:** 0\
**Last updated:** [May 7, 2020, 8:33pm UTC](https://forum.ansible.com/t/vmware-deploy-ovf-fails-with-urlopen-error-timed-out/32882 "2020-05-07T20:33:43Z")

</div>

Trying to use the vmware\_deploy\_ovf Ansible module of a Cisco CUC appliance (very simple: 1 nic, 1 disk, no properties/DeploymentOption to pick from). I can deploy with VMware’s web interface no problems. hosts: localh…

---

## [Simple - how to compare values from two or more hosts](https://forum.ansible.com/t/simple-how-to-compare-values-from-two-or-more-hosts/32855)

<div class="topic-metadata">

**Author:** [@John\_Fak](https://forum.ansible.com/u/John_Fak)\
**Replies:** 0\
**Last updated:** [May 5, 2020, 9:38pm UTC](https://forum.ansible.com/t/simple-how-to-compare-values-from-two-or-more-hosts/32855 "2020-05-05T21:38:02Z")

</div>

Hi A few of us tried this and couldnt find a good/clean way to achieve. I want to call a shell script on say 10 hosts. It might return a single value - lets say version number of 10.2. I need a way to check all 10 hos…

---

## [Ansible-Vault filter, module extensions](https://forum.ansible.com/t/ansible-vault-filter-module-extensions/32841)

<div class="topic-metadata">

**Author:** [@j1f0x](https://forum.ansible.com/u/j1f0x)\
**Replies:** 2\
**Last updated:** [May 5, 2020, 2:21am UTC](https://forum.ansible.com/t/ansible-vault-filter-module-extensions/32841 "2020-05-05T02:21:20Z")

</div>

I’d like to have a possibilty to generate vault file from within ansible playbooks. The particular problem is to fetch sensitive data for remote host and store this data encrypted on the local host. on pypy ansible-vau…

---

## [Ansible, RVM, Gem module - (RVM changes cd command to work but ansible gem module doesn't use shell to send commands) How does it work? Any complications?](https://forum.ansible.com/t/ansible-rvm-gem-module-rvm-changes-cd-command-to-work-but-ansible-gem-module-doesnt-use-shell-to-send-commands-how-does-it-work-any-complications/32843)

<div class="topic-metadata">

**Author:** [@Dave2](https://forum.ansible.com/u/Dave2)\
**Replies:** 0\
**Last updated:** [May 4, 2020, 5:33pm UTC](https://forum.ansible.com/t/ansible-rvm-gem-module-rvm-changes-cd-command-to-work-but-ansible-gem-module-doesnt-use-shell-to-send-commands-how-does-it-work-any-complications/32843 "2020-05-04T17:33:05Z")

</div>

How Ansible gem module works with RVM? I feel like it’s causing hidden errors behind and I’m not able to figure out why certain things don’t work right. Maybe this is the issue? I set up env\_vars with "environment: " w…

---

## [why does ansible code with put method is failing](https://forum.ansible.com/t/why-does-ansible-code-with-put-method-is-failing/32832)

<div class="topic-metadata">

**Author:** [@Raj\_M1](https://forum.ansible.com/u/Raj_M1)\
**Replies:** 0\
**Last updated:** [May 2, 2020, 2:55am UTC](https://forum.ansible.com/t/why-does-ansible-code-with-put-method-is-failing/32832 "2020-05-02T02:55:36Z")

</div>

Hi list, I am using this ansible code using http method PUT, I have tried changing body to body: ‘{ “NewPassword” : “{{ Password }}” }’ but none of that is helping. I am getting error: “msg”: “Status code was 400 and no…

---

## [New Ansible package name dual install hazard?](https://forum.ansible.com/t/new-ansible-package-name-dual-install-hazard/32830)

<div class="topic-metadata">

**Author:** [@AlanCoding](https://forum.ansible.com/u/AlanCoding)\
**Replies:** 3\
**Last updated:** [May 1, 2020, 6:55pm UTC](https://forum.ansible.com/t/new-ansible-package-name-dual-install-hazard/32830 "2020-05-01T18:55:08Z")

</div>

The package name for Ansible changes with the current development version. It seems like pip lets me install Ansible 2.9 and 2.10 at the same time… bash-4.4# pip3 show ansible Name: ansible Version: 2.9.7 Summary: R…

---

## [How to get callback\_whitelist = profile\_tasks working with ansible-test](https://forum.ansible.com/t/how-to-get-callback-whitelist-profile-tasks-working-with-ansible-test/32828)

<div class="topic-metadata">

**Author:** [@Michael\_Ross](https://forum.ansible.com/u/Michael_Ross)\
**Replies:** 0\
**Last updated:** [April 30, 2020, 10:22pm UTC](https://forum.ansible.com/t/how-to-get-callback-whitelist-profile-tasks-working-with-ansible-test/32828 "2020-04-30T22:22:39Z")

</div>

Hi, I currently work on developing Ansible modules for Oracle and I’ve been trying to log timing information when we run our module tests with ansible-test. This callback plugin looks like the right solution (https://d…

---

## [YAML inventory with group name "DEV" causes error](https://forum.ansible.com/t/yaml-inventory-with-group-name-dev-causes-error/32827)

<div class="topic-metadata">

**Author:** [@Tdev\_Feeds](https://forum.ansible.com/u/Tdev_Feeds)\
**Replies:** 2\
**Last updated:** [April 30, 2020, 5:23pm UTC](https://forum.ansible.com/t/yaml-inventory-with-group-name-dev-causes-error/32827 "2020-04-30T17:23:48Z")

</div>

I’m converting our existing INI inventory to YAML. The reason is that I cannot seem to get variables like “{{ myvar }}” working within an INI inventory and have found no documentation that says INI format supports variab…

---

## [Need Ansible connection vars for Citric Netscalar Device](https://forum.ansible.com/t/need-ansible-connection-vars-for-citric-netscalar-device/32822)

<div class="topic-metadata">

**Author:** [@Venu\_Devannagari](https://forum.ansible.com/u/Venu_Devannagari)\
**Replies:** 0\
**Last updated:** [April 30, 2020, 6:49am UTC](https://forum.ansible.com/t/need-ansible-connection-vars-for-citric-netscalar-device/32822 "2020-04-30T06:49:16Z")

</div>

Hello Team, I am trying to run some commands through cli\_command but through local action it is not connected when I put connection method as network\_cli I need ansible\_network\_os type but I did not find anywhere.Can yo…

---

## [AWS Ansible question - How do you link an ec2\_asg (security group) to a ecs\_cluster](https://forum.ansible.com/t/aws-ansible-question-how-do-you-link-an-ec2-asg-security-group-to-a-ecs-cluster/32810)

<div class="topic-metadata">

**Author:** [@Sic](https://forum.ansible.com/u/Sic)\
**Replies:** 0\
**Last updated:** [April 29, 2020, 9:46am UTC](https://forum.ansible.com/t/aws-ansible-question-how-do-you-link-an-ec2-asg-security-group-to-a-ecs-cluster/32810 "2020-04-29T09:46:45Z")

</div>

I’m attempting to automate the deployment of a project to an ecs\_cluster in ansible. I’ve created valid task definitions and services for said cluster, but I am am struggling to attach an ec2\_asg to it. Thus not allowin…

---

## [Comparing Two Json files](https://forum.ansible.com/t/comparing-two-json-files/32782)

<div class="topic-metadata">

**Author:** [@Pushparaj\_Gothandam](https://forum.ansible.com/u/Pushparaj_Gothandam)\
**Replies:** 0\
**Last updated:** [April 25, 2020, 8:32pm UTC](https://forum.ansible.com/t/comparing-two-json-files/32782 "2020-04-25T20:32:02Z")

</div>

Hi Team Anybody has custom module for comparing two json files. Please help Thanks

---

## [how to over come passwords prompts](https://forum.ansible.com/t/how-to-over-come-passwords-prompts/32778)

<div class="topic-metadata">

**Author:** [@jayanth\_reddy](https://forum.ansible.com/u/jayanth_reddy)\
**Replies:** 0\
**Last updated:** [April 24, 2020, 7:32pm UTC](https://forum.ansible.com/t/how-to-over-come-passwords-prompts/32778 "2020-04-24T19:32:44Z")

</div>

Hello Guys, Hope you are fine. While I’m running apt-get install mythtv-database package I’m getting one pop-up screen (as attached)where I need to enter my database password. How can I overcome that using Ansible(yaml…

---

## [custom inventory plugin and facts](https://forum.ansible.com/t/custom-inventory-plugin-and-facts/32761)

<div class="topic-metadata">

**Author:** [@Tdev\_Feeds](https://forum.ansible.com/u/Tdev_Feeds)\
**Replies:** 1\
**Last updated:** [April 22, 2020, 6:09pm UTC](https://forum.ansible.com/t/custom-inventory-plugin-and-facts/32761 "2020-04-22T18:09:58Z")

</div>

I’m wondering if it is possible to gather facts during BaseInventoryPlugin.parse()? I’m working on a dynamic inventory plugin that needs to get custom facts from /etc/ansible/facts.d/ on the remote hosts. It seems to me …

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

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