Compliance requires that all package installs come from an internal mirror.
IntermediateScenarioSecurity: Vault, Become and Compliance
Answer
Situation read → Controlled supply chain.
What I'd do → Manage repo files with Ansible, remove others, and verify GPG.
- ansible.builtin.yum_repository:
name: internal-base
description: Internal base
baseurl: https://mirror.example.com/rhel9/baseos/
gpgcheck: true
gpgkey: https://mirror.example.com/RPM-GPG-KEY-internal
- ansible.builtin.file: { path: /etc/yum.repos.d/rocky.repo, state: absent }
Why → Ansible enforces the repo list on every run, so drift is corrected.
Interview tip → Add a firewall rule blocking outbound internet to back it up.
More on Security: Vault, Become and Compliance
Database passwords are sitting in plain text in `group_vars`. How do you fix it?BeginnerYou need separate vault passwords for staging and prod.IntermediateHow do you change the vault password for all encrypted files?IntermediateA CI pipeline needs the vault password without storing it in the repo.IntermediateYou want to see the value inside an encrypted file without writing a decrypted copy to disk.BeginnerOnly one value in a vars file is secret and you want it in the same file as plain values.Beginner