Fix exceptions for better, more concise, functionality
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
ead6752bab
commit
18a389df0f
@ -4,3 +4,5 @@ skip_list:
|
||||
- yaml[line-length]
|
||||
- no-changed-when
|
||||
- galaxy[no-changelog]
|
||||
- no-free-form
|
||||
- package-latest
|
||||
|
@ -8,7 +8,7 @@ namespace: jchristianh
|
||||
name: baseos
|
||||
|
||||
# The version of the collection. Must be compatible with semantic versioning
|
||||
version: 1.0.33
|
||||
version: 1.0.34
|
||||
|
||||
# The path to the Markdown (.md) readme file. This path is relative to the root of the collection
|
||||
readme: README.md
|
||||
|
@ -1,29 +1,21 @@
|
||||
---
|
||||
- name: Update package cache for Debian hosts
|
||||
apt:
|
||||
ansible.builtin.apt:
|
||||
update_cache: true
|
||||
when:
|
||||
- ansible_distribution|lower == 'debian'
|
||||
tags:
|
||||
- skip_ansible_lint
|
||||
- "'apt' in ansible_pkg_mgr"
|
||||
|
||||
|
||||
- name: Update package cache for RHEL/CentOS/Fedora hosts
|
||||
dnf:
|
||||
ansible.builtin.dnf:
|
||||
update_cache: true
|
||||
when:
|
||||
- (ansible_distribution|lower == 'centos' or
|
||||
ansible_distribution|lower == 'fedora' or
|
||||
ansible_distribution|lower == 'redhat')
|
||||
- "'dnf' in ansible_pkg_mgr"
|
||||
- ansible_distribution_major_version|int >= 8
|
||||
tags:
|
||||
- skip_ansible_lint
|
||||
|
||||
|
||||
- name: Update all host packages
|
||||
package: name=* state=latest
|
||||
tags:
|
||||
- skip_ansible_lint
|
||||
ansible.builtin.package: name=* state=latest
|
||||
|
||||
|
||||
...
|
||||
|
Loading…
x
Reference in New Issue
Block a user