mirror of
https://github.com/spantaleev/matrix-docker-ansible-deploy.git
synced 2025-08-27 09:11:32 +02:00
Compare commits
6 Commits
7891268873
...
8dda8207c6
Author | SHA1 | Date | |
---|---|---|---|
|
8dda8207c6 | ||
|
ac864d713d | ||
|
b94ae91d0a | ||
|
3a4e58c34d | ||
|
187e65c3de | ||
|
e14a5ba12c |
@@ -10,7 +10,7 @@
|
||||
version: v0.1.2-1
|
||||
name: container_socket_proxy
|
||||
- src: git+https://github.com/geerlingguy/ansible-role-docker
|
||||
version: 7.1.0
|
||||
version: 7.2.0
|
||||
name: docker
|
||||
- src: git+https://github.com/devture/com.devture.ansible.role.docker_sdk_for_python.git
|
||||
version: 129c8590e106b83e6f4c259649a613c6279e937a
|
||||
|
@@ -16,7 +16,7 @@ matrix_synapse_enabled: true
|
||||
matrix_synapse_github_org_and_repo: element-hq/synapse
|
||||
|
||||
# renovate: datasource=docker depName=ghcr.io/element-hq/synapse
|
||||
matrix_synapse_version: v1.107.0
|
||||
matrix_synapse_version: v1.108.0
|
||||
|
||||
matrix_synapse_username: ''
|
||||
matrix_synapse_uid: ''
|
||||
|
@@ -43,6 +43,16 @@ matrix_playbook_migration_matrix_jitsi_migration_validation_enabled: true
|
||||
matrix_playbook_migration_debian_signedby_migration_enabled: true
|
||||
matrix_playbook_migration_debian_signedby_migration_repository_path: "/etc/apt/sources.list.d/download_docker_com_linux_{{ ansible_distribution | lower }}.list"
|
||||
|
||||
# Controls if the old apt repository for Docker (`signed-by=/etc/apt/trusted.gpg.d/docker.asc`) will be removed,
|
||||
# so that the Docker role (7.2.0+) can install a new non-conflicting one (`signed-by=/etc/apt/keyrings/docker.asc`).
|
||||
#
|
||||
# Without this migration, the role would choke at the "galaxy/docker : Add Docker repository." task when trying to add the repository again:
|
||||
# > An exception occurred during task execution. To see the full traceback, use -vvv. The error was: apt_pkg.Error: E:Conflicting values set for option Signed-By regarding source https://download.docker.com/linux/ubuntu/ focal: /etc/apt/trusted.gpg.d/docker.asc != /etc/apt/keyrings/docker.asc, E:The list of sources could not be read.
|
||||
#
|
||||
# Related to: https://github.com/geerlingguy/ansible-role-docker/pull/436
|
||||
matrix_playbook_migration_docker_trusted_gpg_d_migration_enabled: true
|
||||
matrix_playbook_migration_docker_trusted_gpg_d_migration_repository_path: "/etc/apt/sources.list.d/docker.list"
|
||||
|
||||
# Controls if variable transition checks (related to the matrix-nginx-proxy elimination) will run.
|
||||
# If you'd like to keep some `matrix_nginx_proxy` and other variables around and not be warned about them, disable this.
|
||||
# Note: this is not just about `matrix_nginx_proxy_*` variables, but about various other variables that were removed
|
||||
|
@@ -0,0 +1,19 @@
|
||||
---
|
||||
|
||||
- name: Check if the Docker apt repository file exists
|
||||
ansible.builtin.stat:
|
||||
path: "{{ matrix_playbook_migration_docker_trusted_gpg_d_migration_repository_path }}"
|
||||
register: matrix_playbook_migration_docker_trusted_gpg_d_migration_repository_path_status
|
||||
|
||||
- when: matrix_playbook_migration_docker_trusted_gpg_d_migration_repository_path_status.stat.exists | bool
|
||||
block:
|
||||
- name: Read repository file
|
||||
ansible.builtin.slurp:
|
||||
path: "{{ matrix_playbook_migration_docker_trusted_gpg_d_migration_repository_path }}"
|
||||
register: matrix_playbook_migration_docker_trusted_gpg_d_migration_repository_path_content
|
||||
|
||||
- name: Remove Docker apt repository file if old key path found
|
||||
when: "'/etc/apt/trusted.gpg.d/docker.asc' in matrix_playbook_migration_docker_trusted_gpg_d_migration_repository_path_content.content | b64decode"
|
||||
ansible.builtin.file:
|
||||
path: "{{ matrix_playbook_migration_docker_trusted_gpg_d_migration_repository_path }}"
|
||||
state: absent
|
@@ -15,6 +15,15 @@
|
||||
block:
|
||||
- ansible.builtin.include_tasks: "{{ role_path }}/tasks/debian_docker_signedby_migration.yml"
|
||||
|
||||
- when: ansible_os_family == 'Debian' and matrix_playbook_docker_installation_enabled | bool and matrix_playbook_migration_docker_trusted_gpg_d_migration_enabled | bool
|
||||
tags:
|
||||
- setup-all
|
||||
- install-all
|
||||
- setup-docker
|
||||
- install-docker
|
||||
block:
|
||||
- ansible.builtin.include_tasks: "{{ role_path }}/tasks/debian_docker_trusted_gpg_d_migration_migration.yml"
|
||||
|
||||
- tags:
|
||||
- setup-all
|
||||
- install-all
|
||||
|
Reference in New Issue
Block a user