From 794f47c5dadbe81b7999121c19d09c4a4cdb76d5 Mon Sep 17 00:00:00 2001 From: Kyle Isom Date: Tue, 11 Apr 2023 07:24:59 -0700 Subject: [PATCH] fix when conditions --- roles/development/tasks/main.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/roles/development/tasks/main.yml b/roles/development/tasks/main.yml index 1dcd564..44c9aa6 100644 --- a/roles/development/tasks/main.yml +++ b/roles/development/tasks/main.yml @@ -61,19 +61,19 @@ ## virtualization and containerization - name: ensure repository key is installed - when: dev_virt | dev_full + when: dev_virt or dev_full become: true ansible.builtin.apt_key: url: https://download.docker.com/linux/ubuntu/gpg state: present - name: ensure docker registry is available - when: dev_virt | dev_full + when: dev_virt or dev_full become: true ansible.builtin.apt_repository: repo='deb https://download.docker.com/linux/ubuntu bionic stable' state=present - name: rootfs building tools - when: dev_virt | dev_full + when: dev_virt or dev_full ansible.builtin.apt: name={{ item }} state=present become: true with_items: @@ -91,7 +91,7 @@ - syslinux-utils - name: install container and virtualisation management - when: dev_virt | dev_full + when: dev_virt or dev_full become: true ansible.builtin.apt: name={{ item }} state=present with_items: @@ -118,21 +118,21 @@ notify: "restart docker service" - name: Ensure kvm group exists - when: dev_virt | dev_full + when: dev_virt or dev_full become: true ansible.builtin.group: name: kvm state: present - name: Ensure docker group exists - when: dev_virt | dev_full + when: dev_virt or dev_full become: true ansible.builtin.group: name: docker state: present - name: add laptop user {{ laptop_user }} to docker group - when: dev_virt | dev_full + when: dev_virt or dev_full become: true ansible.builtin.user: name: "{{ laptop_user }}" @@ -142,7 +142,7 @@ ## embedded dev stuff - name: installed embedded dev tools - when: dev_embedded | dev_full + when: dev_embedded or dev_full ansible.builtin.apt: name={{ item }} state=present become: true with_items: