Files
iris-context/commands/ops/ansible_playbook.go
T
VERSE 2ef3c90819 feat(commands): more commands (#30)
- I wrote a scripts to copy and generate all commands missing in iris
from fig repo: https://github.com/withfig/autocomplete
- Add a new script to generate commands docs about which commands
currently are inside commands folder
377d4aac663590e504fe39a92eb4dac4cbd333b2
- Add more icons e64d4e70a1db61e62053460a882e093bd6373ab1
2026-07-04 22:08:36 +07:00

51 lines
3.2 KiB
Go

package ops
import (
"github.com/versenilvis/iris/commands/core"
)
func init() {
core.Register(&core.Spec{
Name: "ansible-playbook",
Description: "Runs Ansible playbooks, executing the defined tasks on the targeted hosts",
Options: []core.Option{
{Name: "--ask-vault-pass", Description: "Ask for vault password"},
{Name: "--flush-cache", Description: "Clears the fact cache for every host in inventory"},
{Name: "--force-handlers", Description: "Run handlers even if a task fails"},
{Name: "--list-hosts", Description: "Outputs a list of matching hosts; does not execute"},
{Name: "--list-tags", Description: "List all available tags"},
{Name: "--list-tasks", Description: "List all tasks that would be executed"},
{Name: "--skip-tags", Description: "Only run plays and tasks whose tags do not match these values"},
{Name: "--start-at-task", Description: "Start the playbook at the task matching this name one-step-at-a-time"},
{Name: "--step", Description: "Execute one-step-at-a-time"},
{Name: "--syntax-check", Description: "Perform a syntax check on the playbook, but do not execute it"},
{Name: "--vault-id", Description: "Specify the vault identity to use"},
{Name: "--vault-password-file", Description: "Specify a vault password file"},
{Name: "--version", Description: "When changing (small) files and templates, show the differences in those files"},
{Name: "--module-path", Description: "Prepend colon-separated path(s) to module library"},
{Name: "--extra-vars", Description: "Set additional variables as key=value or YAML/JSON, if filename prepend with @"},
{Name: "--forks", Description: "Specify number of parallel processes to use"},
{Name: "--help", Description: "Show help for ansible"},
{Name: "--inventory", Description: "Specify inventory host path or comma separated host list"},
{Name: "--limit", Description: "Limit selected hosts to an additional pattern"},
{Name: "--tags", Description: "Only run plays and tasks tagged with these values"},
{Name: "--verbose", Description: "Enable verbose mode"},
{Name: "-vvv", Description: "Enable very verbose mode"},
{Name: "-vvvv", Description: "Enable connection debug mode"},
{Name: "--become-method", Description: "Privilege escalation method to use"},
{Name: "--become-user", Description: "Privilege escalation user to use"},
{Name: "--ask-become-pass", Description: "Prompt for privilege escalation password"},
{Name: "--become", Description: "Run operations with become"},
{Name: "--private-key", Description: "Use this fole to authenticate the connection"},
{Name: "--scp-extra-args", Description: "Extra arguments to pass to (only) scp"},
{Name: "--sftp-extra-args", Description: "Extra arguments to pass to (only) sftp"},
{Name: "-ssh-extra-args", Description: "Extra arguments to pass to (only) ssh"},
{Name: "--ssh-common-args", Description: "Extra arguments to pass to sftp/scp/ssh"},
{Name: "--timeout", Description: "Override the connection timeout in seconds"},
{Name: "--connection", Description: "Connection type to use"},
{Name: "--ask-pass", Description: "Ask for connection password"},
{Name: "--user", Description: "Connect as this user"},
},
})
}