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:
parent
a92c1d2170
commit
6b11677987
@ -1,6 +1,6 @@
|
||||
---
|
||||
- hosts: all
|
||||
gather_facts: true
|
||||
gather_facts: false
|
||||
vars:
|
||||
metadata:
|
||||
name: Verify if the server fits the CPU core requirements
|
||||
|
@ -1,6 +1,6 @@
|
||||
---
|
||||
- hosts: localhost
|
||||
gather_facts: true
|
||||
gather_facts: false
|
||||
vars:
|
||||
metadata:
|
||||
name: Check if latest version of packages is installed
|
||||
|
@ -1,6 +1,6 @@
|
||||
---
|
||||
- hosts: all
|
||||
gather_facts: true
|
||||
gather_facts: false
|
||||
vars:
|
||||
metadata:
|
||||
name: Verify the server fits the RAM requirements
|
||||
|
@ -1,6 +1,6 @@
|
||||
---
|
||||
- hosts: all
|
||||
gather_facts: true
|
||||
gather_facts: false
|
||||
vars:
|
||||
metadata:
|
||||
name: SELinux Enforcing Mode Check
|
||||
|
@ -1,4 +1,11 @@
|
||||
---
|
||||
- name: Gather facts
|
||||
setup:
|
||||
gather_subset:
|
||||
- processor_count
|
||||
- '!all'
|
||||
- '!min'
|
||||
|
||||
- name: Verify the number of CPU cores
|
||||
fail:
|
||||
msg: >-
|
||||
|
@ -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 }}"
|
||||
|
@ -1,4 +1,11 @@
|
||||
---
|
||||
- name: Gather facts
|
||||
setup:
|
||||
gather_subset:
|
||||
- hardware
|
||||
- '!all'
|
||||
- '!min'
|
||||
|
||||
- name: Verify the RAM requirements
|
||||
fail:
|
||||
msg: >-
|
||||
|
Loading…
Reference in New Issue
Block a user