multiple changes
This commit is contained in:
@@ -2,10 +2,14 @@
|
|||||||
- name: Set up IPA Client
|
- name: Set up IPA Client
|
||||||
hosts: lab_ipa_client
|
hosts: lab_ipa_client
|
||||||
become: yes
|
become: yes
|
||||||
|
collections:
|
||||||
|
- freeipa.ansible_freeipa
|
||||||
|
|
||||||
roles:
|
roles:
|
||||||
- role: debian-freeipa-client
|
- role: debian-freeipa-client
|
||||||
when: ansible_facts['os_family'] == "Debian"
|
when: ansible_facts['os_family'] == "Debian"
|
||||||
- role: alvaroaleman.freeipa-client
|
- role: ipaclient
|
||||||
|
state: present
|
||||||
when: ansible_facts['os_family'] == "RedHat"
|
when: ansible_facts['os_family'] == "RedHat"
|
||||||
|
|
||||||
- name: Set up Basic Lab Packages
|
- name: Set up Basic Lab Packages
|
||||||
|
|||||||
15
podhost.yml
Normal file
15
podhost.yml
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
- name: K8S installed and ready
|
||||||
|
hosts: k8s
|
||||||
|
become: yes
|
||||||
|
|
||||||
|
tasks:
|
||||||
|
- name: EPEL Repo enabled
|
||||||
|
yum:
|
||||||
|
name: epel-release
|
||||||
|
state: present
|
||||||
|
|
||||||
|
- name: Setting sebool container_manage_cgroup
|
||||||
|
seboolean:
|
||||||
|
name: container_manage_cgroup
|
||||||
|
state: yes
|
||||||
|
persistent: yes
|
||||||
@@ -5,4 +5,10 @@
|
|||||||
service:
|
service:
|
||||||
name: ovirt-guest-agent
|
name: ovirt-guest-agent
|
||||||
state: restarted
|
state: restarted
|
||||||
|
when: ansible_virtualization_type == "RHEV"
|
||||||
|
|
||||||
|
- name: Qemu Agent Restart
|
||||||
|
service:
|
||||||
|
name: qemu-guest-agent
|
||||||
|
state: restarted
|
||||||
when: ansible_virtualization_type == "RHEV"
|
when: ansible_virtualization_type == "RHEV"
|
||||||
@@ -1,17 +1,42 @@
|
|||||||
---
|
---
|
||||||
# Ensure that virtual guests have the guest tools installed.
|
# Ensure that virtual guests have the guest tools installed.
|
||||||
|
# TODO: Refactor to make cleaner, and more DRY
|
||||||
- block:
|
- block:
|
||||||
- name: Guest Tools Repository
|
- name: Guest Tools Repository
|
||||||
rhsm_repository:
|
rhsm_repository:
|
||||||
name: rhel-7-server-rh-common-rpms
|
name: rhel-7-server-rh-common-rpms
|
||||||
state: present
|
state: present
|
||||||
|
when:
|
||||||
|
- ansible_os_family == "RedHat"
|
||||||
|
- ansible_distribution_major_version == '7'
|
||||||
|
|
||||||
|
- name: Guest Tools Repository
|
||||||
|
rhsm_repository:
|
||||||
|
name: rhel-8-for-x86_64-appstream-rpms
|
||||||
|
state: present
|
||||||
|
when:
|
||||||
|
- ansible_os_family == "RedHat"
|
||||||
|
- ansible_distribution_major_version == '8'
|
||||||
|
|
||||||
- name: Install ovirt-guest-agent on RHV Guests
|
- name: Install ovirt-guest-agent on RHV Guests
|
||||||
yum:
|
yum:
|
||||||
name: ovirt-guest-agent
|
name: ovirt-guest-agent
|
||||||
state: present
|
state: present
|
||||||
notify: Ovirt Agent Restart
|
notify: Ovirt Agent Restart
|
||||||
when: ansible_virtualization_type == "RHEV"
|
when:
|
||||||
|
- ansible_virtualization_type == "RHEV"
|
||||||
|
- ansible_os_family == "RedHat"
|
||||||
|
- ansible_distribution_major_version == '7'
|
||||||
|
|
||||||
|
- name: Install qemu-guest agent on RHEL8 Guest
|
||||||
|
yum:
|
||||||
|
name: qemu-guest-agent
|
||||||
|
state: present
|
||||||
|
notify: Qemu Agent Restart
|
||||||
|
when:
|
||||||
|
- ansible_virtualization_type == "RHEV"
|
||||||
|
- ansible_os_family == "RedHat"
|
||||||
|
- ansible_distribution_major_version == '8'
|
||||||
|
|
||||||
- name: Install katello-agent on Satellite managed systems
|
- name: Install katello-agent on Satellite managed systems
|
||||||
yum:
|
yum:
|
||||||
@@ -24,4 +49,3 @@
|
|||||||
name: insights-client
|
name: insights-client
|
||||||
state: present
|
state: present
|
||||||
when: ansible_os_family == "RedHat"
|
when: ansible_os_family == "RedHat"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user