Ansible-lint compliance for roles/base_packages and slight restructuring
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
08cfe9f878
commit
818187a484
@ -1,10 +0,0 @@
|
|||||||
---
|
|
||||||
__project_author : Chris Hammer
|
|
||||||
__project_email : chris@thezengarden.net
|
|
||||||
__project_repo : https://github.com/jchristianh-ansible-collections/baseos
|
|
||||||
|
|
||||||
|
|
||||||
__template_header : The Zen Garden
|
|
||||||
|
|
||||||
|
|
||||||
...
|
|
@ -2,18 +2,18 @@
|
|||||||
- name: Include distribution specific variables or include defaults
|
- name: Include distribution specific variables or include defaults
|
||||||
block:
|
block:
|
||||||
- name: Include distribution specific variables
|
- name: Include distribution specific variables
|
||||||
include_vars:
|
ansible.builtin.include_vars:
|
||||||
file: "{{ ansible_distribution | lower }}_{{ ansible_distribution_major_version }}.yml"
|
file: "{{ ansible_distribution | lower }}_{{ ansible_distribution_major_version }}.yml"
|
||||||
|
|
||||||
|
|
||||||
rescue:
|
rescue:
|
||||||
- name: Non-supported distribution; using default package set
|
- name: Non-supported distribution; using default package set
|
||||||
include_vars:
|
ansible.builtin.include_vars:
|
||||||
file: __default_packages.yml
|
file: default_packages.yml
|
||||||
|
|
||||||
|
|
||||||
- name: Install EPEL for CentOS hosts - Required for some packages
|
- name: Install EPEL for CentOS hosts - Required for some packages
|
||||||
package:
|
ansible.builtin.package:
|
||||||
name : epel-release
|
name : epel-release
|
||||||
state : present
|
state : present
|
||||||
when:
|
when:
|
||||||
@ -21,8 +21,8 @@
|
|||||||
|
|
||||||
|
|
||||||
- name: Install package set
|
- name: Install package set
|
||||||
package:
|
ansible.builtin.package:
|
||||||
name : "{{ __base_packages }}"
|
name : "{{ base_packages_package_set }}"
|
||||||
state : present
|
state : present
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
__base_packages:
|
base_packages_package_set:
|
||||||
- bc
|
- bc
|
||||||
- bind-utils
|
- bind-utils
|
||||||
- bzip2
|
- bzip2
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
__base_packages:
|
base_packages_package_set:
|
||||||
- bc
|
- bc
|
||||||
- bind-utils
|
- bind-utils
|
||||||
- bzip2
|
- bzip2
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
__base_packages:
|
base_packages_package_set:
|
||||||
- bc
|
- bc
|
||||||
- bind-utils
|
- bind-utils
|
||||||
- bzip2
|
- bzip2
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
__base_packages:
|
base_packages_package_set:
|
||||||
- bc
|
- bc
|
||||||
- bind9utils
|
- bind9utils
|
||||||
- bzip2
|
- bzip2
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
# Please adjust accordingly, or include a vars file matching the pattern:
|
# Please adjust accordingly, or include a vars file matching the pattern:
|
||||||
# <ansible_distribution>_<ansible_distribution_major_version>.yml
|
# <ansible_distribution>_<ansible_distribution_major_version>.yml
|
||||||
|
|
||||||
__base_packages:
|
base_packages_package_set:
|
||||||
- bc
|
- bc
|
||||||
- bzip2
|
- bzip2
|
||||||
- file
|
- file
|
@ -1,2 +0,0 @@
|
|||||||
---
|
|
||||||
# vars file for base_packages
|
|
Loading…
x
Reference in New Issue
Block a user