f07bf2a507
This is a role for installing docker on our control-plane servers. It is based on install-docker from zuul-jobs. Basic testinfra tests are added; because docker fiddles the iptables rules in magic ways, the firewall testing is moved out of the base tests and modified to partially match our base firewall configuration. Change-Id: Ia4de5032789ff0f2b07d4f93c0c52cf94aa9c25c
33 lines
623 B
YAML
33 lines
623 B
YAML
- name: Install pre-reqs
|
|
package:
|
|
name: "{{ item }}"
|
|
state: present
|
|
with_items:
|
|
- apt-transport-https
|
|
- ca-certificates
|
|
- curl
|
|
- software-properties-common
|
|
become: yes
|
|
|
|
- name: Add docker GPG key
|
|
become: yes
|
|
apt_key:
|
|
data: "{{ ubuntu_gpg_key }}"
|
|
|
|
# TODO(mordred) We should add a proxy cache mirror for this
|
|
- name: Add docker apt repo
|
|
become: yes
|
|
template:
|
|
dest: /etc/apt/sources.list.d/docker.list
|
|
group: root
|
|
mode: 0644
|
|
owner: root
|
|
src: sources.list.j2
|
|
|
|
- name: Install docker
|
|
become: yes
|
|
apt:
|
|
name: docker-ce
|
|
state: present
|
|
update_cache: yes
|