add neko custom stuff
This commit is contained in:
@ -1,8 +1,3 @@
|
||||
---
|
||||
- name: run Timedatectl
|
||||
command: timedatectl set-ntp true
|
||||
|
||||
- name: "netplanapply"
|
||||
command: netplan apply
|
||||
async: 45
|
||||
poll: 0
|
||||
|
@ -1,5 +1,4 @@
|
||||
---
|
||||
- include_tasks: static-networking.yaml
|
||||
- include_tasks: apt.yaml
|
||||
- include_tasks: clean-motd.yaml
|
||||
- include_tasks: remove-snap.yaml
|
||||
|
@ -1,15 +0,0 @@
|
||||
version: "3.4"
|
||||
services:
|
||||
neko:
|
||||
image: "m1k1o/neko:firefox"
|
||||
restart: "unless-stopped"
|
||||
shm_size: "2gb"
|
||||
ports:
|
||||
- "8080:8080"
|
||||
- "52000-52100:52000-52100/udp"
|
||||
environment:
|
||||
NEKO_SCREEN: 1920x1080@30
|
||||
NEKO_PASSWORD: neko
|
||||
NEKO_PASSWORD_ADMIN: admin
|
||||
NEKO_EPR: 52000-52100
|
||||
NEKO_ICELITE: 1
|
@ -1 +0,0 @@
|
||||
---
|
@ -26,10 +26,3 @@
|
||||
comment: Service user
|
||||
groups: docker
|
||||
append: yes
|
||||
|
||||
- name: Copy docker-compose.yml to target
|
||||
copy:
|
||||
src: "{{ dockercompose_yml_name }}"
|
||||
dest: /home/service-user/docker-compose.yml
|
||||
mode: 600
|
||||
owner: service-user
|
||||
|
48
roles/neko/tasks/main.yaml
Normal file
48
roles/neko/tasks/main.yaml
Normal file
@ -0,0 +1,48 @@
|
||||
---
|
||||
- name: "Install haproxy via apt"
|
||||
apt:
|
||||
update_cache: yes
|
||||
state: present
|
||||
name:
|
||||
- haproxy
|
||||
|
||||
- name: Reset ufw rules to default
|
||||
community.general.ufw:
|
||||
state: reset
|
||||
|
||||
- name: Allow ssh via ufw from localnet
|
||||
community.general.ufw:
|
||||
rule: allow
|
||||
direction: in
|
||||
port: ssh
|
||||
from_ip: "192.168.69.0/24"
|
||||
interface: eth0
|
||||
|
||||
- name: Allow http via ufw from internet
|
||||
community.general.ufw:
|
||||
rule: allow
|
||||
direction: in
|
||||
port: http
|
||||
interface: eth1
|
||||
|
||||
- name: Allow https via ufw from internet
|
||||
community.general.ufw:
|
||||
rule: allow
|
||||
direction: in
|
||||
port: https
|
||||
interface: eth1
|
||||
|
||||
- name: Allow http via ufw from internet
|
||||
community.general.ufw:
|
||||
rule: allow
|
||||
direction: in
|
||||
port: http
|
||||
interface: eth1
|
||||
|
||||
- name: Allow neko ports via ufw from internet
|
||||
community.general.ufw:
|
||||
rule: allow
|
||||
direction: in
|
||||
port: 52000:52100
|
||||
proto: udp
|
||||
interface: eth1
|
5
roles/netplan/handlers/main.yaml
Normal file
5
roles/netplan/handlers/main.yaml
Normal file
@ -0,0 +1,5 @@
|
||||
---
|
||||
- name: "netplanapply"
|
||||
command: netplan apply
|
||||
async: 45
|
||||
poll: 0
|
Reference in New Issue
Block a user