From be09ef57f61059ad6f79265aa6d8fedae7597af7 Mon Sep 17 00:00:00 2001 From: Alexander Dahl Date: Sun, 30 Jan 2022 11:48:09 +0100 Subject: [PATCH] pottwal: Fix indentation Please yamllint. Fixes: 3aced1fe4623 ("Install gitea via ansible") --- pottwal.yml | 80 ++++++++++++++++++++++++++--------------------------- 1 file changed, 40 insertions(+), 40 deletions(-) diff --git a/pottwal.yml b/pottwal.yml index fe08604..390446d 100644 --- a/pottwal.yml +++ b/pottwal.yml @@ -28,48 +28,48 @@ tasks: - - name: Check if gitea data dir exists - ansible.builtin.stat: - path: "/srv/data/gitea" - register: gitea_dir - - name: Fail if gitea data dir does not exist - ansible.builtin.fail: - msg: "Gitea data dir is missing, please restore from the backup!" - when: not gitea_dir.stat.exists + - name: Check if gitea data dir exists + ansible.builtin.stat: + path: "/srv/data/gitea" + register: gitea_dir + - name: Fail if gitea data dir does not exist + ansible.builtin.fail: + msg: "Gitea data dir is missing, please restore from the backup!" + when: not gitea_dir.stat.exists - # If port 2222 is changed here, it must also be adapted - # in the gitea config file (see application volume)!! - - name: Setup the docker container for gitea - docker_container: - name: gitea - image: "gitea/gitea:1.15.10" - pull: true - state: started - restart_policy: unless-stopped - detach: yes - ports: -# - 127.0.0.1:{{ gitea_host_port }}:3000 - - "{{ gitea_host_port }}:3000" - - 2222:2222 - env: - APP_NAME="Netz39 Gitea" - RUN_MODE="prod" - SSH_DOMAIN="gitea.n39.eu" - SSH_PORT="2222" - SSH_START_SERVER="false" - ROOT_URL="https://gitea.n39.eu" - DISABLE_REGISTRATION="true" - USER_UID=1000 - USER_GID=1000 - volumes: - - "/srv/data/gitea:/data:rw" + # If port 2222 is changed here, it must also be adapted + # in the gitea config file (see application volume)!! + - name: Setup the docker container for gitea + docker_container: + name: gitea + image: "gitea/gitea:1.15.10" + pull: true + state: started + restart_policy: unless-stopped + detach: yes + ports: +# - 127.0.0.1:{{ gitea_host_port }}:3000 + - "{{ gitea_host_port }}:3000" + - 2222:2222 + env: + APP_NAME="Netz39 Gitea" + RUN_MODE="prod" + SSH_DOMAIN="gitea.n39.eu" + SSH_PORT="2222" + SSH_START_SERVER="false" + ROOT_URL="https://gitea.n39.eu" + DISABLE_REGISTRATION="true" + USER_UID=1000 + USER_GID=1000 + volumes: + - "/srv/data/gitea:/data:rw" - - name: Setup proxy site gitea.n39.eu - include_role: - name: setup-http-site-proxy - vars: - site_name: "gitea.n39.eu" - proxy_port: "{{ gitea_host_port }}" + - name: Setup proxy site gitea.n39.eu + include_role: + name: setup-http-site-proxy + vars: + site_name: "gitea.n39.eu" + proxy_port: "{{ gitea_host_port }}" - name: Ensure apt-cacher container is running docker_container: