dellemc / dellemc.enterprise_sonic / 2.4.0 / module / sonic_aaa Manage AAA and its parameters | "added in version" 1.1.0 of dellemc.enterprise_sonic" Authors: Abirami N (@abirami-n) This plugin has a corresponding action plugin.dellemc.enterprise_sonic.sonic_aaa (2.4.0) — module
Install with ansible-galaxy collection install dellemc.enterprise_sonic:==2.4.0
collections: - name: dellemc.enterprise_sonic version: 2.4.0
This module is used for configuration management of aaa parameters on devices running Enterprise SONiC.
# Using deleted # # Before state: # ------------- # # do show aaa # AAA Authentication Information # --------------------------------------------------------- # failthrough : True # login-method : local - name: Delete aaa configurations dellemc.enterprise_sonic.sonic_aaa: config: authentication: data: local: True state: deleted
# After state: # ------------ # # do show aaa # AAA Authentication Information # --------------------------------------------------------- # failthrough : True # login-method : # Using deleted # # Before state: # ------------- # # do show aaa # AAA Authentication Information # --------------------------------------------------------- # failthrough : True # login-method : local - name: Delete aaa configurations dellemc.enterprise_sonic.sonic_aaa: config: state: deleted
# After state: # ------------ # # do show aaa # AAA Authentication Information # --------------------------------------------------------- # failthrough : # login-method : # Using merged # # Before state: # ------------- # # do show aaa # AAA Authentication Information # --------------------------------------------------------- # failthrough : False # login-method : - name: Merge aaa configurations dellemc.enterprise_sonic.sonic_aaa: config: authentication: data: local: true fail_through: true state: merged
# After state: # ------------ # # do show aaa # AAA Authentication Information # --------------------------------------------------------- # failthrough : True # login-method : local # Using replaced # # Before state: # ------------- # # do show aaa # AAA Authentication Information # --------------------------------------------------------- # failthrough : False # login-method : local, radius - name: Replace aaa configurations dellemc.enterprise_sonic.sonic_aaa: config: authentication: data: group: ldap fail_through: true state: replaced
# After state: # ------------ # # do show aaa # AAA Authentication Information # --------------------------------------------------------- # failthrough : True # login-method : local, ldap # Using overridden # # Before state: # ------------- # # do show aaa # AAA Authentication Information # --------------------------------------------------------- # failthrough : False # login-method : local, radius - name: Override aaa configurations dellemc.enterprise_sonic.sonic_aaa: config: authentication: data: group: tacacs+ fail_through: true state: overridden
state: choices: - merged - deleted - overridden - replaced default: merged description: - Specifies the operation to be performed on the aaa parameters configured on the device. - In case of merged, the input configuration will be merged with the existing aaa configuration on the device. - In case of deleted the existing aaa configuration will be removed from the device. - In case of replaced, the existing aaa configuration will be replaced with provided configuration. - In case of overridden, the existing aaa configuration will be overridden with the provided configuration. type: str config: description: - Specifies the aaa related configurations suboptions: authentication: description: - Specifies the configurations required for aaa authentication suboptions: data: description: - Specifies the data required for aaa authentication suboptions: fail_through: description: - Specifies the state of failthrough type: bool group: choices: - ldap - radius - tacacs+ description: - Specifies the method of aaa authentication type: str local: description: - Enable or Disable local authentication type: bool type: dict type: dict type: dict
after: description: The resulting configuration model invocation. returned: when changed sample: 'The configuration returned will always be in the same format of the parameters above. ' type: list after(generated): description: The generated configuration model invocation. returned: when C(check_mode) sample: "The configuration returned will always be in the same format\n of the parameters\ \ above.\n" type: list before: description: The configuration prior to the model invocation. returned: always sample: 'The configuration returned will always be in the same format of the parameters above. ' type: list commands: description: The set of commands pushed to the remote device. returned: always sample: - command 1 - command 2 - command 3 type: list