ansible / ansible.builtin / v2.8.20 / module / _aos_device
Removed in 2.9
Reason:This module does not support AOS 2.1 or later | Alternative:See new modules at U(https://www.ansible.com/ansible-apstra).
Manage Devices on AOS Server
| "added in version" 2.3 of ansible.builtin"
Authors: Damien Garros (@dgarros)
deprecated | supported by community
pip
Install with pip install ansible==2.8.20
Apstra AOS Device module let you manage your devices in AOS easily. You can approve devices and define in which state the device should be. Currently only the state I(normal) is supported but the goal is to extend this module with additional state. This module is idempotent and support the I(check) mode. It's using the AOS REST API.
- name: Approve a new device aos_device: session: "{{ aos_session }}" name: D2060B2F105429GDABCD123 state: 'normal' approve: true location: "rack-45, ru-18"
id: description: - The AOS internal id for a device; i.e. uniquely identifies the device in the AOS system. Only one of I(name) or I(id) can be set. name: description: - The device serial-number; i.e. uniquely identifies the device in the AOS system. Only one of I(name) or I(id) can be set. state: choices: - normal default: normal description: - Define in which state the device should be. Currently only I(normal) is supported but the goal is to add I(maint) and I(decomm). approve: default: 'no' description: - The approve argument instruct the module to convert a device in quarantine mode into approved mode. type: bool session: description: - An existing AOS session as obtained by M(aos_login) module. required: true location: description: - When approving a device using the I(approve) argument, it's possible define the location of the device.