This Ansible Collection includes Ansible content to help automate the management of Flight Control resources.
This collection enables organizations to automate time-consuming, error-prone tasks, enhancing efficiency and reducing manual effort. By leveraging it, teams can quickly adapt to shifting conditions across diverse IT environments, improving both operational agility and resilience. Its primary goal is to streamline mission-critical workflows for better overall performance.
Tested with the Ansible Core >= 2.15.0 versions, and the current development version of Ansible.
This collection requires Python 3.10 or greater.
You can either call modules, rulebooks and playbooks by their Fully Qualified Collection Name (FQCN), such as ansible.eda.activation, or you can call modules by their short name if you list the flightctl.edge collection in the playbook's collections keyword:
---
- name: Create a new test device
flightctl.edge.flightctl:
kind: Device
name: "test-ansible-device"
api_version: v1alpha1
- name: Create a new device
flightctl.edge.flightctl:
kind: Device
name: "test-ansible-device-2"
resource_definition: "{{ lookup('file', 'device.yml') | from_yaml }}"
- name: Update new test device
flightctl.edge.flightctl:
kind: Device
name: "test-ansible-device"
api_version: v1alpha1
resource_definition:
apiVersion: v1alpha1
kind: Device
metadata:
labels:
fleet: default
novalue: ""
- name: Get information about a specific device
flightctl.edge.flightctl_info:
kind: Device
name: "test-ansible-device"
- name: Delete a test device
flightctl.edge.flightctl:
kind: Device
name: "test-ansible-device"
state: absent
- name: Get all devices
flightctl.edge.flightctl_info:
kind: Device
- name: Get all fleets
flightctl.edge.flightctl_info:
kind: Fleet
See LICENSE to see the full text.