Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue: #307 added module_defaults action groups #335

Merged
merged 2 commits into from
Jan 7, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions examples/module_default_args_action_group.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
---
- name: Sample Playbook to use module_defaults to skip the need to specify common arguments
hosts: localhost
gather_facts: false
module_defaults:
group/netscaler.adc.default_args:
nsip: 10.10.10.10
nitro_user: nsroot
nitro_pass: verysecretpassword
nitro_protocol: http
validate_certs: false
save_config: false
tasks:
- name: Sample Task | nsip
delegate_to: localhost
netscaler.adc.nsip:
state: present
ipaddress: 1.1.1.1
netmask: 255.255.255.192
type: VIP
- name: Sample Task | lbmonitor
delegate_to: localhost
netscaler.adc.lbmonitor:
state: present
monitorname: ldns-dns
type: LDNS-DNS
query: .
querytype: Address
deviation: "0"
interval: 6
resptimeout: 3
downtime: 20
- name: ipset

Check failure on line 33 in examples/module_default_args_action_group.yaml

View workflow job for this annotation

GitHub Actions / ansible-lint

name[casing]

All names should start with an uppercase letter.

Check failure on line 33 in examples/module_default_args_action_group.yaml

View workflow job for this annotation

GitHub Actions / ansible-lint

name[casing]

All names should start with an uppercase letter.
sumanth-lingappa marked this conversation as resolved.
Show resolved Hide resolved
delegate_to: localhost
netscaler.adc.ipset:
state: present
name: test_ipset
Loading
Loading