Skip to content

Commit

Permalink
Merge pull request #3 from geerlingguy/master
Browse files Browse the repository at this point in the history
update repo
  • Loading branch information
xtianae7 authored Sep 16, 2024
2 parents a300109 + 92e41f6 commit b75fc03
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 4 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,17 +51,18 @@ docker_restart_handler_state: restarted
Variables to control the state of the `docker` service, and whether it should start on boot. If you're installing Docker inside a Docker container without systemd or sysvinit, you should set `docker_service_manage` to `false`.

```yaml
docker_install_compose_plugin: false
docker_install_compose_plugin: true
docker_compose_package: docker-compose-plugin
docker_compose_package_state: present
```

Docker Compose Plugin installation options. These differ from the below in that docker-compose is installed as a docker plugin (and used with `docker compose`) instead of a standalone binary.

```yaml
docker_install_compose: true
docker_compose_version: "1.26.0"
docker_install_compose: false
docker_compose_version: "2.29.2"
docker_compose_arch: "{{ ansible_architecture }}"
docker_compose_url: "https://github.com/docker/compose/releases/download/{{ docker_compose_version }}/docker-compose-linux-{{ docker_compose_arch }}"
docker_compose_path: /usr/local/bin/docker-compose
```

Expand Down
2 changes: 1 addition & 1 deletion defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ docker_compose_package_state: present

# Docker Compose options.
docker_install_compose: false
docker_compose_version: "v2.11.1"
docker_compose_version: "v2.29.2"
docker_compose_arch: "{{ ansible_architecture }}"
docker_compose_url: "https://github.com/docker/compose/releases/download/{{ docker_compose_version }}/docker-compose-linux-{{ docker_compose_arch }}"
docker_compose_path: /usr/local/bin/docker-compose
Expand Down
13 changes: 13 additions & 0 deletions tasks/setup-Debian.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,17 @@
---
- name: Ensure apt key is not present in trusted.gpg.d
ansible.builtin.file:
path: /etc/apt/trusted.gpg.d/docker.asc
state: absent

- name: Ensure the repo referencing the previous trusted.gpg.d key is not present
apt_repository:
repo: "deb [arch={{ docker_apt_arch }} signed-by=/etc/apt/trusted.gpg.d/docker.asc] {{ docker_repo_url }}/{{ docker_apt_ansible_distribution | lower }} {{ ansible_distribution_release }} {{ docker_apt_release_channel }}"

Check warning on line 9 in tasks/setup-Debian.yml

View workflow job for this annotation

GitHub Actions / Lint

9:201 [line-length] line too long (224 > 200 characters)

Check warning on line 9 in tasks/setup-Debian.yml

View workflow job for this annotation

GitHub Actions / Lint

9:201 [line-length] line too long (224 > 200 characters)

Check warning on line 9 in tasks/setup-Debian.yml

View workflow job for this annotation

GitHub Actions / Lint

9:201 [line-length] line too long (224 > 200 characters)

Check warning on line 9 in tasks/setup-Debian.yml

View workflow job for this annotation

GitHub Actions / Lint

9:201 [line-length] line too long (224 > 200 characters)

Check warning on line 9 in tasks/setup-Debian.yml

View workflow job for this annotation

GitHub Actions / Lint

9:201 [line-length] line too long (224 > 200 characters)

Check warning on line 9 in tasks/setup-Debian.yml

View workflow job for this annotation

GitHub Actions / Lint

9:201 [line-length] line too long (224 > 200 characters)

Check warning on line 9 in tasks/setup-Debian.yml

View workflow job for this annotation

GitHub Actions / Lint

9:201 [line-length] line too long (224 > 200 characters)

Check warning on line 9 in tasks/setup-Debian.yml

View workflow job for this annotation

GitHub Actions / Lint

9:201 [line-length] line too long (224 > 200 characters)

Check warning on line 9 in tasks/setup-Debian.yml

View workflow job for this annotation

GitHub Actions / Lint

9:201 [line-length] line too long (224 > 200 characters)

Check warning on line 9 in tasks/setup-Debian.yml

View workflow job for this annotation

GitHub Actions / Lint

9:201 [line-length] line too long (224 > 200 characters)
state: absent
filename: "{{ docker_apt_filename }}"
update_cache: true
when: docker_add_repo | bool

- # See https://docs.docker.com/engine/install/debian/#uninstall-old-versions

Check warning on line 15 in tasks/setup-Debian.yml

View workflow job for this annotation

GitHub Actions / Lint

15:3 [comments] too few spaces before comment

Check warning on line 15 in tasks/setup-Debian.yml

View workflow job for this annotation

GitHub Actions / Lint

15:3 [comments] too few spaces before comment

Check warning on line 15 in tasks/setup-Debian.yml

View workflow job for this annotation

GitHub Actions / Lint

15:3 [comments] too few spaces before comment

Check warning on line 15 in tasks/setup-Debian.yml

View workflow job for this annotation

GitHub Actions / Lint

15:3 [comments] too few spaces before comment

Check warning on line 15 in tasks/setup-Debian.yml

View workflow job for this annotation

GitHub Actions / Lint

15:3 [comments] too few spaces before comment

Check warning on line 15 in tasks/setup-Debian.yml

View workflow job for this annotation

GitHub Actions / Lint

15:3 [comments] too few spaces before comment

Check warning on line 15 in tasks/setup-Debian.yml

View workflow job for this annotation

GitHub Actions / Lint

15:3 [comments] too few spaces before comment

Check warning on line 15 in tasks/setup-Debian.yml

View workflow job for this annotation

GitHub Actions / Lint

15:3 [comments] too few spaces before comment

Check warning on line 15 in tasks/setup-Debian.yml

View workflow job for this annotation

GitHub Actions / Lint

15:3 [comments] too few spaces before comment

Check warning on line 15 in tasks/setup-Debian.yml

View workflow job for this annotation

GitHub Actions / Lint

15:3 [comments] too few spaces before comment
name: Ensure old versions of Docker are not installed.
package:
Expand Down

0 comments on commit b75fc03

Please sign in to comment.