alpine: assume one DNS name per host

Avoid needless complexity.
This commit is contained in:
Timotej Lazar 2024-06-19 13:14:51 +02:00
parent 393614aa79
commit 38c3464279
5 changed files with 12 additions and 22 deletions

View file

@ -49,7 +49,7 @@
line: '{{ item.line }}'
loop:
- key: '^ALLOWED_HOSTS = '
line: "ALLOWED_HOSTS = [{{ fqdns | map('regex_replace', '^(.*)$', '\"\\1\"') | join(', ') }}]"
line: "ALLOWED_HOSTS = ['{{ dns_name }}']"
- key: 'USER.*PostgreSQL username'
line: " 'USER': '{{ user }}', # PostgreSQL username"
# XXX unnecessary?