update scripts
parent
6951498b63
commit
0f778e4cf1
|
@ -11,11 +11,10 @@ ExecStart=/usr/bin/ssh -Nn \
|
||||||
-o ServerAliveCountMax=3 \
|
-o ServerAliveCountMax=3 \
|
||||||
-o ExitOnForwardFailure=yes \
|
-o ExitOnForwardFailure=yes \
|
||||||
-i /home/paul/.ssh/id_rsa_fast \
|
-i /home/paul/.ssh/id_rsa_fast \
|
||||||
-R 7000:127.0.0.1:8080 \
|
-R 7000:127.0.0.1:80 \
|
||||||
-R 7001:127.0.0.1:8443 \
|
-R 7001:127.0.0.1:443 \
|
||||||
-R 7002:127.0.0.1:2222 \
|
-R 7002:127.0.0.1:2222 \
|
||||||
-R 7003:127.0.0.1:25565 \
|
-R 7003:127.0.0.1:25565 \
|
||||||
-R 7004:127.0.0.1:8448 \
|
|
||||||
pew@polyvalent.seaturtle.pw
|
pew@polyvalent.seaturtle.pw
|
||||||
Restart=always
|
Restart=always
|
||||||
RestartSec=30
|
RestartSec=30
|
||||||
|
|
|
@ -11,4 +11,4 @@ cabinet hostname=cabinet.seaturtle.pw interface=enp9s0 admin=paul
|
||||||
joe@madone.seaturtle.pw hostname=madone.seaturtle.pw interface=enp1s0 admin=joe
|
joe@madone.seaturtle.pw hostname=madone.seaturtle.pw interface=enp1s0 admin=joe
|
||||||
|
|
||||||
[cloudlab]
|
[cloudlab]
|
||||||
polyvalent hostname=polyvalent.seaturtle.pw interface=eth0 admin=joe
|
joe@polyvalent hostname=polyvalent.seaturtle.pw interface=eth0 admin=joe
|
||||||
|
|
|
@ -117,7 +117,7 @@
|
||||||
owner: root
|
owner: root
|
||||||
group: mail
|
group: mail
|
||||||
mode: '0640'
|
mode: '0640'
|
||||||
when: dma_auth is defined
|
when: dma_auth is defined and dma_auth != ''
|
||||||
|
|
||||||
## Changes will take effect during next reboot, does not effect static IPs
|
## Changes will take effect during next reboot, does not effect static IPs
|
||||||
- name: Configure sysctl with IPv6 privacy extensions
|
- name: Configure sysctl with IPv6 privacy extensions
|
||||||
|
@ -162,7 +162,7 @@
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
mode: '0755'
|
mode: '0755'
|
||||||
when: gandi_api_key is defined
|
when: gandi_api_key is defined and gandi_api_key != ''
|
||||||
|
|
||||||
- name: Add Dynamic DNS cronjob
|
- name: Add Dynamic DNS cronjob
|
||||||
cron:
|
cron:
|
||||||
|
@ -202,6 +202,8 @@
|
||||||
# Proxy config
|
# Proxy config
|
||||||
- hosts: cloudlab
|
- hosts: cloudlab
|
||||||
become: yes
|
become: yes
|
||||||
|
handlers:
|
||||||
|
- import_tasks: handlers.yml
|
||||||
tasks:
|
tasks:
|
||||||
## Changes will take effect during next reboot
|
## Changes will take effect during next reboot
|
||||||
- name: Configure sysctl to reject RA acceptance
|
- name: Configure sysctl to reject RA acceptance
|
||||||
|
@ -229,23 +231,33 @@
|
||||||
|
|
||||||
- name: Install HAProxy proxy config
|
- name: Install HAProxy proxy config
|
||||||
copy:
|
copy:
|
||||||
src: files/{{ inventory_hostname }}/haproxy.cfg
|
src: "files/{{ inventory_hostname.split('@')[1] }}/haproxy.cfg"
|
||||||
dest: /etc/haproxy/haproxy.cfg
|
dest: /etc/haproxy/haproxy.cfg
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
mode: '0644'
|
mode: '0644'
|
||||||
notify: Restart haproxy
|
notify: Restart haproxy
|
||||||
|
|
||||||
|
- name: Sync data cronjob - Friday
|
||||||
|
cron:
|
||||||
|
name: 'Sync data'
|
||||||
|
minute: '0'
|
||||||
|
hour: '0'
|
||||||
|
day: '*'
|
||||||
|
month: '*'
|
||||||
|
weekday: '5'
|
||||||
|
user: pew
|
||||||
|
job: "/home/pew/scripts-private/{{ inventory_hostname.split('@')[1] }}/sync.sh"
|
||||||
|
|
||||||
# Compute config
|
# Compute config
|
||||||
- hosts: homelab
|
- hosts: homelab
|
||||||
become: yes
|
become: yes
|
||||||
handlers:
|
handlers:
|
||||||
- import_tasks: handlers.yml
|
- import_tasks: handlers.yml
|
||||||
tasks:
|
tasks:
|
||||||
- name: Install dnsmasq, sambda, zfs stuff
|
- name: Install samba, zfs stuff
|
||||||
apt:
|
apt:
|
||||||
name:
|
name:
|
||||||
- dnsmasq
|
|
||||||
- samba
|
- samba
|
||||||
- zfs-auto-snapshot
|
- zfs-auto-snapshot
|
||||||
- zfs-zed
|
- zfs-zed
|
||||||
|
@ -279,7 +291,7 @@
|
||||||
# /home/paul/.ssh/id_rsa_fast must exist
|
# /home/paul/.ssh/id_rsa_fast must exist
|
||||||
- name: Install sshtunnel systemd service
|
- name: Install sshtunnel systemd service
|
||||||
copy:
|
copy:
|
||||||
src: files/fogcutter/sshtunnel.service
|
src: "files/{{ inventory_hostname }}/sshtunnel.service"
|
||||||
dest: /etc/systemd/system/sshtunnel.service
|
dest: /etc/systemd/system/sshtunnel.service
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
|
@ -294,6 +306,17 @@
|
||||||
- debug:
|
- debug:
|
||||||
msg: Manually configure rclone remote drive
|
msg: Manually configure rclone remote drive
|
||||||
|
|
||||||
|
- name: Backup data cronjob - Monday
|
||||||
|
cron:
|
||||||
|
name: 'Backup data'
|
||||||
|
minute: '0'
|
||||||
|
hour: '0'
|
||||||
|
day: '*'
|
||||||
|
month: '*'
|
||||||
|
weekday: '1'
|
||||||
|
user: paul
|
||||||
|
job: "/home/paul/scripts-private/{{ inventory_hostname }}/backup.sh"
|
||||||
|
|
||||||
- name: Configure samba
|
- name: Configure samba
|
||||||
copy:
|
copy:
|
||||||
src: files/smb.conf
|
src: files/smb.conf
|
||||||
|
@ -306,18 +329,6 @@
|
||||||
- debug:
|
- debug:
|
||||||
msg: Manually set samba password
|
msg: Manually set samba password
|
||||||
|
|
||||||
- name: Install dnsmasq config
|
|
||||||
template:
|
|
||||||
src: templates/dnsmasq.conf.j2
|
|
||||||
dest: /etc/dnsmasq.conf
|
|
||||||
owner: root
|
|
||||||
group: root
|
|
||||||
mode: '0644'
|
|
||||||
notify: Restart dnsmasq
|
|
||||||
|
|
||||||
- debug:
|
|
||||||
msg: Manually set hosts in /etc/hosts
|
|
||||||
|
|
||||||
# IRC config
|
# IRC config
|
||||||
- hosts: irc
|
- hosts: irc
|
||||||
become: yes
|
become: yes
|
||||||
|
|
Loading…
Reference in New Issue