Skip to content
This repository has been archived by the owner on Jan 16, 2024. It is now read-only.
/ ansible-role-deploy Public archive

This Ansible role is used for deploying your Docker application on a Debian server

License

Notifications You must be signed in to change notification settings

skrepr/ansible-role-deploy

Repository files navigation

skrepr

Ansible Role Deploy

Releases LICENSE CI Issues PR Commits Stars Forks

About

This Ansible role is used for deploying your Docker application on a Debian server

Ansible Role Ansible Role Ansible Quality Score

Requirements

  • SSH access to the server
  • Git repository with project
  • Docker Compose file

Role Variables

If you want to use a differently named docker-compose file, you can change that. The default is docker-compose.yml

docker-compose_name: docker-compose.yml

Give the url of the git repo from which needs to be pulled.

repository_url: git@github.com:skrepr/ansible-role-deploy.git

Give the directory where the application needs te be installed on the server. The default is /home/deploy/project

project_directory: /home/deploy/project

Choose the branch you want to use for pulling

git_branch: main

Choose the port where the docker nginx container will be running. If you're not using nginx or a webserver in the container environment, you can disable it all together.

nginx_config: true
nginx_port_container: 8080

Dependencies

None.

Example Playbook

#!/usr/bin/env ansible-playbook


- hosts: production
  become: true
  become_flags: "--preserve-env=SSH_AUTH_SOCK"

  roles:
   - geerlingguy.git
   - geerlingguy.pip
   - geerlingguy.docker
   - geerlingguy.nginx
   - skrepr.deploy

License

MIT / BSD

Author Information

This role was created in 2021 by Jeroen van der Meulen, commisioned by Skrepr

About

This Ansible role is used for deploying your Docker application on a Debian server

Topics

Resources

License

Security policy

Stars

Watchers

Forks

Languages