auth_radius_servers - RADIUS Resource
Added in version 1.0.0.
Synopsis
RADIUS Resource.
Use API “/resource-api/v2/auth/radius-servers”.
Requirements
The below requirements are needed on the host that executes this module.
ansible>=2.17.0
Parameters
- state The state of the module. "present" means create or update the resource, "absent" means delete the resource.type: strchoices: ['present', 'absent']default: present
- force_behavior Specify this option to force the method to use to interact with the resource.type: strchoices: ['none', 'read', 'create', 'update', 'delete']default: none
- bypass_validation Bypass validation of the module.type: booldefault: False
- params The parameters of the module.[Required]type: dict
- primary_key [Required]type: str
- auth_type type: strchoices: ['auto', 'chap', 'ms_chap', 'ms_chap_v2', 'pap']
- primary_server type: str
- primary_secret type: str
- included_in_default_user_group type: bool
- secondary_server type: str
- secondary_secret type: str
Examples
- name: Auth Radius Server
hosts: fortisase
gather_facts: false
vars:
primary_key: "radius_server_example"
tasks:
- name: Create/Update Auth Radius Server
fortinet.fortisase.auth_radius_servers:
state: present
params:
primary_key: "{{ primary_key }}"
primary_secret: "radius"
primary_server: "2.3.4.5"
auth_type: "auto"
included_in_default_user_group: false
- name: Delete Auth Radius Server
fortinet.fortisase.auth_radius_servers:
state: absent
params:
primary_key: "{{ primary_key }}"
Return Values
- http_code type: intreturned: always
- response type: rawreturned: always