Compare commits
No commits in common. "385cb3859c30ed8c63e2792bac1a13298f28201d" and "32b1b13ef42836ed6ba4a4483c6c8867effb6ecf" have entirely different histories.
385cb3859c
...
32b1b13ef4
7 changed files with 38 additions and 41 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -60,4 +60,3 @@ tags
|
||||||
# End of https://www.toptal.com/developers/gitignore/api/vim,linux,vagrant,ansible
|
# End of https://www.toptal.com/developers/gitignore/api/vim,linux,vagrant,ansible
|
||||||
|
|
||||||
development.yml
|
development.yml
|
||||||
single-test.yml
|
|
||||||
|
|
|
||||||
|
|
@ -3,8 +3,7 @@
|
||||||
container: "{{ gitea_app_container_name['stdout'] }}"
|
container: "{{ gitea_app_container_name['stdout'] }}"
|
||||||
command: >
|
command: >
|
||||||
gitea admin user create --admin --username {{ gitea_app_admin_username }} --password {{ gitea_app_admin_password }} --email {{ gitea_app_admin_email }}
|
gitea admin user create --admin --username {{ gitea_app_admin_username }} --password {{ gitea_app_admin_password }} --email {{ gitea_app_admin_email }}
|
||||||
user: git
|
become: yes
|
||||||
become: true
|
|
||||||
listen: "no admin user"
|
listen: "no admin user"
|
||||||
|
|
||||||
## Register reverse proxy
|
## Register reverse proxy
|
||||||
|
|
|
||||||
|
|
@ -91,21 +91,14 @@
|
||||||
become: yes
|
become: yes
|
||||||
tags:
|
tags:
|
||||||
- docker-swarm
|
- docker-swarm
|
||||||
register: gitea_deployment
|
|
||||||
notify: "update gitea upstream"
|
notify: "update gitea upstream"
|
||||||
|
|
||||||
- name: Wait 30 seconds for gitea to become healthy
|
|
||||||
wait_for:
|
|
||||||
timeout: 60
|
|
||||||
delegate_to: localhost
|
|
||||||
when: gitea_deployment is changed
|
|
||||||
|
|
||||||
- name: Get app container info
|
- name: Get app container info
|
||||||
ansible.builtin.command:
|
ansible.builtin.command:
|
||||||
cmd: docker ps -q -f name={{ stack_name }}_app
|
cmd: docker ps -q -f name={{ stack_name }}_app
|
||||||
become: yes
|
become: yes
|
||||||
until: gitea_app_container_name['rc'] == 0 and gitea_app_container_name['stdout'] | length >= 1
|
until: gitea_app_container_name['rc'] == 0 and gitea_app_container_name['stdout'] | length >= 1
|
||||||
retries: 10
|
retries: 5
|
||||||
delay: 10
|
delay: 10
|
||||||
changed_when: False
|
changed_when: False
|
||||||
register: gitea_app_container_name
|
register: gitea_app_container_name
|
||||||
|
|
@ -116,10 +109,11 @@
|
||||||
user: git
|
user: git
|
||||||
command: >
|
command: >
|
||||||
gitea admin user list --admin
|
gitea admin user list --admin
|
||||||
until: gitea_admin_list is defined and gitea_admin_list['rc'] == 0
|
become: yes
|
||||||
retries: 15
|
until: "'connection refused' not in gitea_admin_list['stdout'] and 'Failed to run app' not in gitea_admin_list['stdout']"
|
||||||
|
retries: 10
|
||||||
delay: 10
|
delay: 10
|
||||||
become: true
|
|
||||||
register: gitea_admin_list
|
|
||||||
changed_when: gitea_admin_list['stdout_lines'] | length <= 1 and 'Username' in gitea_admin_list['stdout']
|
changed_when: gitea_admin_list['stdout_lines'] | length <= 1 and 'Username' in gitea_admin_list['stdout']
|
||||||
|
failed_when: (gitea_admin_list['rc'] == 1 and gitea_admin_list['attempts'] >= 5) or 'Gitea is not supposed to be run as root' in gitea_admin_list['stdout']
|
||||||
|
register: gitea_admin_list
|
||||||
notify: "no admin user"
|
notify: "no admin user"
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
---
|
---
|
||||||
|
|
||||||
ntfy_version: latest
|
ntfy_version: latest
|
||||||
|
|
||||||
ntfy_upstream_file_dir: "{{ docker_stack_files_dir }}/{{ stack_name }}"
|
ntfy_upstream_file_dir: "{{ docker_stack_files_dir }}/{{ stack_name }}"
|
||||||
|
|
@ -7,9 +8,9 @@ ntfy_use_https: true
|
||||||
|
|
||||||
subdomain_alias: push
|
subdomain_alias: push
|
||||||
|
|
||||||
ntfy_global_topic_limit: 15000
|
ntfy_global_topic_limit: "15000"
|
||||||
ntfy_visitor_subscription_limit: 30
|
ntfy_visitor_subscription_limit: "30"
|
||||||
ntfy_visitor_request_limit_burst: 60
|
ntfy_visitor_request_limit_burst: "60"
|
||||||
ntfy_visitor_request_limit_replenish: "10s"
|
ntfy_visitor_request_limit_replenish: "10s"
|
||||||
ntfy_cache_duration: "12h"
|
ntfy_cache_duration: "12h"
|
||||||
ntfy_attachment_total_size_limit: "5G"
|
ntfy_attachment_total_size_limit: "5G"
|
||||||
|
|
|
||||||
|
|
@ -14,8 +14,6 @@ services:
|
||||||
- cache:/var/cache/ntfy
|
- cache:/var/cache/ntfy
|
||||||
networks:
|
networks:
|
||||||
- "{{ docker_swarm_public_network_name }}"
|
- "{{ docker_swarm_public_network_name }}"
|
||||||
command:
|
|
||||||
- serve
|
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
cache:
|
cache:
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
base-url: "https://{{ server_domain }}"
|
base-url: "https://{{ server_domain }}"
|
||||||
global_topic_limit: {{ ntfy_global_topic_limit }}
|
global_topic_limit: "{{ ntfy_global_topic_limit }}"
|
||||||
visitor_subscription_limit: {{ ntfy_visitor_subscription_limit }}
|
visitor_subscription_limit: "{{ ntfy_visitor_subscription_limit }}"
|
||||||
visitor_request_limit_burst: {{ ntfy_visitor_request_limit_burst }}
|
visitor_request_limit_burst: "{{ ntfy_visitor_request_limit_burst }}"
|
||||||
visitor_request_limit_replenish: "{{ ntfy_visitor_request_limit_replenish }}"
|
visitor_request_limit_replenish: "{{ ntfy_visitor_request_limit_replenish }}"
|
||||||
cache-file: "/var/cache/ntfy/cache.db"
|
cache-file: "/var/cache/ntfy/cache.db"
|
||||||
cache_duration: "{{ ntfy_cache_duration }}"
|
cache_duration: "{{ ntfy_cache_duration }}"
|
||||||
|
|
|
||||||
6
site.yml
6
site.yml
|
|
@ -1,4 +1,5 @@
|
||||||
---
|
---
|
||||||
|
|
||||||
- hosts: all
|
- hosts: all
|
||||||
tasks:
|
tasks:
|
||||||
- name: Make sure system is fully upgraded
|
- name: Make sure system is fully upgraded
|
||||||
|
|
@ -23,6 +24,11 @@
|
||||||
role: caddy
|
role: caddy
|
||||||
tags: caddy
|
tags: caddy
|
||||||
|
|
||||||
|
- name: Install whoami
|
||||||
|
import_role:
|
||||||
|
role: whoami
|
||||||
|
tags: whoami
|
||||||
|
|
||||||
- name: Install wallabag
|
- name: Install wallabag
|
||||||
import_role:
|
import_role:
|
||||||
role: wallabag
|
role: wallabag
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue