init syncthing host and docker role
This commit is contained in:
21
ansible/roles/docker/tasks/main.yaml
Normal file
21
ansible/roles/docker/tasks/main.yaml
Normal file
@@ -0,0 +1,21 @@
|
||||
- name: Add docker-ce repo to dnf
|
||||
command: dnf config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
|
||||
args:
|
||||
creates: /etc/yum.repos.d/docker-ce.repo
|
||||
|
||||
- name: Install docker-ce and other related packages
|
||||
package:
|
||||
name:
|
||||
- docker-ce
|
||||
- docker-ce-cli
|
||||
- containerd.io
|
||||
- docker-buildx-plugin
|
||||
- docker-compose-plugin
|
||||
state: latest
|
||||
|
||||
- name: Start and enable docker
|
||||
service:
|
||||
name: docker
|
||||
state: started
|
||||
enabled: true
|
||||
|
||||
Reference in New Issue
Block a user