This Ansible playbook is an example on how to use the lerwys.epics_ioc role, available on Ansible Galaxy, as well.
- ansible >= 2.10
Install Ansible:
pip3 install --user ansible
Install role:
ansible-galaxy install -r lerwys.epics_ioc
Install Vagrant and VirtualBox:
Debian 9/10:
apt install vagrant virtualbox
Fedora 28/29/30/31/32/33:
dnf -y install @development-tools
dnf -y install kernel-headers kernel-devel dkms elfutils-libelf-devel qt5-qtx11extras
cat <<EOF | sudo tee /etc/yum.repos.d/virtualbox.repo
[virtualbox]
[virtualbox]
name=Fedora $releasever - $basearch - VirtualBox
baseurl=http://download.virtualbox.org/virtualbox/rpm/fedora/$releasever/$basearch
enabled=1
gpgcheck=1
repo_gpgcheck=1
gpgkey=https://www.virtualbox.org/download/oracle_vbox.asc
EOF
dnf update
dnf install VirtualBox-6.1
usermod -a -G vboxusers $USER
Bring up Debian 9 VM:
vagrant up debian.stretch
Setup SSH key with Ansible:
ansible-playbook -i hosts -u vagrant setup.yml
If running against the Debian VM created above:
ansible-playbook -i hosts -l debian.stretch -u vagrant playbook.yml
Otherwise, use the following template:
ansible-playbook -i <hostname or IP>, -u <user_name> playbook.yml
BSD 2-clause