Skip to content

Latest commit

 

History

History
 
 

linux

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Ansible playbook to setup plain VM

Script will be useful if you have some plain VM and want to quickly setup it. Playbook tested on Ubuntu 20.04

Requirements

Init

cp inventory.cfg.example inventory.cfg

Fill inventory.cfg with values. Example with ExpressVPN:

[target]
11.22.33.44 ansible_connection=ssh ansible_ssh_user=user

[target:vars]
ansible_python_interpreter=/usr/bin/python3
setup_vpn=True
expressvpn_activation_code=JFJKAMV7171

Example without VPN(not recommended):

[target]
11.22.33.44 ansible_connection=ssh ansible_ssh_user=user

[target:vars]
ansible_python_interpreter=/usr/bin/python3
setup_vpn=False

Deploy

ansible-playbook -i inventory.cfg setup.yaml