Skip to content

jsumners/itcouldbe9.com

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

itcoulbe9.com

Ansible playbook for configuring whatever server will be managing itcoulbe9.com.

Setup

  1. Install Ansible: pip3 install --user git+https://github.com/ansible/ansible.git@v2.15.5
  2. Run: ansible-galaxy install -r requirements.yml
  3. Add vault password to .vault-pass
  4. Install sshpass: https://github.com/jsumners/dotfiles/blob/f62ad272e9ba07fc3649e7b0deb96ff261304f90/install-sshpass.sh

Server Prep

Some things need to be done on the server manually before it is ready to accept Ansible automation.

  1. Update /etc/ssh/sshd_config to enable "PasswordAuthentication yes"
  2. ln -s /etc/sv/sshd /var/service
  3. Make sure non-root user is added: useradd -m jsumners && passwd jsumners
  4. xbps-install -y python3
  5. Add baseline /etc/rc.local:
    ip addr add 45.63.16.142/8 brd 45.255.255.255 scope global dev eth0
    ip addr add 2001:19f0:5:23de:5400:ff:fe1e:54e2/64 scope global dev eth0
    ip link set up dev eth0
    ip route add default via 45.63.16.1 dev eth0
    
  6. sv stop dhcpcd && rm /var/service/dhcpcd && /etc/rc.local
  7. Update /etc/resolv.conf:
    nameserver 108.61.10.10
    nameserver 8.8.8.8
    

Finally, run ansible-playbook -l production main.yml.

About

Ansible playbook for building out my web server

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages