Skip to content

roles-ansible/ansible_collection_pretix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

collection l3d.pretix Maintainance License

Ansible Collection - l3d.pretix

This is the Ansible Collection l3d.pretix. A collection to to install pretix-ui on linux servers. It is inspired by this install guide from docs.pretix.eu.

Ansible Roles in l3d.pretix

  • l3d.pretix.pretix - Ansible role to install pretix
  • l3d.pretix.postgres - Ansible role to install postgres - optimized for pretix
  • l3d.pretix.nodejs - Ansible role to install nodejs - optimized for pretix
  • l3d.pretix.redis - Ansible role to install redis - optimized for pretix

Hint

The roles l3d.pretix.nodejs, l3d.pretix.postgres and l3d.pretix.redis are needed to install all requirements for Pretix. The You can install pretix using l3d.pretix.pretix.

Using this Collection

You can install the collection using ansible-galaxy by running:

ansible-galaxy collection install l3d.pretix:1.0.0

Remember you can to Upgrade to the latest version of the l3d.pretix collection using the --upgrade parameter:

ansible-galaxy collection install l3d.pretix --upgrade

Or you could clone this collection in your local ansible project for example to collections/ansible_collections/l3d.pretix/. Make sure you checkout git submodules too. Example:

# Clone git Repo with submodules to specified path
git clone --recursive https://github.com/roles-ansible/ansible_collection_pretix.git collections/ansible_collections/l3d/pretix/

# change directory
cd collections/ansible_collections/l3d.pretix/

# optionally init git submodules
git submodule update --init --recursive

# optionally install all requirements
ansible-galaxy collection install -r requirements.yml --upgrade

You can also list a collection in requirements.yml:

---
collections:
  - name: l3d.pretix
    version: ">=1.0.0"

Example Playbook

Example Playbook to install Pretix:

---
- name: Setup Pretix at pretix.example.org
  hosts: pretix.example.org
  become: true
  roles:
    - {role: l3d.pretix.postgres, tags: pretix}
    - {role: l3d.pretix.redis, tags: pretix}
    - {role: l3d.pretix.nodejs, tags: pretix}
    - {role: l3d.pretix.pretix, tags: pretix}
  vars:
    pretix__db_password: 'T0ll3s_P@ssw0rt'

Requirements

The roles in this collection using the community.general and community.postgresql ansible Collections.

Author

L3D [email protected] and Contibutors