Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/berttejeda/bert.tasks
https://github.com/berttejeda/bert.tasks
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/berttejeda/bert.tasks
- Owner: berttejeda
- Created: 2024-08-27T02:30:11.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2024-08-27T03:04:42.000Z (4 months ago)
- Last Synced: 2024-09-15T08:55:54.171Z (3 months ago)
- Language: Go
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Overview
This is a Golang rewrite of the python equivalent [ansible-taskrunner](https://github.com/berttejeda/ansible-taskrunner).
*bert.tasks* is an ansible wrapper that uses an ansible playbook file to define its command-line parameters.
The command-line parameters are used to build a subprocess call to `ansible-playbook`.
The goal is to be able to easily define command-line parameters that translate to ansible variables.
If no playbook file is specified, the app will search for 'Taskfile.yaml' in the current working directory.
Consult the data structure of the included ansible playbook: [Taskfile.yaml](Taskfile.yaml).
# Usage Example
* Show the help output
```bash
go run main.go --help
```
* Show the help output for the `run` subcommand, defined in the default playbook specification [Taskfile.yaml](Taskfile.yaml)
```bash
go run main.go run --help
```
* Show the help output for the `run` subcommand, explicitly specifying the playbook to use as input
```bash
go run main.go Taskfile.yaml run --help
````