Compare commits
No commits in common. "816a3dfd3887750495cc8955336c1fad64c27c24" and "f7420219eebe09b1e50e562a15ba3087592ccb89" have entirely different histories.
816a3dfd38
...
f7420219ee
|
@ -1,6 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
# https://www.tauceti.blog/post/kubernetes-the-not-so-hard-way-with-ansible-wireguard/
|
||||
# https://github.com/githubixx/ansible-role-wireguard
|
||||
|
||||
ansible-playbook -u ansible --private-key /opt/ansible/ssh.key -i inventory ./update-software.yml
|
|
@ -1,13 +0,0 @@
|
|||
---
|
||||
#######################################
|
||||
# General settings
|
||||
#######################################
|
||||
|
||||
# E-mail address for notifications
|
||||
msmtp_email_address: "user@domain.tld"
|
||||
|
||||
# SMTP server config options
|
||||
msmtp_smtp_server: "email.domain.tld"
|
||||
msmtp_smtp_from: "user@domain.tld"
|
||||
msmtp_smtp_user: "user@domain.tld"
|
||||
msmtp_smtp_password: "password"
|
|
@ -1,40 +0,0 @@
|
|||
---
|
||||
- name: Gather instance facts
|
||||
setup:
|
||||
- name: Update APT package cache
|
||||
apt:
|
||||
update_cache: "{{ wireguard_ubuntu_update_cache }}"
|
||||
cache_valid_time: "{{ wireguard_ubuntu_cache_valid_time }}"
|
||||
tags:
|
||||
- msmtp-install
|
||||
- name: Install msmtp
|
||||
package:
|
||||
name: "{{ packages }}"
|
||||
state: present
|
||||
vars:
|
||||
packages:
|
||||
- msmtp
|
||||
- msmtp-mta
|
||||
- ca-certificates
|
||||
tags:
|
||||
- msmtp-install
|
||||
|
||||
- block:
|
||||
- name: Generate msmtp configuration file
|
||||
template:
|
||||
src: msmtp
|
||||
dest: "/etc/msmtprc"
|
||||
owner: root
|
||||
group: root
|
||||
mode: 0644
|
||||
tags:
|
||||
- msmtp-config
|
||||
- name: Generate aliases configuration file
|
||||
template:
|
||||
src: aliases
|
||||
dest: "/etc/aliases"
|
||||
owner: root
|
||||
group: root
|
||||
mode: 0644
|
||||
tags:
|
||||
- msmtp-config
|
|
@ -1,10 +0,0 @@
|
|||
# Example aliases file
|
||||
|
||||
# Send root to Joe and Jane
|
||||
root: {{ msmtp_email_address }}
|
||||
|
||||
# Send cron to Mark
|
||||
cron: {{ msmtp_email_address }}
|
||||
|
||||
# Send everything else to admin
|
||||
default: {{ msmtp_email_address }}
|
|
@ -1,22 +0,0 @@
|
|||
# Accounts will inherit settings from this section
|
||||
defaults
|
||||
auth on
|
||||
tls on
|
||||
tls_trust_file /etc/ssl/certs/ca-certificates.crt
|
||||
|
||||
logfile /var/log/msmtp.log
|
||||
|
||||
from {{ msmtp_smtp_from }}
|
||||
keepbcc on
|
||||
|
||||
account piframe
|
||||
host {{ msmtp_smtp_server }}
|
||||
port 587
|
||||
auth on
|
||||
user {{ msmtp_smtp_user }}
|
||||
password {{ msmtp_smtp_password }}
|
||||
|
||||
# Set a default account
|
||||
account default : piframe
|
||||
|
||||
aliases /etc/aliases
|
|
@ -1,5 +1,5 @@
|
|||
---
|
||||
- hosts: frames
|
||||
- hosts: all
|
||||
become: yes
|
||||
tasks:
|
||||
- name: Refresh package list
|
||||
|
|
Loading…
Reference in a new issue