token: removing invalid condition and registration

`skipped` is not return by uri module anymore
  Both tasks are in the same block depending on the existance of the
  file. The condition is not necessary.

Signed-off-by: Alexis Pentori <alexis@status.im>
This commit is contained in:
Alexis Pentori 2023-11-17 16:14:37 +01:00
parent 150ee241ad
commit a9b5648cf6
No known key found for this signature in database
GPG Key ID: 65250D2801E47A10
1 changed files with 0 additions and 2 deletions

View File

@ -18,14 +18,12 @@
user: '{{ gitea_app_admin_user | mandatory }}'
password: '{{ gitea_app_admin_pass | mandatory }}'
force_basic_auth: true
register: gitea_app_admin_token_raw
- name: Create an API token file
copy:
dest: '{{ gitea_service_path }}/api-token'
content: '{{ gitea_app_admin_token_raw.json.sha1 }}'
mode: 0400
when: not gitea_app_admin_token_raw.skipped
- name: Read API token from file
slurp: