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.
39 lines
854 B
39 lines
854 B
5 years ago
|
---
|
||
|
- 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
|
||
|
|
||
4 years ago
|
- name: Install docker engine on worker nodes
|
||
5 years ago
|
apt:
|
||
|
name:
|
||
|
- docker-ce
|
||
|
|
||
4 years ago
|
- name: Fix docker kernel module (from bridge utils) missing issue
|
||
5 years ago
|
command: touch /.dockerenv
|
||
|
run_once: true
|
||
|
notify: Restart docker
|
||
4 years ago
|
|