2 Star 3 Fork 4

as4k / ysansible

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
main2.yml 558 Bytes
一键复制 编辑 原始数据 按行查看 历史
kyle30 提交于 2021-02-09 17:23 . 10354
---
- hosts: all
tasks:
- name: copy Dockerfile to target machine
copy:
src: mybusybox
dest: /tmp
- name: Ensure Docker image is built from the test Dockerfile.
docker_image:
name: mybusybox:v3
source: build
build:
pull: yes
path: /tmp/mybusybox
state: present
- name: Ensure the test container is running.
docker_container:
image: mybusybox:v3
name: mybusybox
state: started
# ansible-playbook main2.yml --limit 192.168.31.101
其他
1
https://gitee.com/as4k/ysansible.git
git@gitee.com:as4k/ysansible.git
as4k
ysansible
ysansible
master

搜索帮助