ansible-playbook

ansible-playbook

TLDR

Run tasks in playbook

$ ansible-playbook [playbook]
copy

Run tasks in playbook with custom host inventory

$ ansible-playbook [playbook] -i [inventory_file]
copy

Run tasks in playbook with extra variables defined via the command-line

$ ansible-playbook [playbook] -e "[variable1]=[value1] [variable2]=[value2]"
copy

Run tasks in playbook with extra variables defined in a json file

$ ansible-playbook [playbook] -e "@[variables.json]"
copy

Run tasks in playbook for the given tags

$ ansible-playbook [playbook] --tags [tag1,tag2]
copy

Run tasks in a playbook starting at a specific task

$ ansible-playbook [playbook] --start-at [task_name]
copy

Copied to clipboard
Dodo Farming