This commit is contained in:
Martin Eichner
2023-03-23 16:42:19 +01:00
parent 134578e514
commit 331a901d26
29 changed files with 20 additions and 3 deletions

0
README.md Normal file → Executable file
View File

0
bla.yml Normal file → Executable file
View File

View File

@@ -6,6 +6,7 @@ all:
192.168.178.210: #proxmox
192.168.178.201: #truenas
192.168.178.200: #mediaserver
192.168.178.205: #podman testhost
vps:
hosts:
eichner.cc:

View File

@@ -1,5 +1,5 @@
---
- hosts: 192.168.178.200
- hosts: 192.168.178.205
become: true
roles:
- common

0
roles/common/README.md Normal file → Executable file
View File

0
roles/common/defaults/main.yml Normal file → Executable file
View File

0
roles/common/files/ansible_rsa.pub Normal file → Executable file
View File

0
roles/common/files/martin_rsa.pub Normal file → Executable file
View File

0
roles/common/handlers/main.yml Normal file → Executable file
View File

0
roles/common/meta/main.yml Normal file → Executable file
View File

0
roles/common/tasks/docker.yml Normal file → Executable file
View File

0
roles/common/tasks/main.yml Normal file → Executable file
View File

0
roles/common/templates/docker-compose.yaml.j2 Normal file → Executable file
View File

0
roles/common/templates/root_authorized_keys.j2 Normal file → Executable file
View File

0
roles/common/templates/user_authorized_keys.j2 Normal file → Executable file
View File

0
roles/common/tests/inventory Normal file → Executable file
View File

0
roles/common/tests/test.yml Normal file → Executable file
View File

0
roles/common/vars/main.yml Normal file → Executable file
View File

0
roles/mediaserver/README.md Normal file → Executable file
View File

0
roles/mediaserver/defaults/main.yml Normal file → Executable file
View File

0
roles/mediaserver/files/dashy_config.yml Normal file → Executable file
View File

0
roles/mediaserver/files/ovpn.tar.gz Normal file → Executable file
View File

0
roles/mediaserver/handlers/main.yml Normal file → Executable file
View File

0
roles/mediaserver/meta/main.yml Normal file → Executable file
View File

View File

@@ -8,6 +8,18 @@
loop: "{{ NFS_MOUNTS }}"
tags: setup, test
- name: Add podman repo + gpg key
block:
- name: somerepo |no apt key
ansible.builtin.get_url:
url: "https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_${{ ansible_distribution_version }}/Release.key"
dest: /etc/apt/trusted.gpg.d/podman.asc
- name: somerepo | apt source
ansible.builtin.apt_repository:
repo: "deb [arch=amd64 signed-by=/etc/apt/trusted.gpg.d/podman.asc] https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_${{ ansible_distribution_version }}/ /"
state: present
- name: Install mediaserver packages
apt:
name: "{{ item }}"
@@ -15,6 +27,8 @@
update_cache: true
loop:
- python3-docker
- podman
- podman-plugins
- name: Install pip docker-compose
pip:

0
roles/mediaserver/templates/docker-compose.yaml.j2 Normal file → Executable file
View File

0
roles/mediaserver/tests/inventory Normal file → Executable file
View File

0
roles/mediaserver/tests/test.yml Normal file → Executable file
View File

2
roles/mediaserver/vars/main.yml Normal file → Executable file
View File

@@ -1,2 +1,4 @@
---
VPN_USER: "p3754227"
VPN_PASS: "xsZtFdAofY"
...