Repository files navigation Repo with ansible playbooks
Playbook: basic_server_setup.yml
Role create-user-with-ssh-access gets keys from Github repo. Upload your public key there and set github_username in group_vars/all
Install VPNs and proxies:
Playbook: vpn.yml
Use host alias to set outline server name (e.g. in hosts file: SOME_VPN ansible_host=1.2.3.4 ansible_ssh_private_key_file=...)
Check logs/outline/server-<host_alias>-access.log files for manager credentials after playbook execution
Install ansible
Install roles dependencies, if required (see playbooks description above):
ansible-galaxy install -r requirements.yml
Prepare hosts (e.g. setup ssh access with key or get username-pwd credentials) and upload your public key in your github repo
Adjust variables
group_vars/*
ansible.cfg
Create file hosts with required host groups (you can specify credentials per host here)
Run check:
ansible-playbook playbooks/playbook-name.yml --check --diff
Run playbook
ansible-playbook playbooks/playbook-name.yml
If you are working in WSL Ansible can skip using ansible.cfg due to wide file permisions if this file is mounted from windows fs.
You can adjust permissions (pain in the ass in WSL) or just set env var ANSIBLE_CONFIG=ansible.cfg before running the commands
Same issue can appear with your ssh keys if they are mounted into WSL from windows.
Copy keys directly into WSL from mounted location or use different keys generated in WSL, not in windows.
About
Useful ansible playbooks
Resources
Stars
Watchers
Forks
You can’t perform that action at this time.