hi guys, didn't find how to report to support, but 644 won't work for Apache vhost - execute is needed also... lost an hour trying to get what's wrong with my playbook, checked with offered solution and it also doesn't work - got 403 and it goes from Apache internal logic. 655 made it working.
- name: Copy index.html
ansible.builtin.copy:
src: files/
dest: "/var/www/vhosts/{{ ansible_facts['hostname'] }}/"
owner: root
group: root
mode: '0644'
Also there is 'mod_ssl' package missing in offered solution and it makes 'serverb' sad about because of some SSL-related directives in its cfg...
ok, realized that it seems forgotten SSL-enabling 'vhosts.conf' left on serverb along with vhost.conf planted with playbook
Hi, I think I got it. I made labs one-by-one without recreating a lab (only lab finish) and it seems I skipped to finish 'troubleshoot-review' - at least not found its finish step in history. But at least it was funny - I thought each lab has its own server instances redeployed.
So thanks for ideas, can be closed now.
Hello @andrico42 , thank you for reaching out, I tried the provided solution in course and I am unable face any issue.
Can you delete and recreate the lab and give it a try again?
Attached the screenshots for reference.
Regards,
Wasim
I'll try today later, also had an idea to redeploy, but decided to troubleshoot instead. Problem was an existance of vhosts.conf with SSL enabled settings, but 100% I wasn't created it. So browser-request to http://serverb.lab.example.com/ showed a clear message about it's HTTPS-listener there, but request was made via HTTP. That's how I suspected something wrong with vhosts cfg.
Hi, I think I got it. I made labs one-by-one without recreating a lab (only lab finish) and it seems I skipped to finish 'troubleshoot-review' - at least not found its finish step in history. But at least it was funny - I thought each lab has its own server instances redeployed.
So thanks for ideas, can be closed now.
Red Hat
Learning Community
A collaborative learning environment, enabling open source skill development.