ublue-forge/setup/ansible/roles/semaphore/tasks/authentication.yml
2023-05-01 16:17:56 +00:00

12 lines
294 B
YAML

---
- 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