Ensure git is installed using ansible.builtin.package, not using a distro-specific package manager module
Related to https://github.com/spantaleev/matrix-docker-ansible-deploy/issues/2228
This commit is contained in:
parent
13b63eabf0
commit
5ef70015cb
|
@ -1,28 +1,9 @@
|
||||||
---
|
---
|
||||||
|
|
||||||
- name: Ensure git installed (RedHat)
|
- name: Ensure git installed
|
||||||
ansible.builtin.yum:
|
ansible.builtin.package:
|
||||||
name:
|
name: git
|
||||||
- git
|
|
||||||
state: present
|
state: present
|
||||||
update_cache: false
|
|
||||||
when: "ansible_os_family == 'RedHat'"
|
|
||||||
|
|
||||||
- name: Ensure git installed (Debian)
|
|
||||||
ansible.builtin.apt:
|
|
||||||
name:
|
|
||||||
- git
|
|
||||||
state: present
|
|
||||||
update_cache: false
|
|
||||||
when: "ansible_os_family == 'Debian'"
|
|
||||||
|
|
||||||
- name: Ensure git installed (Archlinux)
|
|
||||||
community.general.pacman:
|
|
||||||
name:
|
|
||||||
- git
|
|
||||||
state: present
|
|
||||||
update_cache: false
|
|
||||||
when: "ansible_distribution == 'Archlinux'"
|
|
||||||
|
|
||||||
- name: Clone mjolnir-antispam git repository
|
- name: Clone mjolnir-antispam git repository
|
||||||
ansible.builtin.git:
|
ansible.builtin.git:
|
||||||
|
|
|
@ -5,29 +5,10 @@
|
||||||
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)
|
- name: Ensure git installed
|
||||||
ansible.builtin.yum:
|
ansible.builtin.package:
|
||||||
name:
|
name: git
|
||||||
- git
|
|
||||||
state: present
|
state: present
|
||||||
update_cache: false
|
|
||||||
when: "ansible_os_family == 'RedHat'"
|
|
||||||
|
|
||||||
- name: Ensure git installed (Debian)
|
|
||||||
ansible.builtin.apt:
|
|
||||||
name:
|
|
||||||
- git
|
|
||||||
state: present
|
|
||||||
update_cache: false
|
|
||||||
when: "ansible_os_family == 'Debian'"
|
|
||||||
|
|
||||||
- name: Ensure git installed (Archlinux)
|
|
||||||
community.general.pacman:
|
|
||||||
name:
|
|
||||||
- git
|
|
||||||
state: present
|
|
||||||
update_cache: false
|
|
||||||
when: "ansible_distribution == 'Archlinux'"
|
|
||||||
|
|
||||||
- name: Clone synapse-simple-antispam git repository
|
- name: Clone synapse-simple-antispam git repository
|
||||||
ansible.builtin.git:
|
ansible.builtin.git:
|
||||||
|
|
Loading…
Reference in a new issue