1
0
Fork 0
mirror of https://github.com/roles-ansible/ansible_role_rspamd.git synced 2024-08-16 17:09:51 +02:00

Merge pull request #5 from roles-ansible/u

Update apt
This commit is contained in:
L3D 2023-10-29 23:56:12 +01:00 committed by GitHub
commit d15a03f123
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 24 additions and 7 deletions

View file

@ -13,11 +13,12 @@
ansible.builtin.include_tasks:
file: 'configure.yml'
- name: Rspamd dkim signing
- name: Rspamd dkim signing (TODO)
ansible.builtin.include_tasks:
file: 'dkim.yml'
when: rspamd__configure_dkim | bool
- name: Redis backend
ansible.builtin.include_tasks:
file: 'redis.yml'

View file

@ -24,19 +24,28 @@
state: 'present'
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
become: true
ansible.builtin.apt_repository:
repo: "deb https://rspamd.com/apt-stable/ {{ ansible_distribution_release }} main"
state: 'present'
repo: "deb [signed-by=/etc/apt/keyrings/rspamd.gpg] https://rspamd.com/apt-stable/ {{ ansible_distribution_release }} main"
state: present
mode: '0644'
notify: Run sudo apt update
- name: Add rspamd srv-repo
become: true
ansible.builtin.apt_repository:
repo: "deb-src https://rspamd.com/apt-stable/ {{ ansible_distribution_release }} main"
state: 'present'
repo: "deb-src [signed-by=/etc/apt/keyrings/rspamd.gpg] https://rspamd.com/apt-stable/ {{ ansible_distribution_release }} main"
state: present
mode: '0644'
notify: Run sudo apt update
@ -48,4 +57,4 @@
ansible.builtin.apt:
name: 'rspamd'
state: 'present'
notify: Run systemctl restart rspamd
notify: 'Run systemctl restart rspamd'

View file

@ -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
become: true
ansible.builtin.apt:

View file

@ -1,6 +1,6 @@
---
# versionscheck
playbook_version_number: 9 # should be a integer
playbook_version_number: 11
playbook_version_path: 'do1jlr.rspamd.version'
# https://github.com/ansible/ansible/issues/36129