34 lines
938 B
YAML
34 lines
938 B
YAML
---
|
|
- hosts: '{{ variable_host | default("pioniers") }}'
|
|
gather_facts: no
|
|
become: yes
|
|
tasks:
|
|
- name: Update, upgrade
|
|
apt:
|
|
upgrade: yes
|
|
update_cache: yes
|
|
- name: Install git and docker
|
|
apt:
|
|
pkg:
|
|
- git
|
|
- docker.io
|
|
|
|
- name: Clone pioniers repository
|
|
git:
|
|
repo: https://denali.kcir.pwr.edu.pl/git/L1.5/rosaria.git
|
|
clone: yes
|
|
version: "docker20.04"
|
|
dest: /home/lab1_5/rosaria
|
|
|
|
- name: Install rosaria copy service
|
|
copy:
|
|
src: /home/lab1_5/rosaria/rosaria-docker.service
|
|
dest: /etc/systemd/system/rosaria-docker.service
|
|
remote_src: yes
|
|
|
|
- name: Enable and start service rosaria
|
|
systemd:
|
|
name: rosaria-docker
|
|
enabled: yes
|
|
state: restarted
|
|
daemon_reload: yes |