Ansible playbook for base and initial configuration of web server hosting my personal websites.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
Alan Orth 85323d789c
Remove host_vars/web19
1 week ago
group_vars Add nginx filter for fail2ban 2 months ago
host_vars Remove host_vars/web19 1 week ago
misc-plays misc-plays/change_password.yml: Use become 4 years ago
roles roles/php-fpm: Install php7.4-xml 1 week ago
vars Import OS-specific vars from task in common role 3 years ago
.gitignore .gitignore: Ignore Vagrant directory 6 years ago
LICENSE Add copy of GPLv3 license 6 years ago
Pipfile Use Python 3.9 in pipenv setup 10 months ago
Pipfile.lock Pipfile.lock: run pipenv update 2 weeks ago
README.md README.md: Update copyright year 6 months ago
ansible.cfg ansible.cfg: Use auto discovery of Python interpreter 3 months ago
nomads.yml Add a "nomads" group of hosts 10 months ago
site.yml Add a "nomads" group of hosts 10 months ago
web.yml web.yml: Only run MariaDB role if it is needed 9 months ago

README.md

Ansible Playbook

Ansible playbook for base and initial configuration of the web server hosting my personal websites. After successful execution of this playbook, however, there is still some manual work to import databases, copy site content, etc.

Assumptions

Before you can run this, a few things are assumed:

  • You have a clean, minimal Ubuntu 18.04, Debian 10, or Ubuntu 20.04 host up and running
  • Python 3 is installed on the remote server (requirement of Ansible)
  • You have a user account with password-less SSH access to the machine
  • You have sudo privileges on the remote host
  • You have created a hosts file with something like:
[web]
web01

Use

Once you've satisfied the the above assumptions, you can execute:

$ ansible-playbook web.yml

Todo

License

Copyright (C) 2014–2021 Alan Orth

The contents of this repository are free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.