Commit 89ecfe64 authored by nanahira's avatar nanahira

format

parent 45520f72
---
- hosts: utility
remote_user: root
tasks:
- name: pre packages
apt:
update_cache: true
name: curl,wget,apt-transport-https,lsb-release,gnupg
state: latest
- name: Docker key
apt_key:
url: https://mirrors.aliyun.com/docker-ce/linux/debian/gpg
- name: Docker source
apt_repository:
repo: deb [arch=amd64] https://mirrors.aliyun.com/docker-ce/linux/{{ ansible_distribution|lower }} {{ ansible_distribution_release }} stable
filename: docker
- name: apt
apt:
update_cache: true
name: docker-ce,python-backports-shutil-get-terminal-size,python-backports.ssl-match-hostname,python-pip,rsync
state: latest
- name: docker service
systemd:
name: docker
state: started
- name: docker-compose pip
pip:
name: pip
state: latest
extra_args: -i https://mirrors.aliyun.com/pypi/simple/
- name: docker-compose
pip:
name: docker-compose
state: latest
extra_args: -i https://mirrors.aliyun.com/pypi/simple/
- name: utility directory
file:
path: /root/utility
state: directory
- name: related files
synchronize:
src: ./files/utility/
dest: /root/utility
- name: docker-compose up -d
docker_service:
project_src: /root/utility
remove_orphans: true
pull: true
- hosts: utility
remote_user: root
tasks:
- name: pre packages
apt:
update_cache: true
name: curl,wget,apt-transport-https,lsb-release,gnupg
state: latest
- name: Docker key
apt_key:
url: https://mirrors.aliyun.com/docker-ce/linux/debian/gpg
- name: Docker source
apt_repository:
repo: deb [arch=amd64] https://mirrors.aliyun.com/docker-ce/linux/{{ ansible_distribution|lower }} {{ ansible_distribution_release }} stable
filename: docker
- name: apt
apt:
update_cache: true
name: docker-ce,python-backports-shutil-get-terminal-size,python-backports.ssl-match-hostname,python-pip,rsync
state: latest
- name: docker service
systemd:
name: docker
state: started
- name: docker-compose pip
pip:
name: pip
state: latest
extra_args: -i https://mirrors.aliyun.com/pypi/simple/
- name: docker-compose
pip:
name: docker-compose
state: latest
extra_args: -i https://mirrors.aliyun.com/pypi/simple/
- name: utility directory
file:
path: /root/utility
state: directory
- name: related files
synchronize:
src: ./files/utility/
dest: /root/utility
- name: docker-compose up -d
docker_service:
project_src: /root/utility
remove_orphans: true
pull: true
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment