WIP: Initial VM provisioning #4

Closed
cyclane wants to merge 38 commits from initial-vm-provisioning into main
2 changed files with 12 additions and 3 deletions
Showing only changes of commit f891d1e6a8 - Show all commits

View File

@ -63,7 +63,7 @@
sshkeys: "{{ ssh_public }}"
ipconfig:
ipconfig0: ip=dhcp,ip6=auto
ipconfig1: ip=dhcp,ip6=auto
ipconfig1: ip=dhcp
agent: enabled=1
tags:
- debian-12

View File

@ -10,12 +10,21 @@
delegate_to: localhost
- name: Test some stuff
ansible.builtin.shell: |
sudo apt update
sudo apt install -y qemu-guest-agent
touch ~/hmm
echo test > ~/test
echo test2 >> ~/test
mkdir ~/dir
touch ~/dir/testing
register: stuff
retries: 10
delay: 6
until: stuff.rc == 0
- name: Install some stuff
ansible.builtin.apt:
update_cache: true
name: qemu-guest-agent
- name: Enable some stuff
ansible.builtin.systemd:
name: qemu-guest-agent
state: started
enabled: true