Skip to content

Latest commit

 

History

History
41 lines (33 loc) · 1000 Bytes

README.md

File metadata and controls

41 lines (33 loc) · 1000 Bytes

ansible-library-fleet

Description

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.

Requirements

  • Ansible must be installed
  • fleetctl must be installed on the system where Ansible is running on.

Example

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

Author information

Thomas Krahn