Skip to content

Ansible role to deploy a docker stack to one of a group of docker managers.

Notifications You must be signed in to change notification settings

raarts/stack-deploy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Stack Deploy

Deploy a docker stack file to a docker swarm. For use in a GitLab CI environment. Can also create docker networks, but in a specific naming convention.

Includes ansible-lookup-gitlab-ci-env

Requirements

None

Role Variables

  • stack: basename of the stack .yml file, expected in the ./stacks directory
  • docker_networks: array of docker network names to create
  • docker_registry: name of the registry to download images from
  • debug: if true leaves info on env variables in /tmp

Dependencies

none

Example Playbook

- name: "Deploy the API"
  hosts: all
  become: true
  roles:
    - { role: stack-deploy }

License

BSD

About

Ansible role to deploy a docker stack to one of a group of docker managers.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages