Ansible desktop
I wanted to create a new ansible playbook to configure a new proxmox LXC host.
- Create script
desk01.shto create the LXC container onpve02and execute is.- Execute:
desk01.sh
The script creates the container. It sets the root password and adds the public SSH key to the root account.
- Execute:
- Add
desk01to dns and inventory:- Edit:
inventory/homelab.yml - Edit:
roles/dns/files/db.192.168.23 - Edit:
roles/dns/files/db.cvdg.eu - Execute:
ansible-playbook playbooks/dns.yml
- Edit:
- Check if the host is reachable:
- Execute:
ansible -m ping desk01.cvdg.eu -u root
- Execute:
- Bootstrap
desk01:- Execute:
ansible-playbook playbooks/bootstrap.yml -l desk01.cvdg.eu
- Execute:
I have installed:
- task-gnome-desktop
- tightvncserver
It is not working yet.
vncserverondesk01starts.vncviewerfromlaptop01connects to the VNC server, but…- No graphical output.
The repository is mirrored on
codeberg.org/cvdg/homelab-ansible.