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:
parent
150ee241ad
commit
a9b5648cf6
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue