cisco.meraki.meraki_mx_content_filtering module -- Edit Meraki MX content filtering policies
Note
This module is part of the cisco.meraki collection (version 2.18.2).
To install it, use: ansible-galaxy collection install cisco.meraki
.
To use it in a playbook, specify: cisco.meraki.meraki_mx_content_filtering
.
DEPRECATED
- Removed in:
version 3.0.0
- Why:
Updated modules released with increased functionality
- Alternative:
cisco.meraki.networks_appliance_content_filtering
Synopsis
Allows for setting policy on content filtering.
Parameters
Parameter |
Comments |
---|---|
List of URL patterns which should be allowed. |
|
Authentication key provided by the dashboard. Required if environmental variable MERAKI_KEY is not set. |
|
List of content categories which should be blocked. Use the |
|
List of URL patterns which should be blocked. |
|
Determines whether a network filters fo rall URLs in a category or only the list of top blocked sites. Choices: |
|
Hostname for Meraki dashboard. Can be used to access regional Meraki environments, such as China. |
|
Number of seconds to retry if server returns an internal server error. Default: :ansible-option-default:`60` |
|
ID number of a network. |
|
Name of a network. |
|
ID of organization. |
|
Name of organization. |
|
Instructs module whether response keys should be snake case (ex. Choices: |
|
Set amount of debug output during module execution. Choices: |
|
Number of seconds to retry if rate limiter is triggered. Default: :ansible-option-default:`165` |
|
States that a policy should be created or modified. Choices: |
|
Display only certain facts. Choices: |
|
Time to timeout for HTTP requests. Default: :ansible-option-default:`30` |
|
If Only useful for internal Meraki developers. Choices: |
|
If Choices: |
|
Whether to validate HTTP certificates. Choices: |
Notes
Note
More information about the Meraki API can be found at https://dashboard.meraki.com/api_docs.
Some of the options are likely only used for developers within Meraki.
As of Ansible 2.9, Meraki modules output keys as snake case. To use camel case, set the
ANSIBLE_MERAKI_FORMAT
environment variable tocamelcase
.Ansible's Meraki modules will stop supporting camel case output in Ansible 2.13. Please update your playbooks.
Check Mode downloads the current configuration from the dashboard, then compares changes against this download. Check Mode will report changed if there are differences in the configurations, but does not submit changes to the API for validation of change.
Examples
- name: Set single allowed URL pattern
meraki_content_filtering:
auth_key: abc123
org_name: YourOrg
net_name: YourMXNet
allowed_urls:
- "http://www.ansible.com/*"
- name: Set blocked URL category
meraki_content_filtering:
auth_key: abc123
org_name: YourOrg
net_name: YourMXNet
state: present
category_list_size: full list
blocked_categories:
- "Adult and Pornography"
- name: Remove match patterns and categories
meraki_content_filtering:
auth_key: abc123
org_name: YourOrg
net_name: YourMXNet
state: present
category_list_size: full list
allowed_urls: []
blocked_urls: []
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
---|---|
Information about the created or manipulated object. Returned: info |
|
Explicitly permitted URL patterns Returned: query for policy Sample: :ansible-rv-sample-value:`["http://www.ansible.com"]` |
|
List of blocked URL categories Returned: query for policy |
|
Unique ID of category to filter Returned: query for policy Sample: :ansible-rv-sample-value:`["meraki:contentFiltering/category/1"]` |
|
Name of category to filter Returned: query for policy |
|
Explicitly denied URL patterns Returned: query for policy Sample: :ansible-rv-sample-value:`["http://www.ansible.net"]` |
|
List of available content filtering categories. Returned: query for categories |
|
Unique ID of content filtering category. Returned: query for categories Sample: :ansible-rv-sample-value:`"meraki:contentFiltering/category/1"` |
|
Name of content filtering category. Returned: query for categories |
|
Size of categories to cache on MX appliance Returned: query for policy |
Status
This module will be removed in version 3.0.0. [deprecated]
For more information see DEPRECATED.