append fixes

This commit is contained in:
Lars Hahn 2024-07-29 14:10:40 +02:00
parent c6dc7b0008
commit 83457bc551
3 changed files with 5 additions and 5 deletions

View File

@ -1,8 +1,8 @@
---
- name: setup floating ips
template:
src: "./etc/networking/interfaces.d/60-floating-ip.cfg.j2"
dest: "/etc/networking/interfaces.d/60-floating-ip.cfg"
src: "./etc/network/interfaces.d/60-floating-ip.cfg.j2"
dest: "/etc/network/interfaces.d/60-floating-ip.cfg"
owner: root
group: root
mode: 0644

View File

@ -2,7 +2,7 @@
- name: Adjust root password
user:
name: root
password: "{{ root_user_cred }}"
password: "{{ root_user_cred | string | password_hash('sha512') }}"
- name: list active users
shell: grep -v "nologin" /etc/passwd | cut -f 1 -d ":"

View File

@ -1,11 +1,11 @@
{% for config in floating_ips %}
{%if 'ipv4' in config % }
{%if 'ipv4' in config %}
auto eth0:{{ loop.index }}
iface eth0:{{ loop.index }} inet static
address {{ config.ipv4 }}
netmask 32
{% endif %}
{%if 'ipv6' in config % }
{%if 'ipv6' in config %}
auto eth0:{{ loop.index }}
iface eth0:{{ loop.index }} inet6 static
address {{ config.ipv6 }}