Skip to content

Commit

Permalink
Issue: #307 added module_defaults action groups
Browse files Browse the repository at this point in the history
  • Loading branch information
sumanth-lingappa committed Jan 6, 2024
1 parent 3d5e046 commit c3d06e4
Show file tree
Hide file tree
Showing 2 changed files with 932 additions and 4 deletions.
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.
delegate_to: localhost
netscaler.adc.ipset:
state: present
name: test_ipset
Loading

0 comments on commit c3d06e4

Please sign in to comment.