Izveden refactor iz taskov v role
This commit is contained in:
parent
747438dedf
commit
a35460a57b
317 changed files with 2761 additions and 50 deletions
4
roles/docker/tasks/main.yml
Normal file
4
roles/docker/tasks/main.yml
Normal file
|
@ -0,0 +1,4 @@
|
|||
- import_tasks: main_win.yml
|
||||
when: ansible_connection == 'winrm'
|
||||
- import_tasks: main_lin.yml
|
||||
when: ansible_connection == 'ssh'
|
23
roles/docker/tasks/main_lin.yml
Normal file
23
roles/docker/tasks/main_lin.yml
Normal file
|
@ -0,0 +1,23 @@
|
|||
|
||||
- name: "Install Podman"
|
||||
apt:
|
||||
name: podman
|
||||
state: latest
|
||||
|
||||
- name: "Install containerd"
|
||||
apt:
|
||||
name: containerd
|
||||
state: latest
|
||||
|
||||
- name: "Install docker"
|
||||
apt:
|
||||
name: docker
|
||||
state: latest
|
||||
|
||||
- name: "Install docker-compose"
|
||||
apt:
|
||||
name: docker-compose
|
||||
state: latest
|
||||
|
||||
|
||||
# TODO uredi skupine, da bodo studentje lahko docker tudi uporabljali
|
1
roles/docker/tasks/main_win.yml
Normal file
1
roles/docker/tasks/main_win.yml
Normal file
|
@ -0,0 +1 @@
|
|||
# TODO
|
Loading…
Add table
Add a link
Reference in a new issue