Skip to content
Snippets Groups Projects
Commit b6a61cc7 authored by void's avatar void
Browse files

octoprint1 entfernt

parent 0b0b0535
No related branches found
No related tags found
No related merge requests found
# Host spezifische Variablen
motd_lines:
- "Interner Server @ warpzone"
- "Haupt-IP @ enp1s0: {{ansible_enp1s0.ipv4.address}}"
debian_sources:
- "deb http://ftp2.de.debian.org/debian/ buster main contrib non-free"
- "deb http://security.debian.org/ buster/updates main contrib non-free"
- "deb https://download.docker.com/linux/debian buster stable"
debian_keys_id:
debian_keys_url:
- "https://download.docker.com/linux/debian/gpg"
# Primäre IP Adressen des Hosts
#ext_ip4: <keine>
#ext_ip6: <keine>
int_ip4: 10.0.2.188
administratorenteam:
- "void"
- "sandhome"
# Docker konfigurationen
docker:
# Interne Docker-Netzwerke
......@@ -14,8 +14,6 @@ warpsrvint ansible_ssh_host=192.168.0.201
# Interner Proxmox-Server (neu ab 09-2022)
weatherwax ansible_ssh_host=192.168.0.200
# Octoprint Server für 3d Drucker
octoprint1 ansible_ssh_host=10.0.2.188
# Öffentlicher Root Server Warpzone bei Hetzner
tiffany ansible_ssh_host=159.69.57.15
......
---
- name: "create folder struct for {{servicename}}"
file:
path: "/srv/{{servicename}}"
state: "directory"
- name: "create folder struct for {{servicename}}"
file:
path: "{{ item }}"
state: "directory"
with_items:
- "/srv/{{servicename}}/data"
- name: "create docker-compose file"
template:
src: "{{ item }}"
dest: "/srv/{{ servicename }}/{{ item }}"
with_items:
- docker-compose.yml
- name: "start {{servicename}} docker"
docker_compose:
project_src: /srv/{{servicename}}/
state: present
version: "3"
services:
app:
image: octoprint/octoprint:1.7.2
restart: always
ports:
- "{{octoprint_port}}:80"
devices:
- /dev/ttyACM0:/dev/ttyACM0
#- /dev/video0:/dev/video0
volumes:
- "/srv/{{servicename}}/data:/octoprint"
environment:
TZ: Europe/Berlin
ENABLE_MJPG_STREAMER: "false"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment