ansible / ansible.builtin / v2.5.6 / 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.5.6) — module
pip
Install with pip install ansible==2.5.6
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. required: false domain_name: default: null description: - Name of a domain. The value is a string of 1 to 64 characters. required: false accounting_mode: choices: - invalid - hwtacacs - radius - none default: null description: - Accounting Mode. required: false acct_scheme_name: default: null description: - Accounting scheme name. The value is a string of 1 to 32 characters. required: false hwtacas_template: default: null description: - Name of a HWTACACS template. The value is a string of 1 to 32 case-insensitive characters. required: false local_user_group: default: null 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. required: false first_authen_mode: choices: - invalid - local - hwtacacs - radius - none default: null description: - Preferred authentication mode. required: false first_author_mode: choices: - invalid - local - hwtacacs - if-authenticated - none default: null description: - Preferred authorization mode. required: false authen_scheme_name: default: null description: - Name of an authentication scheme. The value is a string of 1 to 32 characters. required: false author_scheme_name: default: null description: - Name of an authorization scheme. The value is a string of 1 to 32 characters. required: false radius_server_group: default: null description: - RADIUS server group's name. The value is a string of 1 to 32 case-insensitive characters. required: false
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