robertdebock/ansible-role-httpd

mod_ssl error on Debian 11 (possibly on all other Debian based OSes as well)

Opened this issue · 2 comments

Describe the bug

If ssl is activated in the playbook, the installation of httpd fails.
mod_ssl is installed by default on Debian based systems.
=> commeting out - mod_ssl in vars/main.yml solves it.

_httpd_ssl_packages:
  default:
    - mod_ssl

Playbook

host_vars used for robertdebock.httpd
https_ssl_enable: yes
httpd_ssl_port: 443

httpd_vhosts:

  • name: nextcloud_root
    servername: "{{ ansible_fqdn }}"
    documentroot: "{{ httpd_data_directory }}/nextcloud"
    httpd_directories:
  • name: my_directory
    path: "{{ httpd_data_directory }}nextcloud"
    allow_override: All

Output

TASK [robertdebock.httpd : install ssl packages] **********************************************************************
fatal: [nextcloud.klenk.bayern]: FAILED! => {"changed": false, "msg": "No package matching 'mod_ssl' is available"}

Environment

  • Control node OS: openSUSE Tumbleweed
  • Control node Ansible version: ansible 2.9.27
  • Managed node OS: Debian 11.2

In case you need more input, please let me know. Just checking out all of your nice scripts and if they are feasible to set up the homelab from scratch

Should be fixed with the latest version, please verify and close the issue when you agree.

Thanks for addressing this issue!

Hi @Nacrul is it fixed by #13 if so , could we close ?