jitsi-quick/roles/docker/tasks/centos.yml
2022-11-04 00:12:37 +01:00

20 baris
628 B
YAML

- name: Install docker on CentOS (tested on 7)
ansible.builtin.yum:
name: "{{ packages }}"
vars:
packages:
- containerd.io
- docker-ce
- docker-ce-cli
- name: download compose
shell: curl -s https://api.github.com/repos/docker/compose/releases/latest | grep browser_download_url | grep docker-compose-linux-x86_64 | grep -v sha256 | cut -d '"' -f 4 | wget -O /usr/local/bin/docker-compose -qi -
- name: make compose executable
shell: chmod +x /usr/local/bin/docker-compose
- name: Reload docker and enable it onboot
ansible.builtin.service:
name: docker
state: reloaded
enabled: yes