A Vagrant RHEL8 machine with ansible package + some basic utilities
The goal is to create a clean environnement for Ansible playbooks development.
- Latest Ansible.
- Latest Git.
- A Red Hat valid subscription for RHEL8. You have to generate an activation key on your Red Hat Subscription Management portal
- A SSH-key pair. Public key must be set on your Git based solution account (GitLab, GitHub, etc).
- Clone this repository on your laptop.
- Fill the variables in settings.rb. All variables are examples here. You have to set the correct values.
Review the complete file before continuing.
# Red Hat Subscription Management RHSM_ORG="12345678" # Organization ID. RHSM_ACTIVATION_KEY="my-key" # action key name # Ansible Vault. Please choose a password here to enable sensitive data encryption when running Ansible ANSIBLE_VAULT_PASSWORD="aP@ssW0rdf0r8nsib1e" # Path to your SSH private key on your laptop for GitLab access SSH_PRIVATE_KEY_PATH="~/.ssh/id_rsa"
- Run vagrant
vagrant up
- Once the VM is up you can open a SSH connection
You are logged now as vagrant user with ansible and git installed.
vagrant ssh