diff --git a/ansible/pre-deploy.yml b/ansible/pre-deploy.yml index 9ddd6e4..ef12e24 100644 --- a/ansible/pre-deploy.yml +++ b/ansible/pre-deploy.yml @@ -6,6 +6,7 @@ name: gitea system: true state: present + become: true - name: Setup host Gitea user user: @@ -19,12 +20,14 @@ generate_ssh_key: true ssh_key_bits: 2048 ssh_key_file: .ssh/id_rsa + become: true - name: Get uid/guid of the gitea user getent: database: passwd key: gitea split: ":" + become: true - name: Store gitea git user uid/guid set_fact: