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:
|
package_list:
|
||||||
- "apt"
|
- "apt"
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user