Merge "Validations now gather only the subset of facts they need"

This commit is contained in:
Zuul 2021-02-23 13:50:13 +00:00 committed by Gerrit Code Review
commit 3a7207f10d
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: >-