Files
Ansible-Build/task
T
Janik von Rotz 51ac20f7e2 feat: update documentation and task script for merged mint_system inventory
- Replace all references to `inventories/odoo` and `inventories/setup` with `inventories/mint_system` in README.md
- Update cleanup playbook filename from `cleanup.yml.yml` to `cleanup.yml` in documentation examples
- Extend host configuration lookup in `task` script to search nested children groups if not found in direct children
- Update merge strategy prompt to include moving `odoo` and `nextcloud` group_vars to the new `setup` scope
2026-08-11 21:17:01 +02:00

925 lines
33 KiB
Bash
Executable File

#!/usr/bin/env bash
set -e
help-table() {
local -a rows
local max_cmd=7 max_opt=6 max_desc=11
rows+=("Command|Option|Description")
rows+=("===ENV===| | ")
rows+=("version||Show tool versions.")
rows+=("copy-dotenv|[env][env]|Copy .env file.")
rows+=("create-dotenv|[env][type]|Create .env file of type nextcloud, odoo, upgrade.")
rows+=("edit-dotenv|[env]|Open .env file in default editor.")
rows+=("list-dotenv||List .env files.")
rows+=("load-dotenv|[env]|Load and export .env file.")
rows+=("remove-dotenv|[env]|Remove environment config.")
rows+=("rename-dotenv|[env][env]|Rename .env file.")
)
rows+=("serve-vuepress||Serve vuepress build.")
rows+=("update-roles-doc||Update readme files in roles folder.")
rows+=("===LLM===| | ")
rows+=("commit-with-llm||Commit with llm generated commit message.")
rows+=("update-with-llm|[glob][prompt]|Feed files matching glob with prompt to LLM and apply file changes.")
rows+=("===DOCKER===| | ")
rows+=("login-docker|[user][token]|Run Docker login and create docker config.")
rows+=("===VAULT===| | ")
rows+=("convert-vault-file|[vault_id] [path]|Re-encrypt vault file as single strings.")
rows+=("decrypt-file|[path]|Decrypt Ansible Vault file.")
rows+=("encrypt-file|[vault_id] [path]|Encrypt file with Ansible Vault.")
rows+=("encrypt-string|[vault_id] [key] [value] -q|Generate encrypted string with Ansible Vault.")
rows+=("generate-encrypted-string|[vault_id] [key] -q|Generate encrypted string for key with Ansible Vault.")
rows+=("generate-vault-password|[vault_id] [password]|Generate a password file for Ansible Vault.")
rows+=("show-vault-file|[vault_id] [path]|Show content of encrypted strings or fully encrypted vault file.")
rows+=("===SETUP===| | ")
rows+=("install||Install Ansible and dependencies with uv.")
rows+=("install-ansible-build-scripts|[role]|Install scripts of the specified Ansbile role.")
rows+=("install-exo||Install Exoscale CLI.")
rows+=("show-passwordless-sudo|[username]|Give instructions to setup passwordless sudo.")
rows+=("upgrade||Upgrade Ansible and dependencies with uv.")
rows+=("===DEVELOPMENT===| | ")
rows+=("lint||Lint Ansible roles and playbooks.")
rows+=("source||Source the Python virtual env.")
rows+=("===REPORT===| | ")
rows+=("get-last-hostname|[role]|Search inventory for \$ROLE_hostname entries.")
rows+=("list-hosts|[path] [grep]|Lists all hosts of an inventory.")
rows+=("list-roles||Lists all roles.")
rows+=("list-vault||Lists vault identities.")
rows+=("list-deployments-odoo|[path]|List Odoo deplyments.")
rows+=("===GIT===| | ")
rows+=("pull-repos||Pull git repos in inventories f