- Create
inventory.ini
file in base directory with hosts:[webservers] target_host_ip ansible_user=root ansible_ssh_private_key_file=mykeyfile.pem
- Create
vars.yml
:users: - username: "myuser" groups: "admin" email: "[email protected]"
- Add public key for new users into
files/
with name likemyuser_key.pub
- Add tmux config for new users into
files/
with name likemyuser_tmux.conf
- Add oh-my-zsh conf for new users into
files/
with name likemyuser_zshrc.j2
- Don't forget about fonts on your host
- Windows:
- Download JetBrainsMono Nerd Font from here.
- Extract into a folder
- Select all fonts and right-click "Install for all users"
- In Windows Terminal open Settings
- Under "Profiles" select the profile you use to open AstroNvim with
- Additional Settings > Appearance > Font Face > JetBrainsMono Nerd Font
- Ubuntu:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/JetBrains/JetBrainsMono/master/install_manual.sh)"
- Windows:
Use shell:
ansible-playbook -i inventory.ini main.yml -u root
ssh -L 8385:localhost:8384 user@remote-server