Ansible library to manage Fleet units. The module uses a local installed fleetctl binary and not the rest interface!
If your fleetctl is not inside PATH use Ansible's environment declaration.
- Ansible must be installed
- fleetctl must be installed on the system where Ansible is running on.
Ensure a unit file is submitted
- name: Ensure submitted unit file
fleet_unit:
name: /tmp/fleet_unit.service
state: submitted
Ensure a service provided by a unit file is running
- name: Ensure service is running
fleet_unit: /tmp/fleet_unit.service
state: running
Ensure all services defined by unit files in a directory are loaded together
- name: Ensure services are loaded
fleet_unit:
path: /tmp/mydirectory
state: loaded