This commit is contained in:
Sam A. 2024-03-01 21:52:27 +01:00
parent a2b6301fad
commit 3a53634dfa
Signed by: samsapti
GPG Key ID: CBBBE7371E81C4EA
11 changed files with 21 additions and 37 deletions

View File

@ -1,16 +1,16 @@
# vim: ft=yaml.ansible
# code: language=ansible
---
ldap_dn: "dc=data,dc=coop"
vagrant: "{{ from_vagrant is defined and from_vagrant }}"
letsencrypt_enabled: "{{ not vagrant }}"
base_domain: "{{ 'datacoop.devel' if vagrant else 'data.coop' }}"
letsencrypt_email: admin@data.coop
services_exclude:
- uptime_kuma
smtp_host: "postfix"
smtp_port: "587"
services_exclude:
- uptime_kuma
ldap_dn: "dc=data,dc=coop"

View File

@ -1,16 +1,16 @@
# vim: ft=yaml.ansible
# code: language=ansible
---
ldap_dn: "dc=staging,dc=data,dc=coop"
vagrant: "{{ from_vagrant is defined and from_vagrant }}"
letsencrypt_enabled: "{{ not vagrant }}"
base_domain: "{{ 'staging.datacoop.devel' if vagrant else 'staging.data.coop' }}"
letsencrypt_email: admin@data.coop
services_exclude:
- uptime_kuma
smtp_host: "postfix"
smtp_port: "587"
services_exclude:
- uptime_kuma
ldap_dn: "dc=staging,dc=data,dc=coop"

View File

@ -4,10 +4,10 @@
- hosts: all
gather_facts: true
become: true
tasks:
- import_role:
name: ubuntu_base
roles:
- name: os_base
tags:
- base_only
- import_role:
name: docker
- name: docker
tags:
- docker

View File

@ -2,12 +2,12 @@
# code: language=ansible
---
- name: Install necessary packages via apt
apt:
ansible.builtin.apt:
name: "{{ packages }}"
vars:
packages:
- aptitude
- python3-pip
- apparmor
- haveged
- mosh
- ufw
- vim

View File

@ -22,3 +22,4 @@
- port: 587 # Email
- port: 993 # Email
- port: 19022 # SSH
when: inventory_hostname in groups['virtual']

View File

@ -1,18 +1,15 @@
# vim: ft=yaml.ansible
# code: language=ansible
---
- import_tasks: ssh-port.yml
- ansible.builtin.import_tasks: ssh-port.yml
tags: [change-ssh-port]
when: ansible_port != 22
- import_tasks: upgrade.yml
tags: [do-full-system-upgrade]
- import_tasks: base.yml
- ansible.builtin.import_tasks: base.yml
tags: [install-base-packages]
- import_tasks: users.yml
- ansible.builtin.import_tasks: users.yml
tags: [setup-users]
- import_tasks: firewall.yml
- ansible.builtin.import_tasks: firewall.yml
tags: [setup-firewall]

View File

@ -1,14 +0,0 @@
# vim: ft=yaml.ansible
# code: language=ansible
---
- hosts: monitoring
gather_facts: true
become: true
vars:
tasks:
- import_role:
name: ubuntu_base
tags:
- base_only
- import_role:
name: docker