cs171027
4 years ago
7 changed files with 57 additions and 23 deletions
@ -0,0 +1,5 @@ |
|||
[defaults] |
|||
#added parameters for actual management of LXC nodes with ansible because of bridged |
|||
#networking packet loss |
|||
gather_timeout = 30 |
|||
timeout = 30 |
@ -1,3 +1,3 @@ |
|||
#!/bin/bash |
|||
[ `id -u` -ne 0 ] && exit 1 |
|||
ansible-playbook -i inventory/hosts --tags swarm --diff -v galera.yml |
|||
ansible-playbook -i inventory/hosts --tags swarm --diff -v stack.yml |
|||
|
@ -0,0 +1,38 @@ |
|||
--- |
|||
- 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 |
|||
|
Loading…
Reference in new issue