Here is my command-line run without using the encrypted password provided by ansible-vault (in this case nothing is done because the server in the inventory has already been patched):
$ ansible-playbook redhatpatching.yml -i testing.yml -l testing -f 5 -u sa_cge_sm -k -K
SSH password:
BECOME password[defaults to SSH password]:
PLAY [dfwtesting] ***************************************************************************************************************************************************************************
TASK [Gathering Facts] **********************************************************************************************************************************************************************
ok: [xxxxxxxxxxx.xxx.xxxxxx.xxxx.xxxx]
TASK [Check for running databases] **********************************************************************************************************************************************************
changed: [xxxxxxxxxxx.xxx.xxxxxx.xxxx.xxxx]
TASK [Shut down databases] ******************************************************************************************************************************************************************
skipping: [xxxxxxxxxxx.xxx.xxxxxx.xxxx.xxxx]
TASK [Check for running databases] **********************************************************************************************************************************************************
changed: [xxxxxxxxxxx.xxx.xxxxxx.xxxx.xxxx]
TASK [Decision point to start applying patches] *********************************************************************************************************************************************
skipping: [xxxxxxxxxxx.xxx.xxxxxx.xxxx.xxxx]
TASK [Check RPM database integrity] *********************************************************************************************************************************************************
changed: [xxxxxxxxxxx.xxx.xxxxxx.xxxx.xxxx]
TASK [Fix RPM database if check failed] *****************************************************************************************************************************************************
skipping: [xxxxxxxxxxx.xxx.xxxxxx.xxxx.xxxx]
TASK [Upgrade all packages on the server] ***************************************************************************************************************************************************
ok: [xxxxxxxxxxx.xxx.xxxxxx.xxxx.xxxx]
TASK [Determine whether reboot is required after update] ************************************************************************************************************************************
changed: [xxxxxxxxxxx.xxx.xxxxxx.xxxx.xxxx]
TASK [Reboot server] ************************************************************************************************************************************************************************
skipping: [xxxxxxxxxxx.xxx.xxxxxx.xxxx.xxxx]
TASK [Sleep for 120 seconds after reboot] ***************************************************************************************************************************************************
skipping: [xxxxxxxxxxx.xxx.xxxxxx.xxxx.xxxx]
TASK [Ensure latest yum-utils package is installed] *****************************************************************************************************************************************
ok: [xxxxxxxxxxx.xxx.xxxxxx.xxxx.xxxx]
TASK [Remove the old kernels from the system] ***********************************************************************************************************************************************
changed: [xxxxxxxxxxx.xxx.xxxxxx.xxxx.xxxx]
TASK [Start up the databases] ***************************************************************************************************************************************************************
skipping: [xxxxxxxxxxx.xxx.xxxxxx.xxxx.xxxx]
TASK [Run db-repl-ck on all DB servers] *****************************************************************************************************************************************************
skipping: [xxxxxxxxxxx.xxx.xxxxxx.xxxx.xxxx]
TASK [Run db-status on all DB servers] ******************************************************************************************************************************************************
skipping: [xxxxxxxxxxx.xxx.xxxxxx.xxxx.xxxx]
TASK [Run db-summary on all DB servers] *****************************************************************************************************************************************************
skipping: [xxxxxxxxxxx.xxx.xxxxxx.xxxx.xxxx]
PLAY RECAP **********************************************************************************************************************************************************************************
xxxxxxxxxxx.xxx.xxxxxx.xxxx.xxxx : ok=8 changed=5 unreachable=0 failed=0 skipped=9 rescued=0 ignored=0