Migration to gitea

This commit is contained in:
Gitouche 2022-08-08 22:16:00 +02:00
parent 5869837da4
commit 44bb22d510
2 changed files with 3 additions and 9 deletions

View file

@ -1,5 +1,6 @@
--- ---
msmtp_rpm_file: msmtp-1.8.20-1.el8.{{ ansible_architecture }}.rpm msmtp_version: 1.8.20-1
msmtp_rpm_file: https://git.garbaye.fr/api/packages/gitouche/generic/msmtp/{{ msmtp_version}}/msmtp-{{ msmtp_version}}.el8.{{ ansible_architecture }}.rpm
msmtp_accounts: msmtp_accounts:
# Account 1 - it was a real account for testing (but yandex now blocks it) # Account 1 - it was a real account for testing (but yandex now blocks it)

View file

@ -1,11 +1,4 @@
--- ---
- name: Copy RPM file to server
copy:
src: "{{ msmtp_rpm_file }}"
dest: "/tmp/{{ msmtp_rpm_file }}"
mode: 0400
when: ansible_os_family == "RedHat"
- name: Copy systemd unit file to server - name: Copy systemd unit file to server
copy: copy:
src: msmtpd.service src: msmtpd.service
@ -22,7 +15,7 @@
- name: Install msmtp - name: Install msmtp
yum: yum:
name: name:
- "/tmp/{{ msmtp_rpm_file }}" - "{{ msmtp_rpm_file }}"
- mailx - mailx
state: present state: present
disable_gpg_check: yes disable_gpg_check: yes