https://github.com/aboutbits/ansible-docker-deployment
Ansible - Docker Deployment Role
https://github.com/aboutbits/ansible-docker-deployment
ansible ansible-role docker docker-deployment
Last synced: about 1 month ago
JSON representation
Ansible - Docker Deployment Role
- Host: GitHub
- URL: https://github.com/aboutbits/ansible-docker-deployment
- Owner: aboutbits
- Created: 2020-04-22T12:59:03.000Z (about 6 years ago)
- Default Branch: main
- Last Pushed: 2024-07-29T13:55:13.000Z (almost 2 years ago)
- Last Synced: 2025-01-08T05:51:25.623Z (over 1 year ago)
- Topics: ansible, ansible-role, docker, docker-deployment
- Homepage:
- Size: 34.2 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
Ansible Docker Deployment Role
==============================
Deployment of a Docker project.
## Role Variables
- `docker_deployment_project_name`: The name of the project (no whitespaces allowed)
- `docker_deployment_release_name`: The name of the release
- `docker_deployment_release_files`: A list of files that should be copied to the release folder (with local and remote path)
- `docker_deployment_release_templates`: A list of template files that should be copied to the release folder (with local and remote path)
- `docker_deployment_shared_files`: A list of files that should be copied to the shared folder if they don't already exist (with local and remote path)
## Example Playbook
```yaml
- hosts: all
tasks:
- ansible.builtin.include_role:
name: ansible-docker-deployment
vars:
docker_deployment_project_name: project-name
docker_deployment_release_name: 1
docker_deployment_release_files:
- local: docker-compose.run.yml
remote: docker-compose.yml
docker_deployment_release_templates:
- local: .env.j2
remote: .env
docker_deployment_shared_files: []
```
## Build & Publish
To build and publish the role, visit the GitHub Actions page of the repository and trigger the workflow "Release Package" manually.