ansible / ansible.builtin / v2.6.17 / module / ce_aaa_server Manages AAA server global configuration on HUAWEI CloudEngine switches. | "added in version" 2.4 of ansible.builtin" Authors: wangdezhuang (@CloudEngine-Ansible) preview | supported by communityansible.builtin.ce_aaa_server (v2.6.17) — module
pip
Install with pip install ansible==2.6.17
Manages AAA server global configuration on HUAWEI CloudEngine switches.
- name: AAA server test hosts: cloudengine connection: local gather_facts: no vars: cli: host: "{{ inventory_hostname }}" port: "{{ ansible_ssh_port }}" username: "{{ username }}" password: "{{ password }}" transport: cli tasks: - name: "Radius authentication Server Basic settings" ce_aaa_server: state: present authen_scheme_name: test1 first_authen_mode: radius radius_server_group: test2 provider: "{{ cli }}" - name: "Undo radius authentication Server Basic settings" ce_aaa_server: state: absent authen_scheme_name: test1 first_authen_mode: radius radius_server_group: test2 provider: "{{ cli }}" - name: "Hwtacacs accounting Server Basic settings" ce_aaa_server: state: present acct_scheme_name: test1 accounting_mode: hwtacacs hwtacas_template: test2 provider: "{{ cli }}" - name: "Undo hwtacacs accounting Server Basic settings" ce_aaa_server: state: absent acct_scheme_name: test1 accounting_mode: hwtacacs hwtacas_template: test2 provider: "{{ cli }}"
state: choices: - present - absent default: present description: - Specify desired state of the resource. domain_name: description: - Name of a domain. The value is a string of 1 to 64 characters. accounting_mode: choices: - invalid - hwtacacs - radius - none description: - Accounting Mode. acct_scheme_name: description: - Accounting scheme name. The value is a string of 1 to 32 characters. hwtacas_template: description: - Name of a HWTACACS template. The value is a string of 1 to 32 case-insensitive characters. local_user_group: description: - Name of the user group where the user belongs. The user inherits all the rights of the user group. The value is a string of 1 to 32 characters. first_authen_mode: choices: - invalid - local - hwtacacs - radius - none description: - Preferred authentication mode. first_author_mode: choices: - invalid - local - hwtacacs - if-authenticated - none description: - Preferred authorization mode. authen_scheme_name: description: - Name of an authentication scheme. The value is a string of 1 to 32 characters. author_scheme_name: description: - Name of an authorization scheme. The value is a string of 1 to 32 characters. radius_server_group: description: - RADIUS server group's name. The value is a string of 1 to 32 case-insensitive characters.
changed: description: check to see if a change was made on the device returned: always sample: true type: boolean end_state: description: k/v pairs of aaa params after module execution returned: always sample: accounting scheme: - - hwtacacs - test1 hwtacacs template: - huawei - test2 type: dict existing: description: k/v pairs of existing aaa server returned: always sample: accounting scheme: - - hwtacacs - - default hwtacacs template: - huawei type: dict proposed: description: k/v pairs of parameters passed into module returned: always sample: accounting_mode: hwtacacs acct_scheme_name: test1 hwtacas_template: test2 state: present type: dict updates: description: command sent to the device returned: always sample: - accounting-scheme test1 - accounting-mode hwtacacs - hwtacacs server template test2 - hwtacacs enable type: list