append fixes
This commit is contained in:
parent
c6dc7b0008
commit
83457bc551
@ -1,8 +1,8 @@
|
|||||||
---
|
---
|
||||||
- name: setup floating ips
|
- name: setup floating ips
|
||||||
template:
|
template:
|
||||||
src: "./etc/networking/interfaces.d/60-floating-ip.cfg.j2"
|
src: "./etc/network/interfaces.d/60-floating-ip.cfg.j2"
|
||||||
dest: "/etc/networking/interfaces.d/60-floating-ip.cfg"
|
dest: "/etc/network/interfaces.d/60-floating-ip.cfg"
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
mode: 0644
|
mode: 0644
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
- name: Adjust root password
|
- name: Adjust root password
|
||||||
user:
|
user:
|
||||||
name: root
|
name: root
|
||||||
password: "{{ root_user_cred }}"
|
password: "{{ root_user_cred | string | password_hash('sha512') }}"
|
||||||
|
|
||||||
- name: list active users
|
- name: list active users
|
||||||
shell: grep -v "nologin" /etc/passwd | cut -f 1 -d ":"
|
shell: grep -v "nologin" /etc/passwd | cut -f 1 -d ":"
|
||||||
|
|||||||
@ -1,11 +1,11 @@
|
|||||||
{% for config in floating_ips %}
|
{% for config in floating_ips %}
|
||||||
{%if 'ipv4' in config % }
|
{%if 'ipv4' in config %}
|
||||||
auto eth0:{{ loop.index }}
|
auto eth0:{{ loop.index }}
|
||||||
iface eth0:{{ loop.index }} inet static
|
iface eth0:{{ loop.index }} inet static
|
||||||
address {{ config.ipv4 }}
|
address {{ config.ipv4 }}
|
||||||
netmask 32
|
netmask 32
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{%if 'ipv6' in config % }
|
{%if 'ipv6' in config %}
|
||||||
auto eth0:{{ loop.index }}
|
auto eth0:{{ loop.index }}
|
||||||
iface eth0:{{ loop.index }} inet6 static
|
iface eth0:{{ loop.index }} inet6 static
|
||||||
address {{ config.ipv6 }}
|
address {{ config.ipv6 }}
|
||||||
Loading…
Reference in New Issue
Block a user