-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #837 from fao89/OSPRH-11938
Adding a playbook for managing RH subscription and Insights
- Loading branch information
Showing
1 changed file
with
24 additions
and
0 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,24 @@ | ||
--- | ||
|
||
- name: RH subscription management and Insights | ||
hosts: "{{ edpm_override_hosts | default('all', true) }}" | ||
strategy: linear | ||
gather_facts: "{{ gather_facts | default(false) }}" | ||
any_errors_fatal: "{{ edpm_any_errors_fatal | default(true) }}" | ||
max_fail_percentage: "{{ edpm_max_fail_percentage | default(0) }}" | ||
tasks: | ||
- name: Gather facts if they don't exist | ||
ansible.builtin.setup: | ||
gather_subset: | ||
- "!all" | ||
- "!min" | ||
- "distribution" | ||
when: "'distribution' not in ansible_facts" | ||
- name: Load system-roles.rhc tasks | ||
ansible.builtin.include_role: | ||
name: "{{ lookup('ansible.builtin.env', 'EDPM_SYSTEMROLES', default='redhat.rhel_system_roles') + '.rhc' }}" | ||
apply: | ||
become: true | ||
when: ansible_facts['distribution'] | lower == 'redhat' | ||
tags: | ||
- edpm_bootstrap |