Right. I did say “Assuming “hostname”means a fully qualified domain
name”, which is not the case. Change |ansible_fqdn| to
|ansible_hostname| in the “Correct kernel?” task and see if that helps.
Also, if you prefix your |ansible-playbook| command with
|ANSIBLE_STDOUT_CALLBACK=yaml| (or export the environment variable) you
may have more joy looking at your output.
On 1/4/22 3:50 AM, Marian Saldhana wrote:
Hi Todd,
Thanks for assisting me on it, I did configure the playbook on my test
machines and here is the output:
root@ansible-master /]# ansible-playbook hostname1.yml
PLAY [all]
******************************************************************************************************************************
TASK [Gathering Facts]
******************************************************************************************************************
ok: [ansible-client]
ok: [ansible-client1]
TASK [show file contents]
***************************************************************************************************************
ok: [ansible-client] => {
"msg": "Linux ansible-client 4.18.0-348.el8.x86_64\nLinux
ansible-client1 4.18.0-348.el8.x86_64"
}
ok: [ansible-client1] => {
"msg": "Linux ansible-client 4.18.0-348.el8.x86_64\nLinux
ansible-client1 4.18.0-348.el8.x86_64"
}
TASK [Correct kernel?]
******************************************************************************************************************
ok: [ansible-client]
ok: [ansible-client1]
TASK [Report via Debug]
*****************************************************************************************************************
ok: [ansible-client] => {
"msg":
"Kernel_expectations_missed:\n\nKernel_expectations_matched:\n-
ansible-client\n- ansible-client1\n\nKernel_expectations_error:\n\n"
}
PLAY RECAP
******************************************************************************************************************************
ansible-client : ok=4 changed=0 unreachable=0
failed=0 skipped=0 rescued=0 ignored=0
ansible-client1 : ok=3 changed=0 unreachable=0
failed=0 skipped=0 rescued=0 ignored=0
[root@ansible-master /]#
--
You received this message because you are subscribed to the Google Groups "Ansible
Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/d0764b5f-4b33-34e5-e972-002879f639ec%40gmail.com.