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

View File

@ -1,14 +1,23 @@
--- ---
- hosts: localhost - hosts: localhost
vars:
mail_relay_host: smtp.gmail.com
mail_domain: gmeech.dyndns.org
tasks: tasks:
- include_tasks: assert-vars.yml - include_tasks: assert-vars.yml
- include_tasks: disable-ipv6.yml - include_tasks: disable-ipv6.yml
- include_tasks: hosts.yml - include_tasks: hosts.yml
- include_tasks: inst-packages.yml - include_tasks: inst-packages.yml
- include_tasks: misc.yml - include_tasks: misc.yml
- include_tasks: potfix.yml
- name: import netdata role - name: import postfix role
import_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 - name: role-netdata
src: git+https://gitweb.dyndns.org/awx/role_netdata.git src: git+https://gitweb.dyndns.org/awx/role_netdata.git