From 2c7bd98f320ba5bf876a7fa6c64501e14d5a55fd Mon Sep 17 00:00:00 2001 From: Luke Murphy Date: Wed, 15 Apr 2020 16:54:01 +0200 Subject: [PATCH] Create application volume mounts manually --- deploy.d/plays/predeploy.yml | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/deploy.d/plays/predeploy.yml b/deploy.d/plays/predeploy.yml index 9b2a845..6aa94eb 100644 --- a/deploy.d/plays/predeploy.yml +++ b/deploy.d/plays/predeploy.yml @@ -13,6 +13,18 @@ ssh_key_file: .ssh/id_rsa state: present +- name: Create gitea application directories + become: true + file: + path: "{{ item }}" + state: directory + owner: git + group: git + with_items: + - /app + - /app/gitea + - /var/lib/gitea + - name: Get uid/guid of the git user become: true getent: @@ -31,14 +43,3 @@ - name: Store gitea git user uid/guid in config.env dictionary set_fact: config: "{{ config | update_env(git_user_info) }}" - -- name: Create extra application directories - become: true - file: - path: "{{ item }}" - state: directory - owner: git - group: git - with_items: - - /app - - /app/gitea