- Description
- Requirements
- Examples
- License
- [Author information](#author information)
Ansible library to manage Fleet units. This module uses a local installed fleetctl binary and not the rest interface!
If 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 unit file is submitted
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
Copyright 2015 Thomas Krahn
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.