refactor task includes
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
ec963f38a7
commit
fc4cf5e2af
@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
- name: Upgrade packages (debian)
|
- name: Upgrade packages
|
||||||
apt:
|
apt:
|
||||||
update_cache: yes
|
update_cache: yes
|
||||||
upgrade: dist
|
upgrade: dist
|
||||||
|
@ -1,6 +1,10 @@
|
|||||||
---
|
---
|
||||||
- include_tasks: redhat.yml
|
- include_tasks: "{{ lookup('first_found', params) }}"
|
||||||
when: "'redhat' in group_names or 'redhat_arm' in group_names"
|
vars:
|
||||||
|
params:
|
||||||
- include_tasks: debian.yml
|
files:
|
||||||
when: "'debian' in group_names or 'debian_pve' in group_names or 'debian_ucs' in group_names"
|
- "{{ ansible_lsb.id | default('') | lower }}.yml"
|
||||||
|
- "{{ ansible_os_family | lower }}.yml"
|
||||||
|
paths:
|
||||||
|
- "tasks"
|
||||||
|
errors: "ignore"
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
- name: Upgrade packages (rhel)
|
- name: Upgrade packages
|
||||||
yum:
|
yum:
|
||||||
name: "*"
|
name: "*"
|
||||||
state: latest
|
state: latest
|
||||||
|
Loading…
Reference in New Issue
Block a user