Commit 89ecfe64 authored by nanahira's avatar nanahira

format

parent 45520f72
--- ---
- hosts: utility - hosts: utility
remote_user: root remote_user: root
tasks: tasks:
- name: pre packages - name: pre packages
apt: apt:
update_cache: true update_cache: true
name: curl,wget,apt-transport-https,lsb-release,gnupg name: curl,wget,apt-transport-https,lsb-release,gnupg
state: latest state: latest
- name: Docker key - name: Docker key
apt_key: apt_key:
url: https://mirrors.aliyun.com/docker-ce/linux/debian/gpg url: https://mirrors.aliyun.com/docker-ce/linux/debian/gpg
- name: Docker source - name: Docker source
apt_repository: apt_repository:
repo: deb [arch=amd64] https://mirrors.aliyun.com/docker-ce/linux/{{ ansible_distribution|lower }} {{ ansible_distribution_release }} stable repo: deb [arch=amd64] https://mirrors.aliyun.com/docker-ce/linux/{{ ansible_distribution|lower }} {{ ansible_distribution_release }} stable
filename: docker filename: docker
- name: apt - name: apt
apt: apt:
update_cache: true update_cache: true
name: docker-ce,python-backports-shutil-get-terminal-size,python-backports.ssl-match-hostname,python-pip,rsync name: docker-ce,python-backports-shutil-get-terminal-size,python-backports.ssl-match-hostname,python-pip,rsync
state: latest state: latest
- name: docker service - name: docker service
systemd: systemd:
name: docker name: docker
state: started state: started
- name: docker-compose pip - name: docker-compose pip
pip: pip:
name: pip name: pip
state: latest state: latest
extra_args: -i https://mirrors.aliyun.com/pypi/simple/ extra_args: -i https://mirrors.aliyun.com/pypi/simple/
- name: docker-compose - name: docker-compose
pip: pip:
name: docker-compose name: docker-compose
state: latest state: latest
extra_args: -i https://mirrors.aliyun.com/pypi/simple/ extra_args: -i https://mirrors.aliyun.com/pypi/simple/
- name: utility directory - name: utility directory
file: file:
path: /root/utility path: /root/utility
state: directory state: directory
- name: related files - name: related files
synchronize: synchronize:
src: ./files/utility/ src: ./files/utility/
dest: /root/utility dest: /root/utility
- name: docker-compose up -d - name: docker-compose up -d
docker_service: docker_service:
project_src: /root/utility project_src: /root/utility
remove_orphans: true remove_orphans: true
pull: 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