28 lines
783 B
YAML
28 lines
783 B
YAML
---
|
|
- hosts: debiantest
|
|
gather_facts: yes
|
|
vars_files:
|
|
- ./test/vars_docker.yml
|
|
pre_tasks:
|
|
- debug: var=ansible_python_interpreter
|
|
- debug: var=ansible_python_version
|
|
- name: Install docker
|
|
shell: |
|
|
apt-get update
|
|
apt-get install -y \
|
|
apt-transport-https \
|
|
ca-certificates \
|
|
curl \
|
|
gnupg-agent \
|
|
software-properties-common
|
|
curl -fsSL https://download.docker.com/linux/debian/gpg | apt-key add -
|
|
add-apt-repository \
|
|
"deb [arch=amd64] https://download.docker.com/linux/debian \
|
|
$(lsb_release -cs) \
|
|
stable"
|
|
apt-get update
|
|
apt-get install -y docker-ce docker-ce-cli containerd.io
|
|
|
|
roles:
|
|
- ansible-bibliogram
|