community.sap_install
community.sap_install copied to clipboard
sap_general_preconfigure: At the end of a playbook run, print a summary of all changes done on each managed node (lsr/sap-preconfigure issue #151)
Copy of https://github.com/linux-system-roles/sap-preconfigure/issues/151#issuecomment-916224326, reported by https://github.com/berndfinger:
A simple solution might be to run:
# awk 'BEGIN{a=1}/TASK/{gsub ("*", ""); task=$0}/RUNNING HANDLER/{a=0}/changed:/&&a==1{printf ("%s %s\n", $0, task)}'
on the output. It will print the task names in case a change was triggered by the task. Example:
changed: [managed_node_1] TASK [sap-preconfigure : Ensure required package groups are installed]
changed: [managed_node_1] TASK [sap-preconfigure : Ensure required packages are installed]
changed: [managed_node_1] TASK [sap-preconfigure : Call Reboot handler if necessary]
changed: [managed_node_1] TASK [sap-preconfigure : Set SELinux state]
changed: [managed_node_1] TASK [sap-preconfigure : Call Reboot handler if necessary]
changed: [managed_node_1] TASK [sap-preconfigure : Ensure short system hostname is set]
changed: [managed_node_1] TASK [sap-preconfigure : Ensure that the entry in /etc/hosts is correct]
changed: [managed_node_1] TASK [sap-preconfigure : Stop and disable service firewalld]
changed: [managed_node_1] TASK [sap-preconfigure : Configure tmpfs in /etc/fstab]
changed: [managed_node_1] TASK [sap-preconfigure : Trigger remounting if /dev/shm has not the expected size]
changed: [managed_node_1] => (item={'name': 'vm.max_map_count', 'value': '2147483647'}) TASK [sap-preconfigure : Set kernel parameters]
changed: [managed_node_1] => (item={'name': 'kernel.pid_max', 'value': '4194304'}) TASK [sap-preconfigure : Set kernel parameters]
changed: [managed_node_1] => (item=hard) TASK [sap-preconfigure : Set the hard and soft limit for the max number of open files per process (nofile) to 65536 for group sapsys]
changed: [managed_node_1] => (item=soft) TASK [sap-preconfigure : Set the hard and soft limit for the max number of open files per process (nofile) to 65536 for group sapsys]
changed: [managed_node_1] => (item=hard) TASK [sap-preconfigure : Set the hard and soft limit for the max number of processes per user (nproc) to unlimited for group sapsys]
changed: [managed_node_1] => (item=soft) TASK [sap-preconfigure : Set the hard and soft limit for the max number of processes per user (nproc) to unlimited for group sapsys]
changed: [managed_node_1] TASK [sap-preconfigure : Copy file /etc/tmpfiles.d/sap.conf]
I think this can be close @berndfinger
Related to:
- https://github.com/sap-linuxlab/community.sap_install/issues/724
- https://github.com/sap-linuxlab/community.sap_install/issues/502
- https://github.com/sap-linuxlab/community.sap_install/issues/6