podman: Login to registries
This commit is contained in:
2
roles/podman/defaults/main.yaml
Normal file
2
roles/podman/defaults/main.yaml
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
---
|
||||||
|
podman_registry_accounts: []
|
||||||
@@ -2,4 +2,23 @@
|
|||||||
argument_specs:
|
argument_specs:
|
||||||
main:
|
main:
|
||||||
description: Installs podman
|
description: Installs podman
|
||||||
options: {}
|
options:
|
||||||
|
podman_registry_accounts:
|
||||||
|
description: Dict of accounts for container repositories
|
||||||
|
type: list
|
||||||
|
required: false
|
||||||
|
default: []
|
||||||
|
elements: dict
|
||||||
|
options:
|
||||||
|
registry:
|
||||||
|
description: Registry server to login to
|
||||||
|
type: str
|
||||||
|
required: true
|
||||||
|
username:
|
||||||
|
description: Username
|
||||||
|
type: str
|
||||||
|
required: true
|
||||||
|
password:
|
||||||
|
description: Password / token
|
||||||
|
type: str
|
||||||
|
required: true
|
||||||
|
|||||||
@@ -10,3 +10,11 @@
|
|||||||
name: podman-auto-update.timer
|
name: podman-auto-update.timer
|
||||||
state: started
|
state: started
|
||||||
enabled: true
|
enabled: true
|
||||||
|
|
||||||
|
- name: Login to registries
|
||||||
|
containers.podman.podman_login:
|
||||||
|
registry: "{{ item.registry }}"
|
||||||
|
username: "{{ item.username }}"
|
||||||
|
password: "{{ item.password }}"
|
||||||
|
authfile: /run/containers/0/auth.json
|
||||||
|
loop: "{{ podman_registry_accounts }}"
|
||||||
|
|||||||
Reference in New Issue
Block a user