Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2c944e6cc8 |
@@ -8,7 +8,7 @@ collections:
|
|||||||
- name: redhat.insights
|
- name: redhat.insights
|
||||||
version: 1.0.7
|
version: 1.0.7
|
||||||
- name: redhat.rhel_system_roles
|
- name: redhat.rhel_system_roles
|
||||||
version: 1.20.0
|
version: 1.21.1
|
||||||
- name: community.general
|
- name: community.general
|
||||||
version: 6.3.0
|
version: 6.3.0
|
||||||
- name: containers.podman
|
- name: containers.podman
|
||||||
|
|||||||
@@ -2,9 +2,12 @@
|
|||||||
- name: Register ec2 instance with subscription mangler
|
- name: Register ec2 instance with subscription mangler
|
||||||
hosts: "{{ _hosts | default(omit) }}"
|
hosts: "{{ _hosts | default(omit) }}"
|
||||||
become: true
|
become: true
|
||||||
|
vars:
|
||||||
|
registration_state: present
|
||||||
|
insights_state: present
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
- name: Check for vars
|
- name: Check for org_id and activation_key
|
||||||
ansible.builtin.assert:
|
ansible.builtin.assert:
|
||||||
that:
|
that:
|
||||||
- org_id is defined
|
- org_id is defined
|
||||||
@@ -56,18 +59,19 @@
|
|||||||
regexp: '^manage_repos'
|
regexp: '^manage_repos'
|
||||||
line: 'manage_repos = 1'
|
line: 'manage_repos = 1'
|
||||||
|
|
||||||
- name: Register subscription mangler
|
- name: Register with subscription mangler
|
||||||
community.general.redhat_subscription:
|
ansible.builtin.include_role:
|
||||||
state: present
|
name: redhat.rhel_system_roles.rhc
|
||||||
activationkey: "{{ activation_key }}"
|
|
||||||
org_id: "{{ org_id }}"
|
|
||||||
|
|
||||||
- name: Configure Red Hat insights
|
|
||||||
ansible.builtin.import_role:
|
|
||||||
name: redhat.insights.insights_client
|
|
||||||
vars:
|
vars:
|
||||||
insights_display_name: "{{ inventory_hostname }}"
|
rhc_state: "{{ registration_state }}"
|
||||||
insights_tags:
|
rhc_organization: "{{ org_id }}"
|
||||||
env: "{{ env }}"
|
rhc_auth:
|
||||||
purpose: demo
|
activation_keys:
|
||||||
group: "{{ insights_tag }}"
|
keys:
|
||||||
|
- "{{ activation_key }}"
|
||||||
|
rhc_insights:
|
||||||
|
state: "{{ insights_state }}"
|
||||||
|
tags:
|
||||||
|
env: "{{ env }}"
|
||||||
|
purpose: demo
|
||||||
|
group: "{{ insights_tag }}"
|
||||||
|
|||||||
Reference in New Issue
Block a user