Skip to content

DarthMikke/ansible-playbooks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

Server fleet playbooks

I use these playbooks for managing my web server and home servers.

Playbooks description

Prepares host for further management with ansible. The pllaybook creates a user called ansible, adds it to the sudoers file with no password required, and inserts SSH key for the user.

Generate SSL certs with Let's Encrypt as provider and Linode as DNS registrar.

vars

credentials:

  • path to credentials file with Linode token giving DNS write access.
  • default value: "../linode-credentials.ini"

cert_groups:

  • host groups, as defined in hosts inventory file.
  • for every host in these groups, two variables must be defined:
    • ssl_domains, a set of domains its SSL certificate will be valid for, comma separated. E.g.: example.com,www.example.com,blog.example.com.
    • ssl_main_domain, being the domain Certbot uses as the directory name where the certificate is stored. Usually it is the first of the domains in ssl_domains, in the example above: example.com.
  • default value:
  - web
  - vpn_servers

About

My ansible playbooks

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published