fix when conditions

This commit is contained in:
Kyle Isom 2023-04-11 07:24:59 -07:00
parent 94a7d7d197
commit 794f47c5da
1 changed files with 8 additions and 8 deletions

View File

@ -61,19 +61,19 @@
## virtualization and containerization ## virtualization and containerization
- name: ensure repository key is installed - name: ensure repository key is installed
when: dev_virt | dev_full when: dev_virt or dev_full
become: true become: true
ansible.builtin.apt_key: ansible.builtin.apt_key:
url: https://download.docker.com/linux/ubuntu/gpg url: https://download.docker.com/linux/ubuntu/gpg
state: present state: present
- name: ensure docker registry is available - name: ensure docker registry is available
when: dev_virt | dev_full when: dev_virt or dev_full
become: true become: true
ansible.builtin.apt_repository: repo='deb https://download.docker.com/linux/ubuntu bionic stable' state=present ansible.builtin.apt_repository: repo='deb https://download.docker.com/linux/ubuntu bionic stable' state=present
- name: rootfs building tools - name: rootfs building tools
when: dev_virt | dev_full when: dev_virt or dev_full
ansible.builtin.apt: name={{ item }} state=present ansible.builtin.apt: name={{ item }} state=present
become: true become: true
with_items: with_items:
@ -91,7 +91,7 @@
- syslinux-utils - syslinux-utils
- name: install container and virtualisation management - name: install container and virtualisation management
when: dev_virt | dev_full when: dev_virt or dev_full
become: true become: true
ansible.builtin.apt: name={{ item }} state=present ansible.builtin.apt: name={{ item }} state=present
with_items: with_items:
@ -118,21 +118,21 @@
notify: "restart docker service" notify: "restart docker service"
- name: Ensure kvm group exists - name: Ensure kvm group exists
when: dev_virt | dev_full when: dev_virt or dev_full
become: true become: true
ansible.builtin.group: ansible.builtin.group:
name: kvm name: kvm
state: present state: present
- name: Ensure docker group exists - name: Ensure docker group exists
when: dev_virt | dev_full when: dev_virt or dev_full
become: true become: true
ansible.builtin.group: ansible.builtin.group:
name: docker name: docker
state: present state: present
- name: add laptop user {{ laptop_user }} to docker group - name: add laptop user {{ laptop_user }} to docker group
when: dev_virt | dev_full when: dev_virt or dev_full
become: true become: true
ansible.builtin.user: ansible.builtin.user:
name: "{{ laptop_user }}" name: "{{ laptop_user }}"
@ -142,7 +142,7 @@
## embedded dev stuff ## embedded dev stuff
- name: installed embedded dev tools - name: installed embedded dev tools
when: dev_embedded | dev_full when: dev_embedded or dev_full
ansible.builtin.apt: name={{ item }} state=present ansible.builtin.apt: name={{ item }} state=present
become: true become: true
with_items: with_items: