feat(pixelfed): add ansible role
This commit is contained in:
40
roles/pixelfed/defaults/main.yml
Normal file
40
roles/pixelfed/defaults/main.yml
Normal file
@@ -0,0 +1,40 @@
|
||||
---
|
||||
|
||||
pixelfed_user: pixelfed
|
||||
pixelfed_version: 0.11.2
|
||||
pixelfed_base_path: /opt/pixelfed
|
||||
|
||||
pixelfed_deployment_method: docker_selfbuilt
|
||||
|
||||
# user to run pixelfed as
|
||||
pixelfed_run_user: "{{ pixelfed_user_stat.uid | default(pixelfed_user) }}"
|
||||
pixelfed_run_group: "{{ pixelfed_user_stat.group | default(pixelfed_user) }}"
|
||||
|
||||
# container settings
|
||||
pixelfed_container_name: pixelfed
|
||||
pixelfed_container_image_name: pixelfed
|
||||
pixelfed_container_image_tag: ~
|
||||
pixelfed_container_image: "{{ pixelfed_container_image_name }}:{{ pixelfed_container_image_tag | default('v' + pixelfed_version, True) }}"
|
||||
pixelfed_container_image_local_build: true
|
||||
pixelfed_container_ports: []
|
||||
pixelfed_container_networks: []
|
||||
pixelfed_container_extra_volumes: []
|
||||
pixelfed_container_extra_labels: {}
|
||||
pixelfed_container_extra_env: {}
|
||||
pixelfed_container_restart_policy: unless-stopped
|
||||
pixelfed_worker_container_name: "{{ pixelfed_container_name }}-worker"
|
||||
|
||||
# host filesystem paths
|
||||
pixelfed_config_path: "{{ pixelfed_base_path }}/config"
|
||||
pixelfed_storage_path: "{{ pixelfed_base_path }}/storage"
|
||||
pixelfed_source_path: "{{ pixelfed_base_path }}/source"
|
||||
|
||||
pixelfed_app_paths:
|
||||
- path: "{{ pixelfed_base_path }}"
|
||||
mode: "0750"
|
||||
- path: "{{ pixelfed_config_path }}"
|
||||
mode: "0750"
|
||||
- path: "{{ pixelfed_storage_path }}"
|
||||
mode: "0750"
|
||||
- path: "{{ pixelfed_source_path }}"
|
||||
mode: "0750"
|
Reference in New Issue
Block a user