This is meant to ALWAYS be included as the first task of a play. If you include this role, as you will in the vast majority of cases, be sure to also include the _exit
role as the last task of the play.
---
_init:
# A list of var directories to include. We only support .yml extensions.
# This is used to detect if the playbook must re-run or not.
vars_dirs: []
force_play: false
# ce_provision vars are sometimes needed even when the role isn't used so we define them here.
# If you are using ce_provision and *not* using _init you can copy these vars to your playbook.
_ce_provision:
username: "{% if is_local is defined and is_local %}ce-dev{% else %}controller{% endif %}"
ce_provision:
username: "{{ _ce_provision.username }}"
new_user: true # set to false if user already exists or is ephemeral, e.g. an LDAP user
key_name: id_rsa.pub # existing users may have a key of a different name
# Main repo.
own_repository: "https://github.com/codeenigma/ce-provision.git"
own_repository_branch: "master"
own_repository_skip_checkout: false
# Destination.
local_dir: "/home/{{ _ce_provision.username }}/ce-provision"
# Private config repo.
config_repository: ""
config_repository_branch: "master"
config_repository_skip_checkout: false
# Extra config repo.
extra_repository: ""
extra_repository_branch: "master"
extra_repository_skip_checkout: false
extra_repository_vars_file: "custom.yml"
# Wether to commit back changes to extra repo.
extra_repository_push: false
extra_repository_allowed_vars: []
# List of additional groups to add the user to.
groups: []
# File containing default roles and collections to install via Ansible Galaxy.
# Roles will be installed to $HOME/.ansible/roles for the provision user. This roles path should be added to your ansible.cfg file.
galaxy_custom_requirements_file: "/home/{{ _ce_provision.username }}/ce-provision/config/files/galaxy-requirements.yml"