diff --git a/ansible/post-deploy.yml b/ansible/post-deploy.yml index 8160050..9f430a7 100644 --- a/ansible/post-deploy.yml +++ b/ansible/post-deploy.yml @@ -20,6 +20,11 @@ args: creates: /home/dokku/gitea/letsencrypt/certs + - name: Setup LE certificates renew cron job + shell: dokku letsencrypt:cron-job --add + args: + creates: /home/dokku/gitea/letsencrypt/cron-job + - name: Remove automatically configured ports dokku_ports: app: gitea diff --git a/ansible/pre-deploy.yml b/ansible/pre-deploy.yml index c1392bb..a24a35f 100644 --- a/ansible/pre-deploy.yml +++ b/ansible/pre-deploy.yml @@ -8,6 +8,13 @@ extensions: - yml + - name: Configure git.autonomic.zone domain + dokku_domains: + app: gitea + domains: + - git.autonomic.zone + state: present + - name: Create mariadb database shell: "dokku mariadb:create gitea --password {{ db_passwd }} --root-password {{ root_db_passwd }}" args: