Current inventory hardcodes ansible_user: root. The ansible.cfg already has become = True with become_method = sudo, which handles privilege escalation for non-root users. The main changes are updating the inventory placeholder, ensuring sshd config is compatible, and documenting the workflow.
Goals:
Non-Goals:
Change ansible_user to "YOUR_SSH_USER" with comments explaining both root and non-root options. Users fill in their actual username.
Keep PermitRootLogin prohibit-password — this allows root SSH with key auth, which is fine for users who choose to connect as root. For non-root users, root SSH access becomes irrelevant since they use become for privilege escalation.
Current config already has become = True globally. This works correctly:
sudo escalation kicks in--ask-become-pass. Mitigation: documented in README.