# \#module

**URL:** https://forum.ansible.com/tag/module/166.md

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

---

## [From where can I get the value for \`name\` parameter for \`community.general.jenkins\_plugin\` module?](https://forum.ansible.com/t/from-where-can-i-get-the-value-for-name-parameter-for-community-general-jenkins-plugin-module/45900)

<div class="topic-metadata">

**Author:** [@tukykarmakar](https://forum.ansible.com/u/tukykarmakar)\
**Replies:** 12\
**Last updated:** [June 26, 2026, 2:54am UTC](https://forum.ansible.com/t/from-where-can-i-get-the-value-for-name-parameter-for-community-general-jenkins-plugin-module/45900 "2026-06-26T02:54:08Z")

</div>

The documentation for the community.general.jenkins\_plugin module describes the “name” parameter as simply “Plugin name”. The examples in the documentation show the values to be lowercase and hyphenated. I’m assum…

---

## [Role in collection cannot find module in the same collection](https://forum.ansible.com/t/role-in-collection-cannot-find-module-in-the-same-collection/45676)

<div class="topic-metadata">

**Author:** [@ab203972](https://forum.ansible.com/u/ab203972)\
**Replies:** 9\
**Last updated:** [April 16, 2026, 6:16pm UTC](https://forum.ansible.com/t/role-in-collection-cannot-find-module-in-the-same-collection/45676 "2026-04-16T18:16:58Z")

</div>

We have an internal collection with roles, one of which lists available updates, and another that actually performs the updates, excluding necessary packages. I am trying to tweak the role that lists updates so that it d…

---

## [Adding insights compliance policy](https://forum.ansible.com/t/adding-insights-compliance-policy/45455)

<div class="topic-metadata">

**Author:** [@d3adin](https://forum.ansible.com/u/d3adin)\
**Replies:** 0\
**Last updated:** [February 27, 2026, 5:29pm UTC](https://forum.ansible.com/t/adding-insights-compliance-policy/45455 "2026-02-27T17:29:22Z")

</div>

Hi all, I have written a role that converts our current Alma Linux VMs to RHEL. As the last step I wanted to add CIS Compliance policy to the role. However, it seems to be failing. fatal: \[TESTHOST01\]: FAILED! =\> { …

---

## [Are module, role and play argument validation the same? (argument\_spec)](https://forum.ansible.com/t/are-module-role-and-play-argument-validation-the-same-argument-spec/45377)

<div class="topic-metadata">

**Author:** [@mardonner](https://forum.ansible.com/u/mardonner)\
**Replies:** 6\
**Last updated:** [February 23, 2026, 5:03pm UTC](https://forum.ansible.com/t/are-module-role-and-play-argument-validation-the-same-argument-spec/45377 "2026-02-23T17:03:27Z")

</div>

Hey, I recently discovered role argument validation and started to include meta/argument\_specs.yml in my roles. Some of the input arguments of my role are sensitive values, so I was looking through the documentation to s…

---

## [Include jinja template files in module utils](https://forum.ansible.com/t/include-jinja-template-files-in-module-utils/45335)

<div class="topic-metadata">

**Author:** [@mikemorency](https://forum.ansible.com/u/mikemorency)\
**Replies:** 4\
**Last updated:** [February 13, 2026, 11:39pm UTC](https://forum.ansible.com/t/include-jinja-template-files-in-module-utils/45335 "2026-02-13T23:39:10Z")

</div>

I have a collection that relies on a graphql API. The queries are pretty unpleasant, and to make them a bit more manageable I store them as jinja templates. However, I struggled getting ansible to include/find the jinja …

---

## [Creating Centreon ansible module](https://forum.ansible.com/t/creating-centreon-ansible-module/45122)

<div class="topic-metadata">

**Author:** [@Parnoud](https://forum.ansible.com/u/Parnoud)\
**Replies:** 5\
**Last updated:** [January 20, 2026, 2:43pm UTC](https://forum.ansible.com/t/creating-centreon-ansible-module/45122 "2026-01-20T14:43:39Z")

</div>

Hello, new here ! I face issue at work with centreon, and i figured out that Centreon didn"t create ansible module for manage it. I take some time do start create one. I 'm trying to do it the right way so if you got s…

---

## [Ansible-test validate-modules sanity test: report 'bad' return values that cannot be accessed with Jinja's dot notation](https://forum.ansible.com/t/ansible-test-validate-modules-sanity-test-report-bad-return-values-that-cannot-be-accessed-with-jinjas-dot-notation/44833)

<div class="topic-metadata">

**Author:** [@felixfontein](https://forum.ansible.com/u/felixfontein)\
**Replies:** 0\
**Last updated:** [November 11, 2025, 9:14pm UTC](https://forum.ansible.com/t/ansible-test-validate-modules-sanity-test-report-bad-return-values-that-cannot-be-accessed-with-jinjas-dot-notation/44833 "2025-11-11T21:14:20Z")

</div>

If a module returns a return value values or items or keys, you cannot access it in playbooks and roles with Jinja’s dot notation since result.values will be the method of dict, which shadows the returned value. validat…

---

## [How to create an Ansible Module/Library - Blog step-by-step](https://forum.ansible.com/t/how-to-create-an-ansible-module-library-blog-step-by-step/44749)

<div class="topic-metadata">

**Author:** [@Opvolger](https://forum.ansible.com/u/Opvolger)\
**Replies:** 4\
**Last updated:** [November 3, 2025, 2:33pm UTC](https://forum.ansible.com/t/how-to-create-an-ansible-module-library-blog-step-by-step/44749 "2025-11-03T14:33:33Z")

</div>

Hello all, I’ve personally created several Ansible modules, and to share this expertise, I’ve written a helpful blog post that may inspire others. I’ll walk you through the process of creating an Ansible module step by …

---

## [How to create an Ansible collection with a simple module step by step](https://forum.ansible.com/t/how-to-create-an-ansible-collection-with-a-simple-module-step-by-step/9718)

<div class="topic-metadata">

**Author:** [@Andersson007](https://forum.ansible.com/u/Andersson007)\
**Replies:** 9\
**Last updated:** [October 27, 2025, 9:30am UTC](https://forum.ansible.com/t/how-to-create-an-ansible-collection-with-a-simple-module-step-by-step/9718 "2025-10-27T09:30:34Z")

</div>

Creating and sharing a module is a great way of contributing to Ansible. This guide will show you step-by-step how to create and test one. When you later create useful modules doing real work, see the Ansible collectio…

---

## [How do I detect whether my Python code is ran by Ansible as it's module, or is run directly by Python interpreter?](https://forum.ansible.com/t/how-do-i-detect-whether-my-python-code-is-ran-by-ansible-as-its-module-or-is-run-directly-by-python-interpreter/44700)

<div class="topic-metadata">

**Author:** [@Fred\_Wood](https://forum.ansible.com/u/Fred_Wood)\
**Replies:** 2\
**Last updated:** [October 17, 2025, 12:38pm UTC](https://forum.ansible.com/t/how-do-i-detect-whether-my-python-code-is-ran-by-ansible-as-its-module-or-is-run-directly-by-python-interpreter/44700 "2025-10-17T12:38:05Z")

</div>

Tell me please in what way I can know inside Python3 code whether the code is running as an Ansible module as part of a playbook, for example, or whether the code was launched somehow else (by a script without TTY, or at…

---

## [Should the systemd\_service module include the reset\_failed option?](https://forum.ansible.com/t/should-the-systemd-service-module-include-the-reset-failed-option/40440)

<div class="topic-metadata">

**Author:** [@NomakCooper](https://forum.ansible.com/u/NomakCooper)\
**Replies:** 2\
**Last updated:** [October 8, 2025, 6:44pm UTC](https://forum.ansible.com/t/should-the-systemd-service-module-include-the-reset-failed-option/40440 "2025-10-08T18:44:49Z")

</div>

Hello everyone, Some friends have pointed out to me that using Ansible to manage systemd services can sometimes lead to unexpected results. More specifically, services with StartLimitBurst may fail to start because the…

---

## [AWX 23.8.1 : getting error "Invalid linkname for tarfile member"](https://forum.ansible.com/t/awx-23-8-1-getting-error-invalid-linkname-for-tarfile-member/6242)

<div class="topic-metadata">

**Author:** [@SaravanaSelvaraj](https://forum.ansible.com/u/SaravanaSelvaraj)\
**Replies:** 1\
**Last updated:** [September 12, 2025, 10:00pm UTC](https://forum.ansible.com/t/awx-23-8-1-getting-error-invalid-linkname-for-tarfile-member/6242 "2025-09-12T22:00:25Z")

</div>

Getting Invalid linkname for tarfile member while running a shared role job. Hello Community, We are using shared role concept to run the jobs in AWX and we are getting a below error while synching the project. The pro…

---

## [How should presence of common return values in modules be documented?](https://forum.ansible.com/t/how-should-presence-of-common-return-values-in-modules-be-documented/44155)

<div class="topic-metadata">

**Author:** [@felixfontein](https://forum.ansible.com/u/felixfontein)\
**Replies:** 4\
**Last updated:** [August 3, 2025, 4:13pm UTC](https://forum.ansible.com/t/how-should-presence-of-common-return-values-in-modules-be-documented/44155 "2025-08-03T16:13:22Z")

</div>

Ansible documentation contains a list of common return values (Return Values — Ansible Community Documentation) that are also linked from every module documentation page (example). So far I think the recommendation is to…

---

## [Import of local module\_utils within local action\_plugin not working](https://forum.ansible.com/t/import-of-local-module-utils-within-local-action-plugin-not-working/43965)

<div class="topic-metadata">

**Author:** [@amartyasinha](https://forum.ansible.com/u/amartyasinha)\
**Replies:** 4\
**Last updated:** [July 21, 2025, 5:33pm UTC](https://forum.ansible.com/t/import-of-local-module-utils-within-local-action-plugin-not-working/43965 "2025-07-21T17:33:13Z")

</div>

I had to use my custom collection in Zuul native playbook runs, but seems like it is not possible to install custom collection on zuul executor. So, I created a role similar to this to use my custom modules and action pl…

---

## [Why some modules just have doc but there is no code?](https://forum.ansible.com/t/why-some-modules-just-have-doc-but-there-is-no-code/43490)

<div class="topic-metadata">

**Author:** [@Kirk\_Zhang](https://forum.ansible.com/u/Kirk_Zhang)\
**Replies:** 1\
**Last updated:** [June 20, 2025, 1:24pm UTC](https://forum.ansible.com/t/why-some-modules-just-have-doc-but-there-is-no-code/43490 "2025-06-20T13:24:57Z")

</div>

i am new to ansible source code , but i found that add\_host.py there is no code . i do not know why

---

## [Find deprecated modules  in playbooks](https://forum.ansible.com/t/find-deprecated-modules-in-playbooks/43048)

<div class="topic-metadata">

**Author:** [@sven](https://forum.ansible.com/u/sven)\
**Replies:** 13\
**Last updated:** [June 1, 2025, 7:10pm UTC](https://forum.ansible.com/t/find-deprecated-modules-in-playbooks/43048 "2025-06-01T19:10:17Z")

</div>

I have a bunch of playbooks which usually are triggered by an API. So any warning about deprecated modules are hidden for me. Usually, I read the changelog when updating a collection. But sometimes a miss a deprecated m…

---

## [file as parameter with ansible.builtin.script](https://forum.ansible.com/t/file-as-parameter-with-ansible-builtin-script/42933)

<div class="topic-metadata">

**Author:** [@ekynox360](https://forum.ansible.com/u/ekynox360)\
**Replies:** 2\
**Last updated:** [May 23, 2025, 7:29am UTC](https://forum.ansible.com/t/file-as-parameter-with-ansible-builtin-script/42933 "2025-05-23T07:29:50Z")

</div>

Hi, I’m trying to use the ansible.builtin.script module. My script is using a varfile as parameter : - name: Software unattended installation ansible.builtin.script: myscript.x64.sh -q -varfile software\_properti…

---

## [Introduce a new module option ‘encoding’ to the lineinfile module](https://forum.ansible.com/t/introduce-a-new-module-option-encoding-to-the-lineinfile-module/41745)

<div class="topic-metadata">

**Author:** [@ketankelkar](https://forum.ansible.com/u/ketankelkar)\
**Replies:** 3\
**Last updated:** [April 15, 2025, 9:07pm UTC](https://forum.ansible.com/t/introduce-a-new-module-option-encoding-to-the-lineinfile-module/41745 "2025-04-15T21:07:09Z")

</div>

There is a draft PR for the lineinfile module which introduces a new module option encoding to add compatibility for target files not encoded in UTF-8. Currently, the lineinfile module code does a binary-read on a targ…

---

## [Error seen while executing Ansible script - /usr/bin/python2.7 - No module named site](https://forum.ansible.com/t/error-seen-while-executing-ansible-script-usr-bin-python2-7-no-module-named-site/41576)

<div class="topic-metadata">

**Author:** [@ganeshram2493](https://forum.ansible.com/u/ganeshram2493)\
**Replies:** 1\
**Last updated:** [April 7, 2025, 5:31pm UTC](https://forum.ansible.com/t/error-seen-while-executing-ansible-script-usr-bin-python2-7-no-module-named-site/41576 "2025-04-07T17:31:17Z")

</div>

Error while executing Ansible script - /usr/bin/python2.7 - No module named site. Issue is seen when below Ansible script runs on Rocky9 OS system. Ansible version details: ansible \[core 2.14.17\] config file = /et…

---

## [Custom network OS module](https://forum.ansible.com/t/custom-network-os-module/5153)

<div class="topic-metadata">

**Author:** [@nikuiz](https://forum.ansible.com/u/nikuiz)\
**Replies:** 1\
**Last updated:** [April 2, 2025, 10:27am UTC](https://forum.ansible.com/t/custom-network-os-module/5153 "2025-04-02T10:27:22Z")

</div>

Hi everyone! I was recently charged to automate my company’s network with Ansible. We mainly use EXTREME ERS devices, which are not supported by any library, therefore I’m developping my own network module in order to s…

---

## [Gitlab Runner Client side - New module or able to reuse existing modules](https://forum.ansible.com/t/gitlab-runner-client-side-new-module-or-able-to-reuse-existing-modules/40976)

<div class="topic-metadata">

**Author:** [@guenther](https://forum.ansible.com/u/guenther)\
**Replies:** 6\
**Last updated:** [March 21, 2025, 11:46am UTC](https://forum.ansible.com/t/gitlab-runner-client-side-new-module-or-able-to-reuse-existing-modules/40976 "2025-03-21T11:46:22Z")

</div>

Hi, I’m co-maintainer of a gitlab-runner role, which is managing gitlab-runners on the client side. For server side, there is an existing community module. The only drawback of the gitlab role is, that it has to manage…

---

## [Template Schedule Exceptions](https://forum.ansible.com/t/template-schedule-exceptions/39915)

<div class="topic-metadata">

**Author:** [@bmbufalo](https://forum.ansible.com/u/bmbufalo)\
**Replies:** 3\
**Last updated:** [March 3, 2025, 9:19pm UTC](https://forum.ansible.com/t/template-schedule-exceptions/39915 "2025-03-03T21:19:03Z")

</div>

How do you create Job Template Schedule Exceptions so that a job that is scheduled to run hourly will not run from 2:00 am and 3:00 am? I can’t seem to find a way in the UI.

---

## [Swap file module](https://forum.ansible.com/t/swap-file-module/40398)

<div class="topic-metadata">

**Author:** [@basicvglass](https://forum.ansible.com/u/basicvglass)\
**Replies:** 0\
**Last updated:** [February 20, 2025, 3:30pm UTC](https://forum.ansible.com/t/swap-file-module/40398 "2025-02-20T15:30:57Z")

</div>

I published a collection with a swap file module a little over a year ago. It will automatically choose fallocate based on kernel version and filesystem type, can handle creating swap files on BTRFS and won’t leave the s…

---

## [When should modules use/return \`ansible\_facts\`?](https://forum.ansible.com/t/when-should-modules-use-return-ansible-facts/40297)

<div class="topic-metadata">

**Author:** [@felixfontein](https://forum.ansible.com/u/felixfontein)\
**Replies:** 10\
**Last updated:** [February 19, 2025, 9:28pm UTC](https://forum.ansible.com/t/when-should-modules-use-return-ansible-facts/40297 "2025-02-19T21:28:07Z")

</div>

Modules can return regular return values as well as ansible\_facts, which automatically appear in the global namespace (unless you set INJECT\_FACTS\_AS\_VARS=false - though doing that will likely break a lot of playbooks an…

---

## [How to submit your first contribution to Ansible step-by-step](https://forum.ansible.com/t/how-to-submit-your-first-contribution-to-ansible-step-by-step/39085)

<div class="topic-metadata">

**Author:** [@Andersson007](https://forum.ansible.com/u/Andersson007)\
**Replies:** 0\
**Last updated:** [December 12, 2024, 6:46am UTC](https://forum.ansible.com/t/how-to-submit-your-first-contribution-to-ansible-step-by-step/39085 "2024-12-12T06:46:23Z")

</div>

Are you interested in making your first ever contribution to an open-source project or a first contribution specifically to Ansible? You can do both at once! If that sounds exciting, read this post. Starting your open-…

---

## [How to set up a repository for an Ansible collection step by step](https://forum.ansible.com/t/how-to-set-up-a-repository-for-an-ansible-collection-step-by-step/10722)

<div class="topic-metadata">

**Author:** [@Andersson007](https://forum.ansible.com/u/Andersson007)\
**Replies:** 0\
**Last updated:** [November 6, 2024, 8:45am UTC](https://forum.ansible.com/t/how-to-set-up-a-repository-for-an-ansible-collection-step-by-step/10722 "2024-11-06T08:45:42Z")

</div>

Hello everyone! In the previous post we created a dummy module and its integration tests. If you didn’t, please do. Let’s now put that stuff in a GitHub repo. Thankfully, we can use the collection\_template repositor…

---

## [Sar\_facts module: work in progress](https://forum.ansible.com/t/sar-facts-module-work-in-progress/40112)

<div class="topic-metadata">

**Author:** [@NomakCooper](https://forum.ansible.com/u/NomakCooper)\
**Replies:** 7\
**Last updated:** [February 8, 2025, 12:56pm UTC](https://forum.ansible.com/t/sar-facts-module-work-in-progress/40112 "2025-02-08T12:56:07Z")

</div>

Hello everyone :slightly\_smiling\_face: Since my colleagues, friends, and I primarily work on Linux hosts, we often need to extract or verify the data collected by sar. While exploring the existing Ansible modules in an…

---

## [Ansible.builtin.service\_facts incorrect and simplified state](https://forum.ansible.com/t/ansible-builtin-service-facts-incorrect-and-simplified-state/39836)

<div class="topic-metadata">

**Author:** [@NomakCooper](https://forum.ansible.com/u/NomakCooper)\
**Replies:** 7\
**Last updated:** [February 2, 2025, 8:54pm UTC](https://forum.ansible.com/t/ansible-builtin-service-facts-incorrect-and-simplified-state/39836 "2025-02-02T20:54:13Z")

</div>

Hello everyone, Two days ago, I created a new issue (#84607) on the ansible/ansible repository regarding the ansible.builtin.service\_facts module. I also posted about it on r/ansible. While working with hosts that use…

---

## [How best to express desired merged or replaced state for module that accepts a list of items](https://forum.ansible.com/t/how-best-to-express-desired-merged-or-replaced-state-for-module-that-accepts-a-list-of-items/39895)

<div class="topic-metadata">

**Author:** [@opoplawski](https://forum.ansible.com/u/opoplawski)\
**Replies:** 3\
**Last updated:** [January 31, 2025, 11:13am UTC](https://forum.ansible.com/t/how-best-to-express-desired-merged-or-replaced-state-for-module-that-accepts-a-list-of-items/39895 "2025-01-31T11:13:32Z")

</div>

I’m working on the pfsensible.core.pfsense\_dns\_resolver module and am looking for suggestions on how to express something. It accepts two lists of items: domainoverrides and hosts. Currently it will replace all of each…

---

## [Small (tiny?) example module and service which use a httpapi connection?](https://forum.ansible.com/t/small-tiny-example-module-and-service-which-use-a-httpapi-connection/2868)

<div class="topic-metadata">

**Author:** [@jpmens](https://forum.ansible.com/u/jpmens)\
**Replies:** 2\
**Last updated:** [January 21, 2025, 10:42am UTC](https://forum.ansible.com/t/small-tiny-example-module-and-service-which-use-a-httpapi-connection/2868 "2025-01-21T10:42:46Z")

</div>

Does anybody have a very basic (demo-style) implementation of an Ansible module and associated Python back-end service which use a connection: httpapi? During trainings I’d like to be able to demonstrate a play with a t…

[Next page](https://forum.ansible.com/tag/module/166.md?match_all_tags=true&page=1&tags%5B%5D=module)
