1
1
Fork 0
mirror of https://github.com/roles-ansible/ansible_role_gitea.git synced 2024-08-16 11:39:50 +02:00

Fix newlines in command

Signed-off-by: Koen Ekelschot <koen.ekelschot@gmail.com>
This commit is contained in:
Koen Ekelschot 2024-04-07 14:16:16 +02:00 committed by GitHub
parent 11d5b82dc3
commit 44c27a6a2b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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: