docker(role): use better naming

This commit is contained in:
June 2025-02-18 05:35:45 +01:00
parent ce812fb006
commit 89f3e55eac
Signed by: june
SSH key fingerprint: SHA256:o9EAq4Y9N9K0pBQeBTqhSDrND5E7oB+60ZNx0U1yPe0
4 changed files with 8 additions and 8 deletions

View file

@ -1,11 +1,11 @@
- name: make sure the Docker repo is setup
- name: Ensure Docker repo is setup
ansible.builtin.import_tasks:
file: main/01_repo_setup.yaml
- name: make sure Docker Engine and other related packages are installed
- name: Ensure Docker Engine and other related packages are installed
ansible.builtin.import_tasks:
file: main/02_docker_install.yaml
- name: configure the Docker daemon
- name: Ensure Docker daemon configuration
ansible.builtin.import_tasks:
file: main/03_docker_config.yaml

View file

@ -1,4 +1,4 @@
- name: make sure Dockers GPG key is added
- name: Ensure Dockers GPG key is added
ansible.builtin.get_url:
url: https://download.docker.com/linux/debian/gpg
dest: /etc/apt/trusted.gpg.d/docker.asc
@ -7,7 +7,7 @@
group: root
become: true
- name: make sure Dockers APT repository is added
- name: Ensure Docker APT repository is added
ansible.builtin.apt_repository:
repo: "deb [arch=amd64 signed-by=/etc/apt/trusted.gpg.d/docker.asc] https://download.docker.com/linux/debian {{ ansible_distribution_release }} stable"
filename: docker

View file

@ -1,4 +1,4 @@
- name: make sure Docker Engine and other related packages are installed
- name: Ensure Docker Engine and other related packages are installed
ansible.builtin.apt:
name:
- docker-ce

View file

@ -1,7 +1,7 @@
# Configure the Docker daemon with the following settings:
# Ensure the Docker daemon is configured with the following settings:
# - log to systemd journal
# https://docs.docker.com/engine/logging/drivers/journald/
- name: configure Docker daemon
- name: Ensure Docker daemon configuration
ansible.builtin.copy:
src: daemon.json
dest: /etc/docker/daemon.json