Compare commits
7 Commits
1.8.23-1-3
...
master
Author | SHA1 | Date |
---|---|---|
CASSONNET Guillaume | 6a87854b47 | |
CASSONNET Guillaume | d669ce9dfe | |
Gitouche | 8954e574bf | |
Gitouche | 7f0ea55dc6 | |
Gitouche | 8844cf5a87 | |
Gitouche | 8159ec6030 | |
Gitouche | 59b11898e4 |
|
@ -1,7 +1,12 @@
|
||||||
---
|
---
|
||||||
msmtp_version: 1.8.23-1
|
msmtp_version: 1.8.25-1
|
||||||
msmtp_rpm_file: https://git.garbaye.fr/api/packages/Garbaye/generic/msmtp/{{ msmtp_version}}/msmtp-{{ msmtp_version}}.el8.{{ ansible_architecture }}.rpm
|
msmtp_rpm_file: https://git.garbaye.fr/api/packages/Garbaye/generic/msmtp/{{ msmtp_version}}/msmtp-{{ msmtp_version}}.el8.{{ ansible_architecture }}.rpm
|
||||||
|
|
||||||
|
# msmtprc configuration
|
||||||
|
msmtp_auth: 'on'
|
||||||
|
msmtp_tls: 'on'
|
||||||
|
msmtp_tls_starttls: 'on'
|
||||||
|
|
||||||
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
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
FROMFEDORA='36'
|
FROMFEDORA='37'
|
||||||
PACKAGE='msmtp'
|
PACKAGE='msmtp'
|
||||||
|
|
||||||
ABSDIR="$( dirname "$(readlink -f -- "$0")" )"
|
ABSDIR="$( dirname "$(readlink -f -- "$0")" )"
|
||||||
|
@ -44,5 +44,4 @@ runuser -l mockbuilder -c 'mock --localrepo=/tmp/ --chain -r rocky+epel-8-${ARCH
|
||||||
mv -f /tmp/results/*/${PACKAGE}-*/*.rpm /out/
|
mv -f /tmp/results/*/${PACKAGE}-*/*.rpm /out/
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
[[ $? == 0 ]] && mv -i /tmp/dockerrpmbuild-$$/*.rpm ${ABSDIR}/files/ &&
|
[[ $? == 0 ]] && mv -i /tmp/dockerrpmbuild-$$/*.rpm ${ABSDIR}/files/ && rm -rf /tmp/dockerrpmbuild-$$
|
||||||
rm -rf /tmp/dockerrpmbuild-$$ &&
|
|
||||||
|
|
|
@ -4,4 +4,4 @@
|
||||||
tasks:
|
tasks:
|
||||||
- name: "Include ansible_msmtp_mailer"
|
- name: "Include ansible_msmtp_mailer"
|
||||||
include_role:
|
include_role:
|
||||||
name: "ansible_msmtp_mailer"
|
name: "ansible-msmtp-mailer"
|
||||||
|
|
|
@ -8,14 +8,6 @@ lint: |
|
||||||
yamllint .
|
yamllint .
|
||||||
ansible-lint
|
ansible-lint
|
||||||
platforms:
|
platforms:
|
||||||
- name: centos8
|
|
||||||
image: geerlingguy/docker-centos8-ansible:latest
|
|
||||||
command: ""
|
|
||||||
volumes:
|
|
||||||
- /sys/fs/cgroup:/sys/fs/cgroup:ro
|
|
||||||
capabilities:
|
|
||||||
- SYS_ADMIN
|
|
||||||
pre_build_image: true
|
|
||||||
- name: rockylinux8
|
- name: rockylinux8
|
||||||
image: geerlingguy/docker-rockylinux8-ansible:latest
|
image: geerlingguy/docker-rockylinux8-ansible:latest
|
||||||
command: ""
|
command: ""
|
||||||
|
@ -24,7 +16,15 @@ platforms:
|
||||||
capabilities:
|
capabilities:
|
||||||
- SYS_ADMIN
|
- SYS_ADMIN
|
||||||
pre_build_image: true
|
pre_build_image: true
|
||||||
|
- name: rockylinux9
|
||||||
|
image: geerlingguy/docker-rockylinux9-ansible:latest
|
||||||
|
command: ""
|
||||||
|
volumes:
|
||||||
|
- /sys/fs/cgroup:/sys/fs/cgroup:ro
|
||||||
|
capabilities:
|
||||||
|
- SYS_ADMIN
|
||||||
|
pre_build_image: true
|
||||||
provisioner:
|
provisioner:
|
||||||
name: ansible
|
name: ansible
|
||||||
vefifier:
|
verifier:
|
||||||
name: ansible
|
name: ansible
|
||||||
|
|
|
@ -1,4 +1,10 @@
|
||||||
---
|
---
|
||||||
|
- name: Fix msmtpd SELinux type context for msmtpd as a service
|
||||||
|
community.general.sefcontext:
|
||||||
|
target: '/usr/bin/msmtpd'
|
||||||
|
setype: bin_t
|
||||||
|
state: present
|
||||||
|
|
||||||
- name: Install msmtp
|
- name: Install msmtp
|
||||||
yum:
|
yum:
|
||||||
name:
|
name:
|
||||||
|
|
|
@ -2,9 +2,9 @@
|
||||||
|
|
||||||
# Default settings that all others accounts inherit
|
# Default settings that all others accounts inherit
|
||||||
defaults
|
defaults
|
||||||
auth on
|
auth {{msmtp_auth}}
|
||||||
tls on
|
tls {{msmtp_tls}}
|
||||||
tls_starttls on
|
tls_starttls {{msmtp_tls_starttls}}
|
||||||
{% if msmtp_tls_trust_file is defined %}
|
{% if msmtp_tls_trust_file is defined %}
|
||||||
tls_trust_file {{msmtp_tls_trust_file}}
|
tls_trust_file {{msmtp_tls_trust_file}}
|
||||||
{% else %}
|
{% else %}
|
||||||
|
|
Loading…
Reference in New Issue