Use fully-qualified module names for builtin Ansible modules

Related to https://github.com/spantaleev/matrix-docker-ansible-deploy/pull/1939
This commit is contained in:
Slavi Pantaleev
2022-07-18 10:39:08 +03:00
parent 78b5be4a26
commit 34cdaade08
297 changed files with 1420 additions and 1420 deletions

View File

@ -1,12 +1,12 @@
---
- name: Fail if Synapse Simple Antispam blocked homeservers is not set
fail:
ansible.builtin.fail:
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"
- name: Ensure git installed (RedHat)
yum:
ansible.builtin.yum:
name:
- git
state: present
@ -14,7 +14,7 @@
when: "ansible_os_family == 'RedHat'"
- name: Ensure git installed (Debian)
apt:
ansible.builtin.apt:
name:
- git
state: present
@ -30,14 +30,14 @@
when: "ansible_distribution == 'Archlinux'"
- name: Clone synapse-simple-antispam git repository
git:
ansible.builtin.git:
repo: "{{ matrix_synapse_ext_spam_checker_synapse_simple_antispam_git_repository_url }}"
version: "{{ matrix_synapse_ext_spam_checker_synapse_simple_antispam_git_version }}"
dest: "{{ matrix_synapse_ext_path }}/synapse-simple-antispam"
become: true
become_user: "{{ matrix_user_username }}"
- set_fact:
- ansible.builtin.set_fact:
matrix_synapse_modules: >
{{
matrix_synapse_modules

View File

@ -1,6 +1,6 @@
---
- name: Ensure synapse-simple-antispam doesn't exist
file:
ansible.builtin.file:
path: "{{ matrix_synapse_ext_path }}/synapse-simple-antispam"
state: absent