This plugin will let BitOps to automatically deploy ansible scripts on any provider or run ansible scripts for configuration management.
ansible plugin uses bitops.config.yaml located in the operations repo when deploying ansible scripts.
ansible:
  cli:
    main-playbook: playbook.yaml
    extra-vars: "@extra-vars.json"
    flush-cache: true
    force-handlers: true
    forks: 20
    inventory: beta
    skip-tags: ignore-this-tag
    tags: run-with-this-tag
    dryrun: false
  options:
    verbosity: 4
CLI configuration is used to pass in CLI parameters to the ansible-playbook command.
| Parameter | Environment Variable | Type | Required | Default | Description | 
|---|---|---|---|---|---|
main-playbook | 
BITOPS_ANSIBLE_MAIN_PLAYBOOK | 
string | yes | playbook.yaml | 
Specify which playbook to run ansible-playbook with | 
extra-vars | 
BITOPS_ANSIBLE_EXTRA_VARS | 
string | no | Add additional ansible playbook parameters directly or load via JSON/YAML file. | |
flush-cache | 
BITOPS_ANSIBLE_FLUSH_CACHE | 
boolean | no | Clear the fact cache for every host in inventory. | |
force-handlers | 
BITOPS_ANSIBLE_FORCE_HANDLERS | 
boolean | no | Clear the fact cache for every host in inventory. | |
forks | 
BITOPS_ANSIBLE_FORKS | 
integer | no | Specify number of parallel processes to use. | |
inventory | 
BITOPS_ANSIBLE_INVENTORY | 
string | no | Specify inventory host path or comma separated host list. | |
skip-tags | 
BITOPS_ANSIBLE_SKIP_TAGS | 
string | no | Only run plays and tasks whose tags do not match these values. | |
tags | 
BITOPS_ANSIBLE_TAGS | 
string | no | Only run plays and tasks tagged with these values. | |
dryrun | 
BITOPS_ANSIBLE_DRYRUN | 
boolean | no | Don't make any changes; instead, try to predict some of the changes that may occur. | 
Options configurations are used to export variables without using the CLI generation or for any advanced logic that is not supported by the Ansible CLI.
| Parameter | Environment Variable | Type | Required | Default | Description | 
|---|---|---|---|---|---|
skip-deploy | 
ANSIBLE_SKIP_DEPLOY | 
boolean | no | If set to "true", regardless of the stack-action, deployment actions will be skipped. | |
verbosity | 
BITOPS_ANSIBLE_VERBOSITY | 
integer | no | Equivalent to adding -verbose or repeating -v flags. Will override [default] verbosity= setting in ansible.cfg. Acceptable values 0|1|2|3|4. |