forked from infra/ansible
18 lines
499 B
YAML
18 lines
499 B
YAML
---
|
|
# tasks file for login-registry role
|
|
# This role is used to login to a registry using the
|
|
# podman client.
|
|
|
|
- name: Install podman
|
|
ansible.builtin.package:
|
|
name: podman
|
|
state: present
|
|
tags:
|
|
- login-registry
|
|
|
|
- name: Login into a registry
|
|
ansible.builtin.command: podman login {{candidate_registry}} -u {{candidate_registry_osbs_username}} -p {{candidate_registry_osbs_password}} --authfile .docker/config.json
|
|
args:
|
|
creates: .docker/config.json
|
|
tags:
|
|
- login-registry
|