From 44c27a6a2b9ad9aa0047c98f9814490a5a47eb03 Mon Sep 17 00:00:00 2001 From: Koen Ekelschot Date: Sun, 7 Apr 2024 14:16:16 +0200 Subject: [PATCH] Fix newlines in command Signed-off-by: Koen Ekelschot --- tasks/local_git_users.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tasks/local_git_users.yml b/tasks/local_git_users.yml index 4c34613..df19334 100644 --- a/tasks/local_git_users.yml +++ b/tasks/local_git_users.yml @@ -8,10 +8,10 @@ - name: Use gitea cli to create user become: true ansible.builtin.command: | - su - {{ gitea_user }} -c - '{{ gitea_full_executable_path }} -c {{ gitea_configuration_path }}/gitea.ini - admin user create --username "{{ item.name }}" - --password "{{ item.password }}" --email "{{ item.email }}" + su - {{ gitea_user }} -c \ + '{{ gitea_full_executable_path }} -c {{ gitea_configuration_path }}/gitea.ini \ + admin user create --username "{{ item.name }}" \ + --password "{{ item.password }}" --email "{{ item.email }}" \ --must-change-password={{ item.must_change_password }} --admin={{ item.admin }}' register: _gitearesult failed_when: