ublue-forge/setup/ansible/roles/semaphore/tasks/authentication.yml

12 lines
294 B
YAML
Raw Normal View History

2023-05-01 19:17:56 +03:00
---
- name: Get API token
ansible.builtin.uri:
url: "http://{{ ansible_host }}:3000/api/auth/login"
method: POST
body:
auth: "{{ semaphore_admin_user }}"
password: "{{ semaphore_admin_password }}"
body_format: json
status_code: 204
register: semaphore_login