add postfix

This commit is contained in:
Gilles Mouchet 2024-06-02 13:39:31 +02:00
parent 7f7f7f1541
commit fc49b4de6f
3 changed files with 21 additions and 4 deletions

View File

@ -33,11 +33,16 @@ alias sudo='sudo --preserve-env=PATH env' # https://www.petefreitag.com/blog/env
if ! is_scp; then
if [[ "$USER" == "gilles" || "$USER" == "root" ]]; then
host_fqdn=$(hostname)
host_shot=$(hostname s)
ip=$(hostname -I)
dist=$(cat /etc/redhat-release)
kern=$(uname -r)
cat << EOF
-----------------------------------------------------
Distribution: $dist
Host name (fqdn): $host_fqdn
Host name (short): $host_short
Distribution: $dist
Kernel: $kern
-----------------------------------------------------
EOF

View File

@ -1,14 +1,23 @@
---
- hosts: localhost
vars:
mail_relay_host: smtp.gmail.com
mail_domain: gmeech.dyndns.org
tasks:
- include_tasks: assert-vars.yml
- include_tasks: disable-ipv6.yml
- include_tasks: hosts.yml
- include_tasks: inst-packages.yml
- include_tasks: misc.yml
- include_tasks: potfix.yml
- name: import netdata role
- name: import postfix role
import_role:
name: role-netdata
name: role-posfix
# - name: import netdata role
# import_role:
# name: role-netdata

View File

@ -1,4 +1,7 @@
---
- name: role-postfix
src: git+https://gitweb.dyndns.org/awx/role-postfix.git
- name: role-netdata
src: git+https://gitweb.dyndns.org/awx/role_netdata.git