41 lines
1.2 KiB
YAML
41 lines
1.2 KiB
YAML
# Things that we definitely want to have are the following
|
|
# docker docker-compose python(latest) certbot
|
|
- name: Uhhh yea
|
|
become: true
|
|
block:
|
|
- name: Install base dependencies
|
|
ansible.builtin.apt:
|
|
update_cache: true
|
|
pkg:
|
|
- ca-certificates
|
|
- curl
|
|
- lsb-release
|
|
- name: Setup keyring directory
|
|
ansible.builtin.command:
|
|
cmd: "install -m 0755 -d {{ static_keyring_dir }}"
|
|
creates: "{{ static_keyring_dir }}"
|
|
- name: Download the docker GPG key
|
|
ansible.builtin.get_url:
|
|
url: "{{ static_docker_ubuntu }}/gpg"
|
|
dest: "{{ static_keyring_dir }}/docker.asc"
|
|
mode: "0644"
|
|
- name: Ensure docker.lst is present
|
|
vars:
|
|
key_path: "{{ static_keyring_dir }}/docker.asc"
|
|
repo: "{{ static_docker_ubuntu }}"
|
|
os_codename: jammy
|
|
ansible.builtin.template:
|
|
src: docker.list
|
|
dest: "{{ static_apt_sources_dir }}/docker.list"
|
|
mode: "0644"
|
|
- name: Install docker and python packages
|
|
ansible.builtin.apt:
|
|
update_cache: true
|
|
pkg:
|
|
- docker-ce
|
|
- docker-ce-cli
|
|
- containerd.io
|
|
- docker-buildx-plugin
|
|
- docker-compose-plugin
|
|
- python3
|