19 lines
524 B
YAML
19 lines
524 B
YAML
---
|
|
# tasks file for push-docker role
|
|
# This role is used to login to a registry using the
|
|
# docker client.
|
|
|
|
- name: install docker and python-docker
|
|
package: name="{{ item }}" state=present
|
|
with_items:
|
|
- docker
|
|
- python-docker
|
|
|
|
- name: start and enable docker
|
|
service: name=docker state=started enabled=yes
|
|
|
|
- name: Log into the candidate-registry
|
|
docker_login:
|
|
registry: "{{candidate_registry}}"
|
|
username: "{{candidate_registry_osbs_username}}"
|
|
password: "{{candidate_registry_osbs_password}}"
|