forked from data.coop/ansible
QoL changes for *Vim users (#144)
Co-authored-by: Sam Al-Sapti <sam@sapti.me> Reviewed-on: data.coop/ansible#144
This commit is contained in:
parent
f02440048c
commit
5bcba6fa59
|
@ -1,3 +1,4 @@
|
||||||
|
# vim: ft=yaml.ansible
|
||||||
---
|
---
|
||||||
users:
|
users:
|
||||||
- name: graffen
|
- name: graffen
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# vim: ft=yaml.ansible
|
||||||
---
|
---
|
||||||
- hosts: all
|
- hosts: all
|
||||||
gather_facts: true
|
gather_facts: true
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# vim: ft=yaml.ansible
|
||||||
---
|
---
|
||||||
volume_root_folder: "/docker-volumes"
|
volume_root_folder: "/docker-volumes"
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
|
# vim: ft=yaml.ansible
|
||||||
---
|
---
|
||||||
- name: "restart nginx"
|
- name: "restart nginx"
|
||||||
community.docker.docker_container:
|
community.docker.docker_container:
|
||||||
name: "nginx-proxy"
|
name: "nginx-proxy"
|
||||||
restart: "yes"
|
restart: "yes"
|
||||||
state: "started"
|
state: "started"
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# vim: ft=yaml.ansible
|
||||||
---
|
---
|
||||||
- name: add docker gpg key
|
- name: add docker gpg key
|
||||||
apt_key:
|
apt_key:
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# vim: ft=yaml.ansible
|
||||||
---
|
---
|
||||||
- name: setup external services network
|
- name: setup external services network
|
||||||
docker_network:
|
docker_network:
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# vim: ft=yaml.ansible
|
||||||
---
|
---
|
||||||
- name: codimd network
|
- name: codimd network
|
||||||
docker_network:
|
docker_network:
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# vim: ft=yaml.ansible
|
||||||
---
|
---
|
||||||
- name: copy docker registry nginx configuration
|
- name: copy docker registry nginx configuration
|
||||||
copy:
|
copy:
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# vim: ft=yaml.ansible
|
||||||
---
|
---
|
||||||
- name: set up drone with docker runner
|
- name: set up drone with docker runner
|
||||||
docker_compose:
|
docker_compose:
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# vim: ft=yaml.ansible
|
||||||
---
|
---
|
||||||
- name: gitea network
|
- name: gitea network
|
||||||
docker_network:
|
docker_network:
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# vim: ft=yaml.ansible
|
||||||
---
|
---
|
||||||
- name: create hedgedoc volume folders
|
- name: create hedgedoc volume folders
|
||||||
file:
|
file:
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
# vim: ft=yaml.ansible
|
||||||
|
---
|
||||||
- name: setup keycloak containers for sso.data.coop
|
- name: setup keycloak containers for sso.data.coop
|
||||||
docker_compose:
|
docker_compose:
|
||||||
project_name: "keycloak"
|
project_name: "keycloak"
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# vim: ft=yaml.ansible
|
||||||
---
|
---
|
||||||
- name: create mailu volume folders
|
- name: create mailu volume folders
|
||||||
file:
|
file:
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
# vim: ft=yaml.ansible
|
||||||
|
---
|
||||||
- name: create mastodon volume folders
|
- name: create mastodon volume folders
|
||||||
file:
|
file:
|
||||||
name: "{{ services.mastodon.volume_folder }}/{{ volume }}"
|
name: "{{ services.mastodon.volume_folder }}/{{ volume }}"
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# vim: ft=yaml.ansible
|
||||||
---
|
---
|
||||||
- name: create matrix volume folders
|
- name: create matrix volume folders
|
||||||
file:
|
file:
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
|
# vim: ft=yaml.ansible
|
||||||
---
|
---
|
||||||
|
|
||||||
- name: run membersystem containers
|
- name: run membersystem containers
|
||||||
docker_compose:
|
docker_compose:
|
||||||
project_name: "member.data.coop"
|
project_name: "member.data.coop"
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
|
# vim: ft=yaml.ansible
|
||||||
---
|
---
|
||||||
|
|
||||||
- name: setup netdata docker container for system monitoring
|
- name: setup netdata docker container for system monitoring
|
||||||
docker_container:
|
docker_container:
|
||||||
name: netdata
|
name: netdata
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# vim: ft=yaml.ansible
|
||||||
---
|
---
|
||||||
- name: upload vhost config for cloud.data.coop
|
- name: upload vhost config for cloud.data.coop
|
||||||
template:
|
template:
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
|
# vim: ft=yaml.ansible
|
||||||
---
|
---
|
||||||
|
|
||||||
- name: create nginx-proxy volume folders
|
- name: create nginx-proxy volume folders
|
||||||
file:
|
file:
|
||||||
name: "{{ services.nginx_proxy.volume_folder }}/{{ volume }}"
|
name: "{{ services.nginx_proxy.volume_folder }}/{{ volume }}"
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# vim: ft=yaml.ansible
|
||||||
---
|
---
|
||||||
- name: create ldap volume folders
|
- name: create ldap volume folders
|
||||||
file:
|
file:
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
|
# vim: ft=yaml.ansible
|
||||||
---
|
---
|
||||||
|
|
||||||
- name: setup passit containers
|
- name: setup passit containers
|
||||||
docker_compose:
|
docker_compose:
|
||||||
project_name: "passit"
|
project_name: "passit"
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
# vim: ft=yaml.ansible
|
||||||
|
---
|
||||||
- name: Set up Pinafore
|
- name: Set up Pinafore
|
||||||
docker_container:
|
docker_container:
|
||||||
name: pinafore
|
name: pinafore
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
|
# vim: ft=yaml.ansible
|
||||||
---
|
---
|
||||||
|
|
||||||
- name: create portainer volume folder
|
- name: create portainer volume folder
|
||||||
file:
|
file:
|
||||||
name: "{{ services.portainer.volume_folder }}"
|
name: "{{ services.portainer.volume_folder }}"
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
|
# vim: ft=yaml.ansible
|
||||||
---
|
---
|
||||||
|
|
||||||
- name: setup network for postfix
|
- name: setup network for postfix
|
||||||
docker_network:
|
docker_network:
|
||||||
name: postfix
|
name: postfix
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
|
# vim: ft=yaml.ansible
|
||||||
---
|
---
|
||||||
|
|
||||||
- name: create privatebin volume folders
|
- name: create privatebin volume folders
|
||||||
file:
|
file:
|
||||||
name: "{{ services.privatebin.volume_folder }}/{{ volume }}"
|
name: "{{ services.privatebin.volume_folder }}/{{ volume }}"
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
# vim: ft=yaml.ansible
|
||||||
|
---
|
||||||
- name: Create rallly volume folders
|
- name: Create rallly volume folders
|
||||||
file:
|
file:
|
||||||
name: "{{ services.rallly.volume_folder }}/postgres"
|
name: "{{ services.rallly.volume_folder }}/postgres"
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# vim: ft=yaml.ansible
|
||||||
---
|
---
|
||||||
- name: Setup restic backup
|
- name: Setup restic backup
|
||||||
docker_compose:
|
docker_compose:
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# vim: ft=yaml.ansible
|
||||||
---
|
---
|
||||||
- name: watchtower container
|
- name: watchtower container
|
||||||
docker_container:
|
docker_container:
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# vim: ft=yaml.ansible
|
||||||
---
|
---
|
||||||
- name: setup 2022.slides.data.coop website using unipi
|
- name: setup 2022.slides.data.coop website using unipi
|
||||||
docker_container:
|
docker_container:
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
|
# vim: ft=yaml.ansible
|
||||||
---
|
---
|
||||||
|
|
||||||
- name: setup cryptoaarhus.dk website docker container
|
- name: setup cryptoaarhus.dk website docker container
|
||||||
docker_container:
|
docker_container:
|
||||||
name: cryptoaarhus_website
|
name: cryptoaarhus_website
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
|
# vim: ft=yaml.ansible
|
||||||
---
|
---
|
||||||
|
|
||||||
- name: setup cryptohagen.dk website docker container
|
- name: setup cryptohagen.dk website docker container
|
||||||
docker_container:
|
docker_container:
|
||||||
name: cryptohagen_website
|
name: cryptohagen_website
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# vim: ft=yaml.ansible
|
||||||
---
|
---
|
||||||
- name: Upload vhost config for root domain
|
- name: Upload vhost config for root domain
|
||||||
copy:
|
copy:
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# vim: ft=yaml.ansible
|
||||||
---
|
---
|
||||||
- name: setup new data.coop website using hugo
|
- name: setup new data.coop website using hugo
|
||||||
docker_container:
|
docker_container:
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
# vim: ft=yaml.ansible
|
||||||
|
---
|
||||||
- name: setup ulovliglogning.dk website docker container
|
- name: setup ulovliglogning.dk website docker container
|
||||||
docker_container:
|
docker_container:
|
||||||
name: ulovliglogning_website
|
name: ulovliglogning_website
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# vim: ft=yaml.ansible
|
||||||
---
|
---
|
||||||
- name: Install necessary packages via apt
|
- name: Install necessary packages via apt
|
||||||
apt:
|
apt:
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# vim: ft=yaml.ansible
|
||||||
---
|
---
|
||||||
- name: Import dell apt signing key
|
- name: Import dell apt signing key
|
||||||
apt_key:
|
apt_key:
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# vim: ft=yaml.ansible
|
||||||
---
|
---
|
||||||
- name: Setup firewall with UFW
|
- name: Setup firewall with UFW
|
||||||
community.general.ufw:
|
community.general.ufw:
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# vim: ft=yaml.ansible
|
||||||
---
|
---
|
||||||
- import_tasks: ssh-port.yml
|
- import_tasks: ssh-port.yml
|
||||||
tags: [change-ssh-port]
|
tags: [change-ssh-port]
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# vim: ft=yaml.ansible
|
||||||
---
|
---
|
||||||
- name: Change SSH port on host
|
- name: Change SSH port on host
|
||||||
lineinfile:
|
lineinfile:
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# vim: ft=yaml.ansible
|
||||||
---
|
---
|
||||||
- name: update and upgrade system via apt
|
- name: update and upgrade system via apt
|
||||||
apt:
|
apt:
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# vim: ft=yaml.ansible
|
||||||
---
|
---
|
||||||
- name: "Add users"
|
- name: "Add users"
|
||||||
user:
|
user:
|
||||||
|
|
Loading…
Reference in a new issue