Remove redundant key/value;Add debugging
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Danny Bessems 2022-07-14 22:45:35 +02:00
parent 44befeda4b
commit 2f976898eb

View File

@ -164,6 +164,11 @@
method: GET method: GET
register: gitea_existing_config register: gitea_existing_config
- debug:
var: gitea_existing_config
- block:
- name: Create organization(s) - name: Create organization(s)
ansible.builtin.uri: ansible.builtin.uri:
url: https://git.{{ vapp['metacluster.fqdn'] }}/api/v1/orgs url: https://git.{{ vapp['metacluster.fqdn'] }}/api/v1/orgs
@ -210,6 +215,8 @@
loop_control: loop_control:
label: "{{ item.organization + '/' + item.body.name }}" label: "{{ item.organization + '/' + item.body.name }}"
# when: gitea_existing_config.json.data is undefined
module_defaults: module_defaults:
ansible.builtin.uri: ansible.builtin.uri:
validate_certs: no validate_certs: no
@ -245,7 +252,6 @@
method: POST method: POST
force_basic_auth: yes force_basic_auth: yes
body: body:
token: token_init_{{ lookup('password', '/dev/null length=5 chars=ascii_letters,digits') }}
username: admin username: admin
password: "{{ vapp['guestinfo.rootpw'] }}" password: "{{ vapp['guestinfo.rootpw'] }}"
register: argocd_api_token register: argocd_api_token