fix when conditions
This commit is contained in:
parent
94a7d7d197
commit
794f47c5da
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue