1
0
mirror of https://gitlab.com/dbrw/ansible-setup.git synced 2025-08-04 10:05:40 +07:00

add samba for virtualization

This commit is contained in:
dbrw 2022-07-12 17:06:26 +07:00
parent b941dd9f33
commit 3eb851c960
Signed by: dhimas
GPG Key ID: 8D5D880EB08F1544

View File

@ -7,6 +7,7 @@
- dmidecode
- edk2-ovmf
- dnsmasq
- samba
- iptables-nft
- name: update qemu.conf
@ -24,12 +25,26 @@
append: True
user: "{{ username }}"
- name: copy samba config
ansible.builtin.template:
src: smb.conf.j2
dest: /etc/samba/smb.conf
owner: root
group: root
mode: '0644'
- name: Enable libvirt service
ansible.builtin.systemd:
name: libvirtd
state: started
enabled: yes
- name: Enable samba service
ansible.builtin.systemd:
name: smb
state: started
enabled: yes
- name: Define a new network for virtualization
community.libvirt.virt_net:
command: define