Files
ansible-hpa-playbook/roles/setup-project/defaults/main.yml

50 lines
1.7 KiB
YAML

---
# template:
# path: "/path/to/local/template/dir
# vars: "repo_vars" (optional path inside template directory to find variables, defaults to 'repo_vars')
#
# OR
#
# template:
# repo:
# url: "https://example.com/template.git
# version: "1.0.0" or "branch" (tagging to a version is more ideal)
#
template:
# The preject directory to setup in.
project_dir: "{{ lookup('env', 'PWD') }}"
# This path get's setup / parsed based on the template variable,
# it will point to the directory of the template, which could be a
# local path on the system or inside of the project directory, depending
# on if the template is a repo or not.
#
# This is safe to use inside of the project or template specifications
# for paths to files that live in the template directory not the project
# directory.
template_dir: ""
# Files or directories that are copied from the template directory to the project
# directory.
#
# These can be a simple item that is a path from the root of the template directory
# to a file, which will copy the file to the root of the project directory or
# in the form of:
#
# src: "path/in/template/dir"
# dest: "path/in/project/dir"
# mode: '0600' (optional mode of the file/dir to copy)
#
copy_on_setup: []
# Copies the entire contents of a directory to the root of the project directory.
#
# This is useful if you keep all the template files in a sub-directory of your project
# template, it will copy that entire directory over when setting up a new project.
#
# NOTE: If the project has been setup (indicated by a .setup file) this
# will be skipped so that it does not overwrite any changes to the
# project files. This ensures that a project is only setup once.
copy_directory_on_setup: []