= imagebuilder on RHEL 8
Ansible playbooks to deploy imagebuilder VM on KVM/Libvirt
== Setup a secret for secured variables
vi .vault_secret
== Update secured variables in roles//default/main.yaml
ansible-vault encrypt_string --vault-password-file .vault_secret --encrypt-vault-id default --name 'password' 'somepassword'
= Build VM and setup imagebuilder
ansible-playbook build.yaml --vault-password-file .vault_secret
ansible-playbook setup.yaml --vault-password-file .vault_secret
= Destroy
ansible-playbook teardown.yaml
sudo systemctl restart libvirtd
Note2: You can use tags: server