# Ansible Developer

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

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

**Page:** 20

---

## [Ansible Module for Azure - Application Gateway Scaling](https://forum.ansible.com/t/ansible-module-for-azure-application-gateway-scaling/32412)

<div class="topic-metadata">

**Author:** [@John\_Sebastian](https://forum.ansible.com/u/John_Sebastian)\
**Replies:** 0\
**Last updated:** [March 6, 2020, 11:56pm UTC](https://forum.ansible.com/t/ansible-module-for-azure-application-gateway-scaling/32412 "2020-03-06T23:56:01Z")

</div>

I have seen Modules for creating new instance of Application gateway in Azure, But not Scale up/down Application Gateways which already exist. Can some one please help?

---

## [How to pylint and unit test module\_utils code in my local module/role?](https://forum.ansible.com/t/how-to-pylint-and-unit-test-module-utils-code-in-my-local-module-role/32408)

<div class="topic-metadata">

**Author:** [@Richard\_Megginson](https://forum.ansible.com/u/Richard_Megginson)\
**Replies:** 4\
**Last updated:** [March 6, 2020, 10:07pm UTC](https://forum.ansible.com/t/how-to-pylint-and-unit-test-module-utils-code-in-my-local-module-role/32408 "2020-03-06T22:07:04Z")

</div>

When developing a role that has a local module with some code split into module\_utils, how do you set up your pythonpath or venv so that pylint and unit testing resolves the imports correctly? For example: https://githu…

---

## [New Ansible release 2.8.10](https://forum.ansible.com/t/new-ansible-release-2-8-10/32399)

<div class="topic-metadata">

**Author:** [@Matt\_Clay1](https://forum.ansible.com/u/Matt_Clay1)\
**Replies:** 0\
**Last updated:** [March 5, 2020, 9:56pm UTC](https://forum.ansible.com/t/new-ansible-release-2-8-10/32399 "2020-03-05T21:56:09Z")

</div>

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

---

## [New Ansible releases 2.9.6 and 2.8.9](https://forum.ansible.com/t/new-ansible-releases-2-9-6-and-2-8-9/32389)

<div class="topic-metadata">

**Author:** [@Matt\_Clay1](https://forum.ansible.com/u/Matt_Clay1)\
**Replies:** 0\
**Last updated:** [March 5, 2020, 8:38am UTC](https://forum.ansible.com/t/new-ansible-releases-2-9-6-and-2-8-9/32389 "2020-03-05T08:38:02Z")

</div>

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

---

## [snow\_record\_find Error](https://forum.ansible.com/t/snow-record-find-error/32388)

<div class="topic-metadata">

**Author:** [@Fitri\_Izuan\_Abdul\_Ro](https://forum.ansible.com/u/Fitri_Izuan_Abdul_Ro)\
**Replies:** 0\
**Last updated:** [March 5, 2020, 7:25am UTC](https://forum.ansible.com/t/snow-record-find-error/32388 "2020-03-05T07:25:19Z")

</div>

Hi, I am newbie and this is my first time to write Ansible script in my project. Currently I am using snow\_record\_find module to search or retrieve record from SNOW however I got error mentioned "Failed to find record: …

---

## [Partial cancellation of Ansible Contributor Summit 8 (in-person component)](https://forum.ansible.com/t/partial-cancellation-of-ansible-contributor-summit-8-in-person-component/32378)

<div class="topic-metadata">

**Author:** [@Carol\_Chen1](https://forum.ansible.com/u/Carol_Chen1)\
**Replies:** 0\
**Last updated:** [March 3, 2020, 9:45pm UTC](https://forum.ansible.com/t/partial-cancellation-of-ansible-contributor-summit-8-in-person-component/32378 "2020-03-03T21:45:42Z")

</div>

Hi everyone, It is with deep regret that we confirm the partial cancellation of Ansible Contributor Summit Europe 2020, the physical/in-person element that was planned for Sunday, March 29, in Gothenburg, Sweden. This i…

---

## [Sudo su -](https://forum.ansible.com/t/sudo-su/32375)

<div class="topic-metadata">

**Author:** [@Suresh\_R](https://forum.ansible.com/u/Suresh_R)\
**Replies:** 2\
**Last updated:** [March 3, 2020, 8:33pm UTC](https://forum.ansible.com/t/sudo-su/32375 "2020-03-03T20:33:54Z")

</div>

In my environment we needed to execute the command " sudo su - " to become a root. I did tried something with the become method but nothing got worked. Do we have working setup for this scenario ?

---

## [ansible/ansible devel branch has been frozen](https://forum.ansible.com/t/ansible-ansible-devel-branch-has-been-frozen/32365)

<div class="topic-metadata">

**Author:** [@sivel](https://forum.ansible.com/u/sivel)\
**Replies:** 0\
**Last updated:** [March 2, 2020, 4:53pm UTC](https://forum.ansible.com/t/ansible-ansible-devel-branch-has-been-frozen/32365 "2020-03-02T16:53:38Z")

</div>

The devel branch of ansible/ansible has been frozen for the next 3 weeks. No changes will be accepted into the temporary branch until after March 11. The temporary branch may have to be deleted and recreated from now th…

---

## [script to scan projects for ansible 2.10 compatibility issues?](https://forum.ansible.com/t/script-to-scan-projects-for-ansible-2-10-compatibility-issues/32364)

<div class="topic-metadata">

**Author:** [@Richard\_Megginson](https://forum.ansible.com/u/Richard_Megginson)\
**Replies:** 0\
**Last updated:** [March 2, 2020, 4:16pm UTC](https://forum.ansible.com/t/script-to-scan-projects-for-ansible-2-10-compatibility-issues/32364 "2020-03-02T16:16:19Z")

</div>

Is there a script to scan projects for ansible 2.10 compatibility issues? For example: - use of non-core ansible modules - use of "bare" module/role name where FQCN will be needed I'd like to add something like that …

---

## [How to run ansible 2.10 in a tox venv?](https://forum.ansible.com/t/how-to-run-ansible-2-10-in-a-tox-venv/32348)

<div class="topic-metadata">

**Author:** [@Richard\_Megginson](https://forum.ansible.com/u/Richard_Megginson)\
**Replies:** 6\
**Last updated:** [February 28, 2020, 11:45pm UTC](https://forum.ansible.com/t/how-to-run-ansible-2-10-in-a-tox-venv/32348 "2020-02-28T23:45:11Z")

</div>

https://github.com/ansible-collections/overview/blob/master/README.rst#pre-release-versions-of-ansible-base I think this should work? "Checkout and run the source https://github.com/ansible-collection-migration/ansible…

---

## [ERROR! the field 'hosts' is required but was not set](https://forum.ansible.com/t/error-the-field-hosts-is-required-but-was-not-set/32311)

<div class="topic-metadata">

**Author:** [@Daley\_Okuwa1](https://forum.ansible.com/u/Daley_Okuwa1)\
**Replies:** 4\
**Last updated:** [February 28, 2020, 1:01pm UTC](https://forum.ansible.com/t/error-the-field-hosts-is-required-but-was-not-set/32311 "2020-02-28T13:01:42Z")

</div>

I have written a simple script to patch my red hat server and it is comming out with this error message when i run : ansible-playbook linuxpatch.yml ERROR! the field ‘hosts’ is required but was not set in /etc/ansible/…

---

## [Documenting variable suboption types in a module](https://forum.ansible.com/t/documenting-variable-suboption-types-in-a-module/32346)

<div class="topic-metadata">

**Author:** [@John\_Nelson1](https://forum.ansible.com/u/John_Nelson1)\
**Replies:** 1\
**Last updated:** [February 27, 2020, 11:37pm UTC](https://forum.ansible.com/t/documenting-variable-suboption-types-in-a-module/32346 "2020-02-27T23:37:08Z")

</div>

While working on a PR for the win\_dns\_record module, I ran into a documentation issue that I thought best to ask about, in case anyone can offer any suggestions or otherwise correct my thinking. As background, I’m trying…

---

## [adding escape characters in replace module](https://forum.ansible.com/t/adding-escape-characters-in-replace-module/32344)

<div class="topic-metadata">

**Author:** [@Anil](https://forum.ansible.com/u/Anil)\
**Replies:** 0\
**Last updated:** [February 27, 2020, 3:52pm UTC](https://forum.ansible.com/t/adding-escape-characters-in-replace-module/32344 "2020-02-27T15:52:42Z")

</div>

Hi All, I have file below, would like to comment out the line with hmac-sha1 and uncomment like with #Commened for LINUXMSB 2013’ $ cat sshd\_config MACs hmac-sha2-512-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac…

---

## [Passwprd never expierd](https://forum.ansible.com/t/passwprd-never-expierd/32339)

<div class="topic-metadata">

**Author:** [@Rishiv\_Chauhan](https://forum.ansible.com/u/Rishiv_Chauhan)\
**Replies:** 1\
**Last updated:** [February 27, 2020, 11:34am UTC](https://forum.ansible.com/t/passwprd-never-expierd/32339 "2020-02-27T11:34:02Z")

</div>

Please help, I wanted to create a yml script for the password never expire for a particuler user. lets say, need a yml script that run through ansible server and set the password never expire for a particular user.

---

## [Cannot create some accounts associated to a host inside an external inventory file](https://forum.ansible.com/t/cannot-create-some-accounts-associated-to-a-host-inside-an-external-inventory-file/32326)

<div class="topic-metadata">

**Author:** [@Stefano\_Leandro](https://forum.ansible.com/u/Stefano_Leandro)\
**Replies:** 0\
**Last updated:** [February 25, 2020, 10:23pm UTC](https://forum.ansible.com/t/cannot-create-some-accounts-associated-to-a-host-inside-an-external-inventory-file/32326 "2020-02-25T22:23:39Z")

</div>

Hi , Pratically im implementing this use case : Passing a inventory file containing host and vars associated ,i would create a play that iterate for each linux acciunt to create per host this is my inventory file form…

---

## [Insifficient support for LVM in Ansible (2.9+)](https://forum.ansible.com/t/insifficient-support-for-lvm-in-ansible-2-9/32321)

<div class="topic-metadata">

**Author:** [@Rene\_van\_der\_Linden](https://forum.ansible.com/u/Rene_van_der_Linden)\
**Replies:** 2\
**Last updated:** [February 25, 2020, 10:04pm UTC](https://forum.ansible.com/t/insifficient-support-for-lvm-in-ansible-2-9/32321 "2020-02-25T22:04:28Z")

</div>

The LVM related modules filesystem and lvol https://docs.ansible.com/ansible/latest/modules/filesystem\_module.html https://docs.ansible.com/ansible/latest/modules/lvol\_module.html are unable to manage xfs and swap fil…

---

## [Trying to understand "unable to find api field in struct Container for the json field \\"$setElementOrder/env\\""](https://forum.ansible.com/t/trying-to-understand-unable-to-find-api-field-in-struct-container-for-the-json-field-setelementorder-env/32318)

<div class="topic-metadata">

**Author:** [@David\_Karr](https://forum.ansible.com/u/David_Karr)\
**Replies:** 1\
**Last updated:** [February 24, 2020, 6:07pm UTC](https://forum.ansible.com/t/trying-to-understand-unable-to-find-api-field-in-struct-container-for-the-json-field-setelementorder-env/32318 "2020-02-24T18:07:26Z")

</div>

I’m working on a project that uses Ansible for template processing (probably overkill). We recently implemented Helm to produce some of our k8s objects, but that may be irrelevant to the current problem. In the build pro…

---

## [ansible k8s module to support syntax for creating configmap --from-file](https://forum.ansible.com/t/ansible-k8s-module-to-support-syntax-for-creating-configmap-from-file/32317)

<div class="topic-metadata">

**Author:** [@sri\_sadineni](https://forum.ansible.com/u/sri_sadineni)\
**Replies:** 0\
**Last updated:** [February 24, 2020, 4:17pm UTC](https://forum.ansible.com/t/ansible-k8s-module-to-support-syntax-for-creating-configmap-from-file/32317 "2020-02-24T16:17:41Z")

</div>

Hi Team, I have looking forward to create config maps by using --from-file syntax. I’m on version 2.7.2 and I couldn’t find any syntax that support this. This is the command I’ve been trying to automate. kubectl creat…

---

## [Ansible 2.9.4 collection not picking the action plugin](https://forum.ansible.com/t/ansible-2-9-4-collection-not-picking-the-action-plugin/32294)

<div class="topic-metadata">

**Author:** [@Mohamed\_Javeed](https://forum.ansible.com/u/Mohamed_Javeed)\
**Replies:** 0\
**Last updated:** [February 21, 2020, 1:30pm UTC](https://forum.ansible.com/t/ansible-2-9-4-collection-not-picking-the-action-plugin/32294 "2020-02-21T13:30:54Z")

</div>

Hi team, I’m having trouble getting the actions plugin inside the collection being used on playbook execution This happens due to the name change from dellos10.py to os10.py for the plugin Summary of issue

---

## [azure\_rm.py invalid start byte](https://forum.ansible.com/t/azure-rm-py-invalid-start-byte/32287)

<div class="topic-metadata">

**Author:** [@Patrick\_O\_Dowd](https://forum.ansible.com/u/Patrick_O_Dowd)\
**Replies:** 0\
**Last updated:** [February 20, 2020, 4:25pm UTC](https://forum.ansible.com/t/azure-rm-py-invalid-start-byte/32287 "2020-02-20T16:25:26Z")

</div>

Hi - I am hitting the following error on windows 10 subsystem for linux (wsl) when running this command: $ ansible ie1salx41711-apigw-intdev-green-proxy-2-devtest -i azure\_rm.py -m ping ERROR! ‘utf8’ codec can’t decode…

---

## [remote\_src and template\_host not working in template module for me](https://forum.ansible.com/t/remote-src-and-template-host-not-working-in-template-module-for-me/32272)

<div class="topic-metadata">

**Author:** [@felixfontein](https://forum.ansible.com/u/felixfontein)\
**Replies:** 0\
**Last updated:** [February 19, 2020, 2:02pm UTC](https://forum.ansible.com/t/remote-src-and-template-host-not-working-in-template-module-for-me/32272 "2020-02-19T14:02:32Z")

</div>

Hello, pleaes use the appropriate places for support questions. This mailing list is for discussions on the development of Ansible. You might want to try https://groups.google.com/forum/#!forum/ansible-project instea…

---

## [debug ansible](https://forum.ansible.com/t/debug-ansible/32239)

<div class="topic-metadata">

**Author:** [@ansible\_Iac](https://forum.ansible.com/u/ansible_Iac)\
**Replies:** 0\
**Last updated:** [February 15, 2020, 1:36am UTC](https://forum.ansible.com/t/debug-ansible/32239 "2020-02-15T01:36:33Z")

</div>

I am trying to create a playbook that creates user in linux and I have declared my variables as a dictionary's type user\_data but when I run it I have the following error : FAILED! =\> { "assertion": "ansible\_failed\_res…

---

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

<div class="topic-metadata">

**Author:** [@Matt\_Clay1](https://forum.ansible.com/u/Matt_Clay1)\
**Replies:** 0\
**Last updated:** [February 13, 2020, 9:26pm UTC](https://forum.ansible.com/t/new-ansible-release-2-9-5/32225 "2020-02-13T21:26:59Z")

</div>

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

---

## [pass a dictionary to copy module while using the ansible api](https://forum.ansible.com/t/pass-a-dictionary-to-copy-module-while-using-the-ansible-api/32213)

<div class="topic-metadata">

**Author:** [@Mario\_Garcia](https://forum.ansible.com/u/Mario_Garcia)\
**Replies:** 0\
**Last updated:** [February 12, 2020, 4:43pm UTC](https://forum.ansible.com/t/pass-a-dictionary-to-copy-module-while-using-the-ansible-api/32213 "2020-02-12T16:43:16Z")

</div>

Hello, I would like to use the copy module while using the ansible api and instead of passing a source I would like to pass directtly the content… the content is stored in a dictionary wher ethe key is the hostname and …

---

## [Strange deprecation warning wanting me to turn an equality statement into something that returns a boolean?](https://forum.ansible.com/t/strange-deprecation-warning-wanting-me-to-turn-an-equality-statement-into-something-that-returns-a-boolean/32191)

<div class="topic-metadata">

**Author:** [@Kurtis\_Rainbolt-Gre1](https://forum.ansible.com/u/Kurtis_Rainbolt-Gre1)\
**Replies:** 4\
**Last updated:** [February 11, 2020, 11:52pm UTC](https://forum.ansible.com/t/strange-deprecation-warning-wanting-me-to-turn-an-equality-statement-into-something-that-returns-a-boolean/32191 "2020-02-11T23:52:06Z")

</div>

\[DEPRECATION WARNING\]: evaluating node\_leader\_hostname == service\_fqdn.stdout as a bare variable, this behaviour will go away and you might need to add |bool to the expression in the future. Also see CONDITIONAL\_BARE\_VA…

---

## [ERROR! the field 'hosts' is required but was not set](https://forum.ansible.com/t/error-the-field-hosts-is-required-but-was-not-set/32180)

<div class="topic-metadata">

**Author:** [@Max3](https://forum.ansible.com/u/Max3)\
**Replies:** 3\
**Last updated:** [February 9, 2020, 3:27pm UTC](https://forum.ansible.com/t/error-the-field-hosts-is-required-but-was-not-set/32180 "2020-02-09T15:27:52Z")

</div>

\*\*When I run this:\*\* ansible-playbook -i host.inventory -l dev automation.yml \*\*I keep on getting this:\*\* PLAY \[dev\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*…

---

## [use ansible api to push files to remote hosts](https://forum.ansible.com/t/use-ansible-api-to-push-files-to-remote-hosts/32176)

<div class="topic-metadata">

**Author:** [@Mario\_Garcia](https://forum.ansible.com/u/Mario_Garcia)\
**Replies:** 0\
**Last updated:** [February 7, 2020, 5:15pm UTC](https://forum.ansible.com/t/use-ansible-api-to-push-files-to-remote-hosts/32176 "2020-02-07T17:15:25Z")

</div>

Hello, i am looking to create a tool that pushes sudoers file to remote file using the ansible api it is a tool for some non technical users this is what I have \` from ansible.parsing.dataloader import DataLoader f…

---

## [Calling an action plugin w/o defining a corresponding module](https://forum.ansible.com/t/calling-an-action-plugin-w-o-defining-a-corresponding-module/32174)

<div class="topic-metadata">

**Author:** [@Punit\_Jain](https://forum.ansible.com/u/Punit_Jain)\
**Replies:** 0\
**Last updated:** [February 7, 2020, 12:34pm UTC](https://forum.ansible.com/t/calling-an-action-plugin-w-o-defining-a-corresponding-module/32174 "2020-02-07T12:34:40Z")

</div>

Hi, Just checking if is it possible to do all processing in an action plugin named default as module and not defining module file altogether in library ? this is because i am able to do most processing in action plugin …

---

## [need hep in ansible vars for template](https://forum.ansible.com/t/need-hep-in-ansible-vars-for-template/32161)

<div class="topic-metadata">

**Author:** [@vishwas\_govekar1](https://forum.ansible.com/u/vishwas_govekar1)\
**Replies:** 0\
**Last updated:** [February 6, 2020, 4:36pm UTC](https://forum.ansible.com/t/need-hep-in-ansible-vars-for-template/32161 "2020-02-06T16:36:24Z")

</div>

I am working on Apache storm project using Ansible scripts ,I have stormconfproperties.yml which has variable values for supervisor\_slots\_ports In my template files I have to pass it as variables .Can you help me for …

---

## ["msg": "Unsupported parameters for (basic.py)](https://forum.ansible.com/t/msg-unsupported-parameters-for-basic-py/32140)

<div class="topic-metadata">

**Author:** [@Tejas\_Gadaria1](https://forum.ansible.com/u/Tejas_Gadaria1)\
**Replies:** 1\
**Last updated:** [February 5, 2020, 8:41am UTC](https://forum.ansible.com/t/msg-unsupported-parameters-for-basic-py/32140 "2020-02-05T08:41:25Z")

</div>

Hi Team, I have written ansible custom module. Module suppose to fetch data from database via graphsql template. Module execution fails with “Unsupported parameters for (basic.py)”. Ansible is imported as “from ansibl…

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

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