Issue #6226
closedProblem: ansible-pulp fails to install apache on Debian 10
Description
If you set "pulp_webserver_server" to "apache", and run ansible-pulp against debian 10:
TASK [pulp-webserver : Install Apache] ***************************************** fatal: [pulp3-source-debian10]: FAILED! => { "cache_update_time": 1581410824, "cache_updated": false, "changed": false, "rc": 100 }
STDOUT:
Reading package lists... Building dependency tree... Reading state information... Package httpd is a virtual package provided by: yaws 2.0.6+dfsg-1 webfs 1.21+ds1-12 tntnet 2.2.1-3+b1 nginx-light 1.14.2-2+deb10u1 nginx-full 1.14.2-2+deb10u1 nginx-extras 1.14.2-2+deb10u1 mini-httpd 1.30-0.2 micro-httpd 20051212-15.1 lighttpd 1.4.53-4 ebhttpd 1:1.0.dfsg.1-4.3+b2 apache2 2.4.38-3+deb10u3
STDERR:
E: Package 'httpd' has no installation candidate
MSG:
'/usr/bin/apt-get -y -o "Dpkg::Options::=--force-confdef" -o "Dpkg::Options::=--force-confold" install 'httpd'' failed: E: Package 'httpd' has no installation candidate
Problem: ansible-pulp fails to install apache on Debian 10
Solution: Use per-distro variables for the apache package and service name.
Also add restart handler, and ensure the service is normally started.
fixes: #6226