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