🔥 3-day streak
CompTIA Linux+ (XK0-006)5 / 123
Question 5 of 123
You are writing an Ansible playbook that installs the Apache web server on a mixed fleet of servers. RHEL-based hosts need the 'httpd' package while Debian-based hosts need 'apache2'. You want a single task that installs the correct package based on the target host's distribution, using facts automatically collected at the start of the play. Which conditional expression should you attach to the install task?
Reviewed for accuracy · Report an issueNext question