Skip to content
Snippets Groups Projects
Commit d77ffb7b authored by Christian Elberfeld's avatar Christian Elberfeld
Browse files

neuer Server tiffany, alter myLoc/webtropia Server raus

parent ba92117f
No related branches found
No related tags found
No related merge requests found
---
- name: restart nginx
service: name=nginx state=restarted
---
- name: Add hosts file entry 1
lineinfile:
path: /etc/hosts
state: present
regexp: '^(.*)127.0.1.1(.*)$'
line: "#removed: 127.0.1.1"
- name: Add hosts file entry 2
lineinfile:
path: /etc/hosts
state: present
regexp: '^(.*){{ inventory_hostname }}(.*)$'
line: "{{ int_ip4 }} {{ inventory_hostname }} pvelocalhost"
- name: Remove PVE Enterprise Repos
file:
path: /etc/apt/sources.list.d/pve-enterprise.list
state: absent
- name: Install Proxmox Packages
apt:
state: present
name:
- proxmox-ve
- ifupdown2
- name: Remove conflicting Packages
apt:
state: absent
name:
- os-prober
- resolvconf
- rdnssd
- name: Remove PVE Enterprise Repos
file:
path: /etc/apt/sources.list.d/pve-enterprise.list
state: absent
# Host spezifische Variablen
motd_lines:
- "Taffany - Root Server @ hetzner"
- "Öffentliche IPs: {{ansible_enp35s0.ipv4.address}} / {{ansible_enp35s0.ipv6[0].address}}"
debian_sources:
- "deb http://deb.debian.org/debian/ buster main non-free contrib"
- "deb http://security.debian.org/debian-security buster/updates main contrib non-free"
- "deb http://deb.debian.org/debian/ buster-updates main contrib non-free"
- "deb http://download.proxmox.com/debian/pve buster pve-no-subscription"
debian_keys_id:
debian_keys_url:
- "http://download.proxmox.com/debian/proxmox-ve-release-6.x.gpg"
# Art des Hosts: physical, vm, docker
host_type: "physical"
# Primäre IP Adressen des Hosts
int_ip4: 159.69.57.15
administratorenteam:
- "void"
- "sandhome"
# Host spezifische Variablen
motd_lines:
- "Externer Server @ myLoc"
- "Öffentliche IPs: {{ansible_br0.ipv4.address}} / {{ansible_br0.ipv6[0].address}}"
debian_sources:
- "deb http://ftp2.de.debian.org/debian jessie main non-free contrib"
- "deb http://security.debian.org/ jessie/updates main contrib non-free"
- "deb http://ftp2.de.debian.org/debian jessie-backports main"
debian_keys_id:
debian_keys_url:
# Art des Hosts: physical, vm, docker
host_type: "physical"
administratorenteam:
- "void"
- "sandhome"
- "commander1024"
borgbackup_user:
warpzone:
sshkeys:
- "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAID2EdE/pfN3L91XytQ3+KXLTxAvAGSUE6TKpHTcOcJWw root@warpsrvint"
- "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIENYus4S4XOaGHVL4B6vbnIrovtqaCT1lbEF73StiTt+ root@webserver"
- "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGIBBvcQaD0MmEHY0q+lcoMN9sXHs/HnSiXGsAhm+Vwp root@vorstand"
...@@ -7,10 +7,8 @@ ...@@ -7,10 +7,8 @@
# https://wiki.warpzone.ms/intern:warpzone_internal_it_infrastructure#host_fuer_interne_dienste_watchguard_xtm_505 # https://wiki.warpzone.ms/intern:warpzone_internal_it_infrastructure#host_fuer_interne_dienste_watchguard_xtm_505
warpsrvint ansible_ssh_host=192.168.0.201 warpsrvint ansible_ssh_host=192.168.0.201
# Öffentlicher Server Warpzone # Öffentlicher Root Server Warpzone bei Hetzner
# Webserver im Rechnzentrum bei myLoc tiffany ansible_ssh_host=159.69.57.15
# Die KVM Verwaltung erfolgt aktuell noch manuell
warpsrvext ansible_ssh_host=217.79.181.126
# Öffentlicher Webserver Warpzone # Öffentlicher Webserver Warpzone
# VM auf dem Webtropia-Server # VM auf dem Webtropia-Server
......
...@@ -15,10 +15,10 @@ ...@@ -15,10 +15,10 @@
# Produktive Server # Produktive Server
################################################## ##################################################
- hosts: warpsrvext - hosts: tiffany
remote_user: root remote_user: root
roles: roles:
- { role: common/borgserver, tags: borgserver } - { role: common/proxmox, tags: proxmox }
- hosts: warpsrvint - hosts: warpsrvint
remote_user: root remote_user: root
......
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