aws_cloud: pre-setup hostname early

To allow the initial postfix start:
Nov 11 10:38:33 107.20.83.139 postfix/sendmail[26023]: warning: valid_hostname: numeric hostname: 107.20.83.139
Nov 11 10:38:33 107.20.83.139 postfix/sendmail[26023]: fatal: unable to use my own hostname
Nov 11 10:38:33 107.20.83.139 postfix[26025]: warning: valid_hostname: numeric hostname: 107.20.83.139
Nov 11 10:38:33 107.20.83.139 postfix[26025]: fatal: unable to use my own hostname
This commit is contained in:
Pavel Raiskup 2020-11-11 11:45:55 +01:00
parent b087f9ea72
commit f351fe2d32

View file

@ -140,3 +140,8 @@
- name: Include SSH config
import_role: name=basessh
# we need this to allow initial postfix service start
- name: setup a temporary hostname
hostname: name={{ inventory_hostname }}
when: birthday is defined