Intermediate Scenario
Web Server Hardening
You are tasked with creating an Ansible…
View Which of the following actions are essential when creating this role to adhere to Red Hat Ansible best practices for role structure and design? (Select TWO.)
Select 0 answers
(0 / 0)
Define all Apache configuration parameters directly in the main.yml task file for simplicity.
Place default variables for the role (like the default listening port) in `defaults/main.yml`.
Use `include_tasks` within the main task file to break down complex configuration steps into separate task files.
Ensure the `tasks/main.yml` file contains a block that includes conditionals to handle both RHEL 8 and RHEL 9 package names.
Store the custom Apache configuration template file in the `templates/` directory of the role.