This repository has been archived on 2023-05-06. You can view files and clone it, but cannot push or open issues or pull requests.
pleroma-ansible-playbook/site.yml
Dan Anglin b03c997960
change: add a site playbook to the project.
This merge request changes the project from a single role project to a
single playbook project with multiple plays and roles. The single
playbook has multiple plays with each having its own role to
install and configure the different components to run Pleroma.
(postgres database, pleroma backend and nginx).

Certain playbooks can be executed by specifying the
relevant tags.

This change is the first of many changes to start supporting
installations on both single and multiple hosts.

This change includes also includes:

- inventory file.
- host_vars directory for users to add their variables.
- an init playbook to merge the default and the user defined config for Pleroma.
- users can now specify whether to validate certs when performing acme
challenges (default: true).
- more task templating.
2019-10-24 22:51:53 +01:00

34 lines
616 B
YAML

---
- name: Initialising the site playbook.
hosts: all
roles:
- init
tags:
- always
- name: Installing and configuring PostgreSQL for Pleroma.
hosts: pleroma_database
become: yes
become_method: sudo
roles:
- pleroma-postgres
tags:
- pleroma-postgres
- name: Installing and configuring the Pleroma backend.
hosts: pleroma_backend
become: yes
become_method: sudo
roles:
- pleroma-backend
tags:
- pleroma-be
- name: Installing and configuring Nginx for Pleroma.
hosts: pleroma_webserver
become: yes
become_method: sudo
roles:
- pleroma-nginx
tags:
- pleroma-nginx