Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nosmoht/ansible-library-fleet
Ansible library to manage Fleet units using the command line
https://github.com/nosmoht/ansible-library-fleet
Last synced: 21 days ago
JSON representation
Ansible library to manage Fleet units using the command line
- Host: GitHub
- URL: https://github.com/nosmoht/ansible-library-fleet
- Owner: Nosmoht
- Created: 2015-05-04T10:44:05.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-05-21T08:33:27.000Z (over 9 years ago)
- Last Synced: 2023-12-16T19:23:22.837Z (11 months ago)
- Language: Python
- Size: 125 KB
- Stars: 0
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
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][Thomas Krahn]: mailto:[email protected]
[fleetctl]: https://github.com/coreos/fleet/tree/master/fleetctl