From 27aca731b3a391b30ca78d314e5e0321a2c32cd5 Mon Sep 17 00:00:00 2001 From: Kevin Breit Date: Fri, 17 May 2019 08:21:34 -0500 Subject: [PATCH] meraki_ssid - Add examples to documentation (#56425) * Add standalone copy/paste-able examples --- .../fragments/48971-meraki_ssid-docs.yml | 2 + .../modules/network/meraki/meraki_ssid.py | 46 +++++++++++++++++++ 2 files changed, 48 insertions(+) create mode 100644 changelogs/fragments/48971-meraki_ssid-docs.yml diff --git a/changelogs/fragments/48971-meraki_ssid-docs.yml b/changelogs/fragments/48971-meraki_ssid-docs.yml new file mode 100644 index 0000000000..64f25fb8e3 --- /dev/null +++ b/changelogs/fragments/48971-meraki_ssid-docs.yml @@ -0,0 +1,2 @@ +minor_changes: + - meraki_ssid - Add examples to documentation. \ No newline at end of file diff --git a/lib/ansible/modules/network/meraki/meraki_ssid.py b/lib/ansible/modules/network/meraki/meraki_ssid.py index a69d170d0b..b965d21e33 100644 --- a/lib/ansible/modules/network/meraki/meraki_ssid.py +++ b/lib/ansible/modules/network/meraki/meraki_ssid.py @@ -216,6 +216,52 @@ extends_documentation_fragment: meraki ''' EXAMPLES = r''' +- name: Enable and name SSID + meraki_ssid: + auth_key: abc123 + state: present + org_name: YourOrg + net_name: WiFi + name: GuestSSID + enabled: true + delegate_to: localhost + +- name: Set PSK with invalid encryption mode + meraki_ssid: + auth_key: abc123 + state: present + org_name: YourOrg + net_name: WiFi + name: GuestSSID + auth_mode: psk + psk: abc1234 + encryption_mode: eap + ignore_errors: yes + delegate_to: localhost + +- name: Configure RADIUS servers + meraki_ssid: + auth_key: abc123 + state: present + org_name: YourOrg + net_name: WiFi + name: GuestSSID + auth_mode: open-with-radius + radius_servers: + - host: 192.0.1.200 + port: 1234 + secret: abc98765 + delegate_to: localhost + +- name: Enable click-through splash page + meraki_ssid: + auth_key: abc123 + state: present + org_name: YourOrg + net_name: WiFi + name: GuestSSID + splash_page: Click-through splash page + delegate_to: localhost ''' RETURN = r'''