Commit graph

9 commits

Author SHA1 Message Date
Jan Christian Grünhage
e4fb23e7c0
chore(hostname): fix lints in role 2023-02-21 21:21:50 +01:00
Jadyn Emma Jaeger
11678a1329
feat: Make linter happy 2022-09-26 14:46:36 +02:00
Johanna Dorothea Reichmann
d1c5e83619
chore: update READMEs 2021-09-07 08:59:51 +02:00
Lars Kaiser
94e9338358
chore: disable check mode for hostname task 2021-07-19 14:19:59 +02:00
transcaffeine
7ae06507c1
feat(hostname): support partial execution with prepare and deploy tags 2021-05-26 14:30:51 +02:00
transcaffeine
2f8e53a6fb
fix(hostname): ensure hostname is the FQDN
Previously, the value was compared against `ansible_hostname`,
which only is the FQDN after the first reboot. This lead to the
monitoring not seeing the FQDN as the instance name.

This commit scrapes the hostname using the hostname command,
which is garantueed to return the current running hostname, and
then determines if it needs to be set at runtime.
2021-04-19 09:03:45 +02:00
transcaffeine
e11ea98d79
chore(hostname): hostname's changed status was reported wrongly 2021-02-26 09:24:41 +01:00
transcaffeine
750a95b8f1
fix(hostname): avoid duplicating the hosts in /etc/hosts
Because the `blockinfile` module from ansible expects the `marker`
string to include `{mark}` case-sensetive, the entire block was
duplicated with each run.
2021-02-05 09:12:04 +01:00
transcaffeine
2a93b06d71
feat(hostname): manage hostnames and hosts 2021-01-25 11:47:21 +01:00