andock.environment
andock.environment
andock.environment is a Ansible role which: Creates updates and remove Andock environments.
Requirements
In order to build your apps with Andock, you will need:
- Ansible
- Docksal
- git on both machines
Role Variables
vars:
git_artifact_repository_path: https://github.com/andock/demo-project.git
project_name: demo-project-name
project_id: demo-project
branch: "master"
mounts:
files:
path: docroot/files
virtual_hosts:
default:
virtual_host: "{{ branch }}.demo-project-fin.docksal"
container: web
sub:
virtual_host: "{{ branch }}.demo2-project-fin.docksal"
container: web
hook_init_tasks: "hooks/init_tasks.yml"
docksal_env:
XDEBUG_ENABLED: "0"
hook_init_tasks: "hooks/init_tasks.yml" #Task file for the project init. Run site-install here.
hook_update_tasks: "hooks/update_tasks.yml" #Task file for the project init. Run site-install here.
hook_deploy_done: "hooks/deploy_done_tasks.yml" #Task file after deployment was done.
hook_deploy_failure: "hooks/hook_deploy_failure.yml" #Task file after deployment failed.
Installation
Andock is an Ansible role distributed globally using Ansible Galaxy. In order to install Andock role you can use the following command.
$ ansible-galaxy install andock.environment
Update
If you want to update the role, you need to pass --force parameter when installing. Please, check the following command:
$ ansible-galaxy install --force andock.environment
License
GPL
Author Information
Christian Wiedemann (christian.wiedemann@key-tec.de)