Skip to content

Commit

Permalink
refactor: remove distro specific setup in favor of lstig.gpg role
Browse files Browse the repository at this point in the history
  • Loading branch information
lstig committed Feb 10, 2024
1 parent bced0ee commit 5d7cd00
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 23 deletions.
3 changes: 2 additions & 1 deletion meta/main.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---

Check failure on line 1 in meta/main.yml

View workflow job for this annotation

GitHub Actions / Lint

schema[meta]

$.dependencies[0] 'lstig.gpg' is not of type 'object'. See https://docs.ansible.com/ansible/latest/playbook_guide/playbooks_reuse_roles.html#role-dependencies
dependencies: []
dependencies:
- lstig.gpg

galaxy_info:
role_name: matchbox
Expand Down
12 changes: 0 additions & 12 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,6 @@
- name: Include variables
ansible.builtin.include_vars: main.yml

- name: Distribution specific setup
ansible.builtin.include_tasks: "{{ item }}"
with_first_found:
- files:
- setup/{{ ansible_facts['distribution'] }}-{{ ansible_facts['distribution_version'] }}.yml
- setup/{{ ansible_facts['distribution'] }}-{{ ansible_facts['distribution_major_version'] }}.yml
- setup/{{ ansible_facts['distribution'] }}.yml
- setup/{{ ansible_facts['os_family'] }}-{{ ansible_facts['distribution_version'] }}.yml
- setup/{{ ansible_facts['os_family'] }}-{{ ansible_facts['distribution_major_version'] }}.yml
- setup/{{ ansible_facts['os_family'] }}.yml
skip: true

- name: Check matchbox version
ansible.builtin.command: "{{ matchbox_bin_directory }}/matchbox --version"
register: _result
Expand Down
5 changes: 0 additions & 5 deletions tasks/setup/Debian.yml

This file was deleted.

5 changes: 0 additions & 5 deletions tasks/setup/Ubuntu.yml

This file was deleted.

0 comments on commit 5d7cd00

Please sign in to comment.