mirror of
https://github.com/roles-ansible/ansible_role_rspamd.git
synced 2024-08-16 17:09:51 +02:00
commit
d15a03f123
4 changed files with 24 additions and 7 deletions
|
@ -13,11 +13,12 @@
|
||||||
ansible.builtin.include_tasks:
|
ansible.builtin.include_tasks:
|
||||||
file: 'configure.yml'
|
file: 'configure.yml'
|
||||||
|
|
||||||
- name: Rspamd dkim signing
|
- name: Rspamd dkim signing (TODO)
|
||||||
ansible.builtin.include_tasks:
|
ansible.builtin.include_tasks:
|
||||||
file: 'dkim.yml'
|
file: 'dkim.yml'
|
||||||
when: rspamd__configure_dkim | bool
|
when: rspamd__configure_dkim | bool
|
||||||
|
|
||||||
|
|
||||||
- name: Redis backend
|
- name: Redis backend
|
||||||
ansible.builtin.include_tasks:
|
ansible.builtin.include_tasks:
|
||||||
file: 'redis.yml'
|
file: 'redis.yml'
|
||||||
|
|
|
@ -24,19 +24,28 @@
|
||||||
state: 'present'
|
state: 'present'
|
||||||
notify: Run sudo apt update
|
notify: Run sudo apt update
|
||||||
|
|
||||||
|
- name: Download /etc/apt/keyrings/rspamd.gpg
|
||||||
|
become: true
|
||||||
|
ansible.builtin.get_url:
|
||||||
|
url: '//rspamd.com/apt-stable/gpg.key'
|
||||||
|
dest: '/etc/apt/keyrings/rspamd.gpg'
|
||||||
|
mode: '0644'
|
||||||
|
owner: 'root'
|
||||||
|
group: 'root'
|
||||||
|
|
||||||
- name: Add rspamd repo
|
- name: Add rspamd repo
|
||||||
become: true
|
become: true
|
||||||
ansible.builtin.apt_repository:
|
ansible.builtin.apt_repository:
|
||||||
repo: "deb https://rspamd.com/apt-stable/ {{ ansible_distribution_release }} main"
|
repo: "deb [signed-by=/etc/apt/keyrings/rspamd.gpg] https://rspamd.com/apt-stable/ {{ ansible_distribution_release }} main"
|
||||||
state: 'present'
|
state: present
|
||||||
mode: '0644'
|
mode: '0644'
|
||||||
notify: Run sudo apt update
|
notify: Run sudo apt update
|
||||||
|
|
||||||
- name: Add rspamd srv-repo
|
- name: Add rspamd srv-repo
|
||||||
become: true
|
become: true
|
||||||
ansible.builtin.apt_repository:
|
ansible.builtin.apt_repository:
|
||||||
repo: "deb-src https://rspamd.com/apt-stable/ {{ ansible_distribution_release }} main"
|
repo: "deb-src [signed-by=/etc/apt/keyrings/rspamd.gpg] https://rspamd.com/apt-stable/ {{ ansible_distribution_release }} main"
|
||||||
state: 'present'
|
state: present
|
||||||
mode: '0644'
|
mode: '0644'
|
||||||
notify: Run sudo apt update
|
notify: Run sudo apt update
|
||||||
|
|
||||||
|
@ -48,4 +57,4 @@
|
||||||
ansible.builtin.apt:
|
ansible.builtin.apt:
|
||||||
name: 'rspamd'
|
name: 'rspamd'
|
||||||
state: 'present'
|
state: 'present'
|
||||||
notify: Run systemctl restart rspamd
|
notify: 'Run systemctl restart rspamd'
|
||||||
|
|
|
@ -1,4 +1,11 @@
|
||||||
---
|
---
|
||||||
|
- name: Update apt cache
|
||||||
|
become: true
|
||||||
|
ansible.builtin.apt:
|
||||||
|
update_cache: true
|
||||||
|
when:
|
||||||
|
- ansible_pkg_mgr == "apt"
|
||||||
|
|
||||||
- name: Install redis backend
|
- name: Install redis backend
|
||||||
become: true
|
become: true
|
||||||
ansible.builtin.apt:
|
ansible.builtin.apt:
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
---
|
---
|
||||||
# versionscheck
|
# versionscheck
|
||||||
playbook_version_number: 9 # should be a integer
|
playbook_version_number: 11
|
||||||
playbook_version_path: 'do1jlr.rspamd.version'
|
playbook_version_path: 'do1jlr.rspamd.version'
|
||||||
|
|
||||||
# https://github.com/ansible/ansible/issues/36129
|
# https://github.com/ansible/ansible/issues/36129
|
||||||
|
|
Loading…
Reference in a new issue