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

rspamd version

This commit is contained in:
L3D 2023-10-29 23:42:22 +01:00
parent 8dcfbcbeea
commit d90b623ec8
No known key found for this signature in database
GPG key ID: AD65B920933B4B20
2 changed files with 12 additions and 3 deletions

View file

@ -23,10 +23,19 @@
state: present
notify: 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"
repo: "deb [signed-by=/etc/apt/keyrings/rspamd.gpg] https://rspamd.com/apt-stable/ {{ ansible_distribution_release }} main"
state: present
mode: 0644
notify: sudo apt update
@ -34,7 +43,7 @@
- name: add rspamd srv-repo
become: true
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
mode: 0644
notify: sudo apt update

View file

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