mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-05-14 05:22:05 +00:00
New utils script to generate new modules using templates
The script will create the module in plugins/modules, the README, test and
playbook files.
Usage: new_module [options] <module name> <author name>
<author email address>
Create new ansible-freeipa module using templates.
Options:
-m Create module with member support
-f Force creation
-h Print this help
Example:
utils/new_module -m permission "My Name" myname@some.email
This commit is contained in:
11
utils/templates/module-member-present.yml.in
Normal file
11
utils/templates/module-member-present.yml.in
Normal file
@@ -0,0 +1,11 @@
|
||||
---
|
||||
- name: ${name^} member present example
|
||||
hosts: ipaserver
|
||||
become: true
|
||||
|
||||
tasks:
|
||||
- name: Ensure $name NAME is present
|
||||
ipa$name:
|
||||
name: NAME
|
||||
PARAMETER2: VALUE
|
||||
action: member
|
||||
Reference in New Issue
Block a user