ZFS, NFS, Zeus setting, perma IP fix, again

This commit is contained in:
git
2024-01-25 14:34:14 +01:00
parent 146c50fd29
commit 9dd8c9a45a
38 changed files with 659 additions and 0 deletions

View File

@@ -0,0 +1,40 @@
---
- name: Adding group
ansible.builtin.group:
name: "{{ user }}"
state: present
gid: "{{ uid }}"
- name: Adding user
ansible.builtin.user:
name: "{{ user }}"
group: "{{ user }}"
uid: "{{ uid }}"
shell: /bin/bash
groups: sudo
- name: Dowload ssh key
ansible.builtin.uri:
url: "{{ user_ssh_key_url }}"
method: GET
return_content: true
register: ssh_key
- name: Setting ssh key
ansible.builtin.blockinfile:
state: present
owner: "{{ user }}"
group: "{{ user }}"
insertafter: EOF
path: /home/{{ user }}/.ssh/authorized_keys
mode: '0644'
create: true
block: |
{{ ssh_key.content }}
- name: Set permissions to .ssh folder
ansible.builtin.file:
path: /home/{{ user }}/.ssh
owner: "{{ user }}"
group: "{{ user }}"
mode: '0711'

View File

@@ -0,0 +1,10 @@
127.0.0.1 localhost.localdomain localhost
{{ ip }} {{ host }}
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts

View File

@@ -0,0 +1,15 @@
auto lo
iface lo inet loopback
iface {{ in_face }} inet manual
ethernet-wol g
auto vmbr0
iface vmbr0 inet static
address {{ ip }}/24
gateway 192.168.5.1
bridge-ports {{ in_face }}
bridge-stp off
bridge-fd 0
source /etc/network/interfaces.d/*