From f891d1e6a872c61fc521080fc6c20d6eb72b425e Mon Sep 17 00:00:00 2001 From: Gleb Koval Date: Fri, 8 Sep 2023 23:58:04 +0100 Subject: [PATCH] improve stuff --- infra/joplin/0000_proxmox_playbook.yaml | 2 +- infra/joplin/0001_software_playbook.yaml | 13 +++++++++++-- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/infra/joplin/0000_proxmox_playbook.yaml b/infra/joplin/0000_proxmox_playbook.yaml index ddbbf3a..3b7151f 100644 --- a/infra/joplin/0000_proxmox_playbook.yaml +++ b/infra/joplin/0000_proxmox_playbook.yaml @@ -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 diff --git a/infra/joplin/0001_software_playbook.yaml b/infra/joplin/0001_software_playbook.yaml index 84710de..654448d 100644 --- a/infra/joplin/0001_software_playbook.yaml +++ b/infra/joplin/0001_software_playbook.yaml @@ -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