Coder Social home page Coder Social logo

ansible_role.docker_stacks's Introduction

ROLE dginhoux.docker_stacks

DESCRIPTION

This ansible role deploy swarm stacks.

REQUIREMENTS

SUPPORTED PLATFORMS

Platform Versions
Debian all
EL all
Fedora all
Ubuntu all

ANSIBLE VERSION

Ansible >= 2.13

DEPENDENCIES

None.

INSTALLATION

ANSIBLE GALAXY

ansible-galaxy install dginhoux.docker_stacks

GIT

git clone https://github.com/dginhoux/ansible_role.docker_stacks dginhoux.docker_stacks

USAGE

EXAMPLE PLAYBOOK

- hosts: all
  tasks:
    - name: start role dginhoux.docker_stacks
      ansible.builtin.include_role:
        name: dginhoux.docker_stacks

VARIABLES

DEFAULT VARIABLES

Defaults variables defined in defaults/main.yml

EXAMPLES VARIABLES

swarm_stacks_action: deploy
## rm value is used to force remove all stacks listed in the following list
# swarm_stacks_action: rm

swarm_stacks_list:
  - name: registry-cache
    state: present
    compose: /mnt/gfs_lv_swarm_registry/registry-stack/registry-cache/docker-compose.yml
  - name: registry-build
    state: present
    compose: /mnt/gfs_lv_swarm_registry/registry-stack/registry-build/docker-compose.yml

swarm_overlay_networks_list:
  - name: test1
    state: present
    force: false
    scope: swarm
    driver: overlay
    enable_ipv6: false
    attachable: false
    internal: false
    # labels: 
    # ipam_config: 
    # ipam_driver: 
    # ipam_driver_options: 
    driver_options:
      com.docker.network.bridge.name: test1

  - name: test2
    state: present
    force: false
    scope: swarm
    driver: overlay
    enable_ipv6: false
    attachable: false
    internal: false
    # labels: 
    # ipam_config: 
    # ipam_driver: 
    # ipam_driver_options:
    driver_options:
      com.docker.network.bridge.name: test2

DEFAULT OS SPECIFIC VARIABLES

Those variables files are located in vars/*.yml are used to handle OS differences.
One of theses is loaded dynamically during role runtime using the include_vars module and set OS specifics variable's.

NOT USED BY THIS ROLE

AUTHOR

Dany GINHOUX - https://github.com/dginhoux

LICENSE

MIT

ansible_role.docker_stacks's People

Watchers

Dany GINHOUX avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.