Update to msmtp-1.8.15-2.el8.x86_64.rpm + manage rpm file name in a variable

This commit is contained in:
Gitouche 2021-09-23 22:24:28 +02:00
parent d7462d8912
commit f8ac8a697f
2 changed files with 5 additions and 3 deletions

View File

@ -1,4 +1,6 @@
--- ---
msmtp_rpm_file: msmtp-1.8.15-2.el8.x86_64.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)
# Uses Yandex app password limited to POP3, SMTP and IMAP # Uses Yandex app password limited to POP3, SMTP and IMAP

View File

@ -1,8 +1,8 @@
--- ---
- name: Copy RPM file to server - name: Copy RPM file to server
copy: copy:
src: msmtp-1.8.15-1.el8.x86_64.rpm src: "{{ msmtp_rpm_file }}"
dest: /tmp/msmtp-1.8.15-1.el8.x86_64.rpm dest: "/tmp/{{ msmtp_rpm_file }}"
mode: 0400 mode: 0400
when: ansible_os_family == "RedHat" when: ansible_os_family == "RedHat"
@ -22,7 +22,7 @@
- name: Install msmtp - name: Install msmtp
yum: yum:
name: name:
- /tmp/msmtp-1.8.15-1.el8.x86_64.rpm - "/tmp/{{ msmtp_rpm_file }}"
- mailx - mailx
state: present state: present
disable_gpg_check: yes disable_gpg_check: yes