Galera cluster deployment based on docker swarm using Linux Containers (LXC) with automatic deployment via Ansible.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

38 lines
854 B

---
- name: Install python-apt to use ansible apt module
shell: apt update && apt install -y python-apt
- name: Ensure python and other dependencies are installed.
apt:
name:
- apt-transport-https
- ca-certificates
- gnupg
- python-pip
state: present
- name: pip install docker
pip:
name: docker
state: present
- name: Add docker gpg key
apt_key:
url: "https://download.docker.com/linux/debian/gpg"
state: present
- name: Add docker stable repository for debian
apt_repository:
repo: "deb https://download.docker.com/linux/debian stretch stable"
state: present
- name: Install docker engine on worker nodes
apt:
name:
- docker-ce
- name: Fix docker kernel module (from bridge utils) missing issue
command: touch /.dockerenv
run_once: true
notify: Restart docker