| @@ -134,7 +134,7 @@ matrix_well_known_matrix_server_enabled: true | |||||
| matrix_docker_installation_enabled: true | matrix_docker_installation_enabled: true | ||||
| # Controls the Docker package that is installed. | # Controls the Docker package that is installed. | ||||
| # Possible values are "docker-ce" (default) and "docker.io" (Debian). | |||||
| # Possible values are "docker-ce" (default), "docker.io" (Debian) and "podman-docker" (Fedora) | |||||
| matrix_docker_package_name: docker-ce | matrix_docker_package_name: docker-ce | ||||
| # Variables to Control which parts of our roles run. | # Variables to Control which parts of our roles run. | ||||
| @@ -3,6 +3,9 @@ | |||||
| - include_tasks: "{{ role_path }}/tasks/server_base/setup_centos.yml" | - include_tasks: "{{ role_path }}/tasks/server_base/setup_centos.yml" | ||||
| when: ansible_distribution == 'CentOS' | when: ansible_distribution == 'CentOS' | ||||
| - include_tasks: "{{ role_path }}/tasks/server_base/setup_fedora.yml" | |||||
| when: ansible_distribution == 'Fedora' | |||||
| - block: | - block: | ||||
| # ansible_lsb is only available if lsb-release is installed. | # ansible_lsb is only available if lsb-release is installed. | ||||
| - name: Ensure lsb-release installed | - name: Ensure lsb-release installed | ||||
| @@ -27,6 +30,18 @@ | |||||
| - include_tasks: "{{ role_path }}/tasks/server_base/setup_archlinux.yml" | - include_tasks: "{{ role_path }}/tasks/server_base/setup_archlinux.yml" | ||||
| when: ansible_distribution == 'Archlinux' | when: ansible_distribution == 'Archlinux' | ||||
| - name: Ensure Docker.service is available | |||||
| template: | |||||
| src: "{{ role_path }}/templates/systemd/docker.service" | |||||
| dest: "{{ matrix_systemd_path }}/docker.service" | |||||
| mode: 0644 | |||||
| register: matrix_docker_systemd_service_result | |||||
| - name: Ensure systemd reloaded after docker.service installation | |||||
| service: | |||||
| daemon_reload: yes | |||||
| when: "matrix_docker_systemd_service_result.changed|bool" | |||||
| - name: Ensure Docker is started and autoruns | - name: Ensure Docker is started and autoruns | ||||
| service: | service: | ||||
| name: docker | name: docker | ||||
| @@ -8,6 +8,7 @@ | |||||
| # TODO This needs to be verified. Which version do we need? | # TODO This needs to be verified. Which version do we need? | ||||
| - fuse3 | - fuse3 | ||||
| - python-dnspython | - python-dnspython | ||||
| - git | |||||
| state: latest | state: latest | ||||
| update_cache: yes | update_cache: yes | ||||
| @@ -22,6 +22,7 @@ | |||||
| name: | name: | ||||
| - "{{ matrix_ntpd_package }}" | - "{{ matrix_ntpd_package }}" | ||||
| - fuse | - fuse | ||||
| - git | |||||
| state: latest | state: latest | ||||
| update_cache: yes | update_cache: yes | ||||
| @@ -37,6 +37,7 @@ | |||||
| name: | name: | ||||
| - "{{ matrix_ntpd_package }}" | - "{{ matrix_ntpd_package }}" | ||||
| - fuse | - fuse | ||||
| - git | |||||
| state: latest | state: latest | ||||
| update_cache: yes | update_cache: yes | ||||
| @@ -0,0 +1,21 @@ | |||||
| --- | |||||
| - name: Ensure dnf packages are installed | |||||
| yum: | |||||
| name: | |||||
| - "{{ matrix_ntpd_package }}" | |||||
| - fuse | |||||
| - git | |||||
| state: latest | |||||
| update_cache: yes | |||||
| - name: Ensure Docker is installed | |||||
| yum: | |||||
| name: | |||||
| - "{{ matrix_docker_package_name }}" | |||||
| state: latest | |||||
| when: matrix_docker_installation_enabled|bool | |||||
| - name: Ensure Docker python library is installed | |||||
| pip: | |||||
| name: docker | |||||
| @@ -30,6 +30,7 @@ | |||||
| name: | name: | ||||
| - "{{ matrix_ntpd_package }}" | - "{{ matrix_ntpd_package }}" | ||||
| - fuse | - fuse | ||||
| - git | |||||
| state: latest | state: latest | ||||
| update_cache: yes | update_cache: yes | ||||
| @@ -0,0 +1,9 @@ | |||||
| [Unit] | |||||
| Description=Start Podman Docker link | |||||
| [Service] | |||||
| Restart=on-failure | |||||
| TimeoutStopSec=70 | |||||
| ExecStart={{ matrix_host_command_docker }} system service --time 0 | |||||
| Type=simple | |||||
| @@ -5,30 +5,6 @@ | |||||
| msg: "Synapse Simple Antispam is enabled, but no blocked homeservers have been set in matrix_synapse_ext_spam_checker_synapse_simple_antispam_config_blocked_homeservers" | msg: "Synapse Simple Antispam is enabled, but no blocked homeservers have been set in matrix_synapse_ext_spam_checker_synapse_simple_antispam_config_blocked_homeservers" | ||||
| when: "matrix_synapse_ext_spam_checker_synapse_simple_antispam_config_blocked_homeservers|length == 0" | when: "matrix_synapse_ext_spam_checker_synapse_simple_antispam_config_blocked_homeservers|length == 0" | ||||
| - name: Ensure git installed (RedHat) | |||||
| yum: | |||||
| name: | |||||
| - git | |||||
| state: present | |||||
| update_cache: no | |||||
| when: "ansible_os_family == 'RedHat'" | |||||
| - name: Ensure git installed (Debian) | |||||
| apt: | |||||
| name: | |||||
| - git | |||||
| state: present | |||||
| update_cache: no | |||||
| when: "ansible_os_family == 'Debian'" | |||||
| - name: Ensure git installed (Archlinux) | |||||
| pacman: | |||||
| name: | |||||
| - git | |||||
| state: present | |||||
| update_cache: no | |||||
| when: "ansible_distribution == 'Archlinux'" | |||||
| - name: Clone synapse-simple-antispam git repository | - name: Clone synapse-simple-antispam git repository | ||||
| git: | git: | ||||
| repo: "{{ matrix_synapse_ext_spam_checker_synapse_simple_antispam_git_repository_url }}" | repo: "{{ matrix_synapse_ext_spam_checker_synapse_simple_antispam_git_repository_url }}" | ||||