add postfix
This commit is contained in:
parent
7f7f7f1541
commit
fc49b4de6f
@ -33,12 +33,17 @@ 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
|
||||
Kernel: $kern
|
||||
Host name (fqdn): $host_fqdn
|
||||
Host name (short): $host_short
|
||||
Distribution: $dist
|
||||
Kernel: $kern
|
||||
-----------------------------------------------------
|
||||
EOF
|
||||
fi
|
||||
|
||||
13
main.yml
13
main.yml
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user