-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix ci tests Signed-off-by: Rich Megginson <[email protected]>
- Loading branch information
Showing
9 changed files
with
74 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# SPDX-License-Identifier: MIT | ||
|
||
# ansible and dependencies for all supported platforms | ||
ansible ; python_version > "2.6" | ||
ansible<2.7 ; python_version < "2.7" | ||
idna<2.8 ; python_version < "2.7" | ||
PyYAML<5.1 ; python_version < "2.7" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,13 @@ | ||
# SPDX-License-Identifier: MIT | ||
# No enable-repositories tasks are needed for Fedora. This file serves as a | ||
# placeholder and prevents RedHat.yml to be executed instead. | ||
--- | ||
- name: List active CentOS repositories | ||
command: dnf repolist | ||
register: __gfs2_repolist | ||
changed_when: false | ||
check_mode: false | ||
|
||
- name: Enable CentOS repositories | ||
command: dnf config-manager --set-enabled {{ item.id | quote }} | ||
loop: "{{ __gfs2_repos }}" | ||
when: item.id not in __gfs2_repolist.stdout | ||
changed_when: item.name not in __gfs2_repolist.stdout |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
--- | ||
- name: Ensure ansible_facts used by role | ||
ansible.builtin.setup: | ||
gather_subset: "{{ __gfs2_required_facts_subsets }}" | ||
when: __gfs2_required_facts | | ||
difference(ansible_facts.keys() | list) | length > 0 | ||
|
||
- name: Determine if system is ostree and set flag | ||
when: not __gfs2_is_ostree is defined | ||
block: | ||
- name: Check if system is ostree | ||
ansible.builtin.stat: | ||
path: /run/ostree-booted | ||
register: __ostree_booted_stat | ||
|
||
- name: Set flag to indicate system is ostree | ||
ansible.builtin.set_fact: | ||
__gfs2_is_ostree: "{{ __ostree_booted_stat.stat.exists }}" | ||
|
||
- name: Set platform/version specific variables | ||
ansible.builtin.include_vars: "{{ __vars_file }}" | ||
loop: | ||
- "{{ ansible_facts['os_family'] }}.yml" | ||
- "{{ ansible_facts['distribution'] }}.yml" | ||
- >- | ||
{{ ansible_facts['distribution'] ~ '_' ~ | ||
ansible_facts['distribution_major_version'] }}.yml | ||
- >- | ||
{{ ansible_facts['distribution'] ~ '_' ~ | ||
ansible_facts['distribution_version'] }}.yml | ||
vars: | ||
__vars_file: "{{ role_path }}/vars/{{ item }}" | ||
when: __vars_file is file |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
#!/usr/bin/python | ||
|
||
from __future__ import absolute_import, division, print_function | ||
|
||
__metaclass__ = type | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# SPDX-License-Identifier: MIT | ||
--- | ||
__gfs2_repos: | ||
- id: resilientstorage | ||
name: ResilientStorage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# SPDX-License-Identifier: MIT | ||
--- | ||
__gfs2_repos: | ||
- id: resilientstorage | ||
name: ResilientStorage |