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

use correct variable

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

View file

@ -15,8 +15,8 @@
--must-change-password={{ item.must_change_password }} --admin={{ item.admin }}'
register: _gitearesult
failed_when:
- '"successfully created" not in gitearesult.stdout'
- '"successfully created" not in _gitearesult.stdout'
changed_when:
- '"successfully created!" in gitearesult.stdout'
- '"successfully created!" in _gitearesult.stdout'
when: "_giteausers is defined and item.name not in _giteausers"
loop: "{{ gitea_users }}"