Skip to content

Using Ansible

MuriloChianfa edited this page Sep 8, 2024 · 1 revision

Setting up our project using the ansible.

1) We need to change our current folder to ansible folder

cd ../ansible

2) Now you need to install the terraform into your local pc

apt update
apt install software-properties-common
add-apt-repository --yes --update ppa:ansible/ansible
apt install ansible

3) Now we need to setup the VPN service to get access to all networks

ansible-playbook -i inventory/hosts vpn.yml

3) When the setup was finished, we need to download our new client config for wireguard

scp -P 2222 root@192.168.0.254:/etc/wireguard/clients/wgadmin.conf ~/
sudo mv ~/wgadmin.conf /etc/wireguard/
wg-quick up wgadmin

you can try to ping internal DNS resolvers to test the new routes

ping 10.250.101.248

4) We're ready to setup all other services, lets run it

ansible-playbook -i inventory/hosts ldap.yml
ansible-playbook -i inventory/hosts radius.yml
ansible-playbook -i inventory/hosts main.yml