Validations now gather only the subset of facts they need

The default facts gathering is set to false.

Signed-off-by: Jiri Podivin <jpodivin@redhat.com>
Change-Id: I2ac937df59f91b566029b0260e804d2972362f97
This commit is contained in:
Jiri Podivin 2021-02-17 11:40:56 +01:00 committed by Gael Chamoulaud (Strider)
parent a92c1d2170
commit 6b11677987
No known key found for this signature in database
GPG Key ID: 4119D0305C651D66
7 changed files with 29 additions and 4 deletions

View File

@ -1,6 +1,6 @@
---
- hosts: all
gather_facts: true
gather_facts: false
vars:
metadata:
name: Verify if the server fits the CPU core requirements

View File

@ -1,6 +1,6 @@
---
- hosts: localhost
gather_facts: true
gather_facts: false
vars:
metadata:
name: Check if latest version of packages is installed

View File

@ -1,6 +1,6 @@
---
- hosts: all
gather_facts: true
gather_facts: false
vars:
metadata:
name: Verify the server fits the RAM requirements

View File

@ -1,6 +1,6 @@
---
- hosts: all
gather_facts: true
gather_facts: false
vars:
metadata:
name: SELinux Enforcing Mode Check

View File

@ -1,4 +1,11 @@
---
- name: Gather facts
setup:
gather_subset:
- processor_count
- '!all'
- '!min'
- name: Verify the number of CPU cores
fail:
msg: >-

View File

@ -1,4 +1,15 @@
---
- name: Gather facts
setup:
gather_subset:
- '!all'
- '!min'
- pkg_mgr
- name: Gather package facts
package_facts:
manager: auto
- name: Get available updates for packages
check_package_update:
package: "{{ item }}"

View File

@ -1,4 +1,11 @@
---
- name: Gather facts
setup:
gather_subset:
- hardware
- '!all'
- '!min'
- name: Verify the RAM requirements
fail:
msg: >-