From 85f91135e58106b838083bd8a96734be6abafad1 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Thu, 26 Dec 2019 18:38:37 +0100 Subject: make vm install work for both debian/ubuntu and openbsd --- common/vm-install.yml | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) (limited to 'common/vm-install.yml') diff --git a/common/vm-install.yml b/common/vm-install.yml index 02c95fd8..cb3b86f0 100644 --- a/common/vm-install.yml +++ b/common/vm-install.yml @@ -45,15 +45,18 @@ set_fact: ansible_ssh_extra_args: "" -# - name: apply basic VM configuration roles -# hosts: "{{ hostname }}" -# pre_tasks: -# - name: make sure to update cached facts -# setup: -# roles: -# - role: vm/grub -# - role: vm/network -# - role: vm/guest +- name: apply basic VM configuration roles + hosts: "{{ hostname }}" + pre_tasks: + - name: make sure to update cached facts + setup: + roles: + - role: vm/grub + when: install_distro in ['debian', 'ubuntu'] + - role: vm/network + when: install_distro in ['debian', 'ubuntu'] + - role: vm/guest + when: install_distro in ['debian', 'ubuntu'] - import_playbook: "../{{ hostenv }}/{{ hostname }}.yml" -- cgit v1.2.3