ansible-role-rocketchat/tasks/docker.yml

24 lines
597 B
YAML
Raw Normal View History

2022-05-27 23:27:40 +00:00
---
2022-07-08 01:56:25 +00:00
# install docker using geerlingguy docker role - this whole task file is under tag install-docker
2022-05-27 23:27:40 +00:00
- name: 'Use geerlingguy.docker role'
include_role:
name: ansible-role-docker
- name: 'Use geerlingguy.pip role to install docker via pip'
vars:
pip_install_packages:
- name: docker
- name: docker-compose
include_role:
name: ansible-role-pip
- name: Add adminstrator to docker group
user:
name: "{{ main_user }}"
groups: docker
append: yes
- name: reset ssh connection to allow user changes to affect 'current login user'
meta: reset_connection