2023-06-17 17:19:41 +00:00
|
|
|
- name: Configure sysctls
|
|
|
|
sysctl:
|
|
|
|
name: "{{ item.name }}"
|
|
|
|
value: "{{ item.value }}"
|
|
|
|
state: present
|
|
|
|
sysctl_file: "/etc/sysctl.conf.local"
|
|
|
|
loop:
|
|
|
|
- name: net.link.ether.inet.proxyall
|
|
|
|
value: "1"
|
2023-07-01 21:33:15 +00:00
|
|
|
|
|
|
|
- name: Install service configuration
|
|
|
|
copy:
|
|
|
|
src: "files/{{ item }}_rc.conf"
|
|
|
|
dest: "/etc/rc.conf.d/{{ item }}"
|
|
|
|
mode: 0644
|
|
|
|
owner: root
|
|
|
|
group: wheel
|
|
|
|
loop:
|
|
|
|
- nfsd
|
|
|
|
- mountd
|
|
|
|
- lockd
|
|
|
|
- statd
|
|
|
|
- rpcbind
|
|
|
|
|
|
|
|
- name: Create zfs datasets
|
|
|
|
zfs:
|
|
|
|
name: zdata/k8spersistent
|
|
|
|
state: present
|
|
|
|
extra_zfs_properties:
|
2023-07-04 06:53:35 +00:00
|
|
|
sharenfs: "-network 10.215.1.0/24,-alldirs,-maproot=root:root"
|
2023-07-01 21:33:15 +00:00
|
|
|
mountpoint: /k8spersistent
|
|
|
|
|
|
|
|
- name: Update ownership
|
|
|
|
file:
|
|
|
|
name: "{{ item }}"
|
|
|
|
state: directory
|
2023-07-04 06:53:35 +00:00
|
|
|
mode: 0777
|
|
|
|
owner: root
|
|
|
|
group: wheel
|
2023-07-01 21:33:15 +00:00
|
|
|
loop:
|
|
|
|
- /k8spersistent
|