Skip to content

Commit

Permalink
EL latest.
Browse files Browse the repository at this point in the history
  • Loading branch information
buluma committed Nov 23, 2023
1 parent 946cd7f commit f43e06c
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 6 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ jobs:
config:
- image: "enterpriselinux"
tag: "8"
- image: "enterpriselinux"
tag: "latest"
- image: "debian-systemd"
tag: "latest"
- image: "debian-systemd"
Expand Down
2 changes: 2 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ molecule:
matrix:
- image: "enterpriselinux"
tag: "8"
- image: "enterpriselinux"
tag: "latest"
- image: "debian-systemd"
tag: "latest"
- image: "debian-systemd"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ This role has been tested on these [container images](https://hub.docker.com/u/b

|container|tags|
|---------|----|
|[EL](https://hub.docker.com/repository/docker/buluma/enterpriselinux/general)|8|
|[EL](https://hub.docker.com/repository/docker/buluma/enterpriselinux/general)|8, 9|
|[Debian](https://hub.docker.com/repository/docker/buluma/debian/general)|all|
|[Fedora](https://hub.docker.com/repository/docker/buluma/fedora/general)|all|
|[Ubuntu](https://hub.docker.com/repository/docker/buluma/ubuntu/general)|all|
Expand Down
1 change: 1 addition & 0 deletions meta/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ galaxy_info:
- name: EL
versions:
- "8"
- "9"
- name: Debian
versions:
- all
Expand Down
19 changes: 16 additions & 3 deletions tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,20 @@
---
# tasks file for ansible_lint

- name: Install ansible_lint
- name: Install ansible_lint using pip
ansible.builtin.pip:
name: "{{ ansible_lint_packages }}"
state: present
name: "{{ item.name }}"
when:
- item.type == "pip"
loop: "{{ ansible_lint_packages }}"
loop_control:
label: "{{ item.name }}"

- name: Install ansible_lint using package
ansible.builtin.package:
name: "{{ item.name }}"
when:
- item.type == "package"
loop: "{{ ansible_lint_packages }}"
loop_control:
label: "{{ item.name }}"
10 changes: 8 additions & 2 deletions vars/main.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
---
# vars file for ansible_lint

ansible_lint_packages:
- ansible-lint
_ansible_lint_packages:
default:
- name: ansible-lint
type: pip
Debian:
- name: ansible-lint
type: package
ansible_lint_packages: "{{ _ansible_lint_packages[ansible_os_family] | default(_ansible_lint_packages['default']) }}"

0 comments on commit f43e06c

Please sign in to comment.