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 ! 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
|
||||||
|
|||||||
13
main.yml
13
main.yml
@ -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
|
||||||
|
|
||||||
@ -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
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user