Skip to content

bsedin/ansible-spiped

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spiped role for ansible

Create ./library directory in your ansible project:

mkdir ./library

And configure ansible.cfg:

[defaults]
roles_path = ./library

Add submodule:

git submodule add git@github.com:kressh/ansible-spiped.git library/spiped

Add keys to library/spiped/keys and define spiped_containers variable. For example:

spiped_containers:
  - name: postgresql-db01
    source: '[0.0.0.0]:5432'
    target: postgresql:5432
    mode: '-d'
    key: postgresql.key
    links:
      - postgresql
    published_ports:
      - '{{ ip }}:5432:5432'
    networks:
      - name: bridge
        ipv4_address: 172.17.100.200
        aliases:
          - postgresql-alias

Use role:

---
- hosts: db01.yourserver.io
  remote_user: ansible
  become: true
  roles:
    - spiped

About

Ansible recipe to run spiped docker containers

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors