homework 5.3: complete tasks 2-4

This commit is contained in:
2022-05-05 10:50:47 +07:00
parent f41bc70752
commit 6c52082e89
4 changed files with 147 additions and 6 deletions

View File

@@ -0,0 +1,12 @@
---
- hosts: 127.0.0.1
gather_facts: no
connection: local
tasks:
- name: login to hub.docker.com
command: docker login
- name: push image to hub.docker.com
docker_image:
name: dannecron/netology-devops-nginx:ansible
source: local
push: yes