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:
parent
b941dd9f33
commit
3eb851c960
@ -7,6 +7,7 @@
|
|||||||
- dmidecode
|
- dmidecode
|
||||||
- edk2-ovmf
|
- edk2-ovmf
|
||||||
- dnsmasq
|
- dnsmasq
|
||||||
|
- samba
|
||||||
- iptables-nft
|
- iptables-nft
|
||||||
|
|
||||||
- name: update qemu.conf
|
- name: update qemu.conf
|
||||||
@ -24,12 +25,26 @@
|
|||||||
append: True
|
append: True
|
||||||
user: "{{ username }}"
|
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
|
- name: Enable libvirt service
|
||||||
ansible.builtin.systemd:
|
ansible.builtin.systemd:
|
||||||
name: libvirtd
|
name: libvirtd
|
||||||
state: started
|
state: started
|
||||||
enabled: yes
|
enabled: yes
|
||||||
|
|
||||||
|
- name: Enable samba service
|
||||||
|
ansible.builtin.systemd:
|
||||||
|
name: smb
|
||||||
|
state: started
|
||||||
|
enabled: yes
|
||||||
|
|
||||||
- name: Define a new network for virtualization
|
- name: Define a new network for virtualization
|
||||||
community.libvirt.virt_net:
|
community.libvirt.virt_net:
|
||||||
command: define
|
command: define
|
||||||
|
Loading…
Reference in New Issue
Block a user