simplified install package logic
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
553486f41f
commit
1b3337d422
@ -1,4 +1,4 @@
|
||||
---
|
||||
install: false
|
||||
install: true
|
||||
package_list:
|
||||
- "apt"
|
||||
|
@ -28,10 +28,8 @@
|
||||
- name: install packages
|
||||
become: yes
|
||||
apt:
|
||||
name: "{{ item }}"
|
||||
name: "{{ package_list | list }}"
|
||||
state: present
|
||||
with_items:
|
||||
- "{{ package_list }}"
|
||||
when: install and ansible_os_family == "Debian"
|
||||
|
||||
- name: Check if a reboot is required
|
||||
|
Loading…
Reference in New Issue
Block a user