Hello everyone,
@Inderpreet @Tej-Singh-Rana @kodekloud-support3 @Ayman, any idea what has gone wrong? can you please check this for once at least and let me know what have i done wrong?
thor@jump_host ~/ansible$ sudo ansible-playbook -i inventory playbook.yml
PLAY [all] ************************************************************************
TASK [Gathering Facts] ************************************************************
ok: [stapp01]
ok: [stapp02]
ok: [stapp03]
TASK [Install all the packages] ***************************************************
ok: [stapp02]
ok: [stapp01]
ok: [stapp03]
TASK [restart and enable httpd] ***************************************************
ok: [stapp03]
ok: [stapp02]
ok: [stapp01]
TASK [Insert/Update HTML after line] ***************************************
ok: [stapp03]
ok: [stapp01]
ok: [stapp02]
TASK [Change file ownership, group and permissions] *******************************
ok: [stapp02]
ok: [stapp03]
ok: [stapp01]
PLAY RECAP ************************************************************************
stapp01 : ok=5 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
stapp02 : ok=5 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
stapp03 : ok=5 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
reason why task failed :
something is wrong with playbook as ‘/var/www/html/index.html’ file does not contain correct data on App Server 1