simplified install package logic
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Tobias Trabelsi 2021-06-28 21:24:51 +02:00
parent 553486f41f
commit 1b3337d422
Signed by: lerentis
GPG Key ID: FF0C2839718CAF2E
2 changed files with 2 additions and 4 deletions

View File

@ -1,4 +1,4 @@
--- ---
install: false install: true
package_list: package_list:
- "apt" - "apt"

View File

@ -28,10 +28,8 @@
- name: install packages - name: install packages
become: yes become: yes
apt: apt:
name: "{{ item }}" name: "{{ package_list | list }}"
state: present state: present
with_items:
- "{{ package_list }}"
when: install and ansible_os_family == "Debian" when: install and ansible_os_family == "Debian"
- name: Check if a reboot is required - name: Check if a reboot is required