From 0bebf35471302220a44aeba5372f1f51d354b922 Mon Sep 17 00:00:00 2001 From: Alexander Dahl Date: Sat, 23 Jul 2022 20:42:11 +0200 Subject: [PATCH] Move proxmox specific tasks to separate playbook Suggested-by: Stefan Haun --- main.yml | 11 ++--------- proxmox.yml | 9 +++++++++ 2 files changed, 11 insertions(+), 9 deletions(-) create mode 100644 proxmox.yml diff --git a/main.yml b/main.yml index b6908db..88c86ef 100644 --- a/main.yml +++ b/main.yml @@ -35,15 +35,8 @@ include_role: name: users -- hosts: proxmox - become: true - - tasks: - - - name: Ensure qemu guest agent is installed on proxmox VMs - ansible.builtin.apt: - pkg: qemu-guest-agent - state: present +- name: Specific setup for all proxmox hosts + import_playbook: proxmox.yml - name: Tau specific setup import_playbook: tau.yml diff --git a/proxmox.yml b/proxmox.yml new file mode 100644 index 0000000..6ec32bb --- /dev/null +++ b/proxmox.yml @@ -0,0 +1,9 @@ +--- +- hosts: proxmox + become: true + + tasks: + - name: Ensure qemu guest agent is installed on proxmox VMs + ansible.builtin.apt: + pkg: qemu-guest-agent + state: present