mirror of
https://gitlab.com/dbrw/ansible-setup.git
synced 2025-08-04 07:25:40 +07:00
add samba for virtualization
This commit is contained in:
parent
b941dd9f33
commit
3eb851c960
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user