playbook

strong-opx playbook

Run ansible playbook

usage: strong-opx playbook [-h] [--host [GROUP_NAME ...]] [--keep-host-state-unchanged] [--project PROJECT] [--env ENVIRONMENT] [-v {0,1,2,3}] [--traceback] playbook

positional arguments

playbook

Ansible playbook name (without extension) to run. Must be a file in playbooks/ directory

options

-h, --help

show this help message and exit

--host <group_name>

Specify hosts to deploy to

--keep-host-state-unchanged

Keep host state Unchanged

--project <project>

Select project by its name. If missing, strong-opx will attempt to auto-select project based on current working directory and its parents and looking for presence of configured project

--env <environment>

Environment name. If project has only one environment that will be auto selected

-v {0,1,2,3}, --verbosity {0,1,2,3}

Verbosity level; 0=minimal output, 1=normal output, 2=verbose output, 3=very verbose output.

--traceback

Raise instead of handling known exceptions

Note

This command is a thin wrapper around ansible-playbook. It will automatically set the inventory file based on the current environment.

To pass additional arguments to ansible-playbook you can use the -- separator. All arguments after -- will be passed as it is to ansible-playbook.