An Ansible playbook to set up The Next Generation of Genealogy Sitebuilding (TNG) in Docker. This playbook installs the necessary php modules to have TNG create thumbnails as well as to use the Census Plus International mod.
This playbook has only been tested on Ubuntu Server 24.04 LTS (Noble Nubat).
- A licensed copy of the TNG software that you have purchased. See here: https://tngsitebuilding.com/order.php
- An Ubuntu 24.04 server installation which you can SSH to root or a sudo user.
- Ansible installed on your local machine.
- Git installed on your local machine.
- Clone this repository to your local machine.
git clone https://github.com/derektgardner/ansible-tng-docker.gitand then enter into the repository's directory:cd ansible-tng-docker. - Place the zip file of your licensed copy of the TNG software into the
filesfolder. Take note of the filename. - Copy
example.config.ymltoconfig.ymlandexample.inventory.ymltoinventory.ymland customize them as-needed.
ansible-playbook main.yml -i inventory.ini- Depending on your installation, you may need to use the
-Koption and supply the password of your sudo user on the server/VM you're installing TNG on.
- Depending on your installation, you may need to use the
Navigate to the TNG installation page at the server/VM's IP address (e.g. http://192.168.1.11/readme.html) and follow the setup prompts.
See your config.yml file for the database name, database username and database password. If you did not change any of those, the following are the defaults:
| Setting | Value |
|---|---|
| Database Host | tng-mariadb |
| Database Name | tng |
| Database User | tng |
| Database Password | password |
| Database Port | [leave blank] |
| Database Socket | [leave blank] |
NOTE: This will only backup a TNG docker insallation that was setup using the main.yml playbook.
ansible-playbook backup.yml -i inventory.ini- Depending on your installation, you may need to use the
-Koption and supply the password of your sudo user on the server/VM you're backing up.
- Depending on your installation, you may need to use the
Your TNG files (including media, mods, etc.) as well as the mariadb database will now be in the tng_backup folder.
NOTE: This will only restore a TNG docker installation that you have setup using the main.yml playbook and then backed-up using the backup.yml playbook
ansible-playbook restore.yml -i inventory.ini- Depending on your installation, you may need to use the
-Koption and supply the password of your sudo user on the server/VM you're restoring the TNG installation on.
- Depending on your installation, you may need to use the