cancel
Showing results for 
Search instead for 
Did you mean: 
andrico42
Mission Specialist
Mission Specialist
  • 1,742 Views

rh294-9.0 - ch10s03 incorrect solution

Jump to solution

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

1 Solution

Accepted Solutions
andrico42
Mission Specialist
Mission Specialist
  • 1,694 Views

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.

View solution in original post

3 Replies
Wasim_Raja
Moderator
Moderator
  • 1,713 Views

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

 

andrico42
Mission Specialist
Mission Specialist
  • 1,704 Views

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.

andrico42
Mission Specialist
Mission Specialist
  • 1,695 Views

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.

Join the discussion
You must log in to join this conversation.