Interview Prep/Ansible/Privilege Escalation and Python Interpreter Issues

`No package matching 'httpd' is available` on Ubuntu

BeginnerTroubleshootingPrivilege Escalation and Python Interpreter Issues
Answer

Likely causes → Package name differs by distro (apache2 on Debian family).

Diagnose → ansible web01 -m setup -a 'filter=ansible_os_family'.

Fix → Use a vars map per OS family and the package module.

Prevent → Define distro-specific names in vars/<os_family>.yml.

All Ansible questions Roadmap: Ansible

More on Privilege Escalation and Python Interpreter Issues