Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debian12 upgrade #7

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion bootstrap.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
apt:
name:
- ansible
- python-apt
- python3-apt
- git
state: latest

Expand Down
28 changes: 16 additions & 12 deletions site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
- pv
- time
- devscripts
- rsync

- name: Set timezone
timezone:
Expand All @@ -51,11 +52,11 @@
mode: 0700
recurse: yes

- name: Apt - enable stretch-backports
- name: Apt - enable bookworm-backports
apt_repository:
repo: "deb http://mirrors.digitalocean.com/debian stretch-backports main contrib non-free"
repo: "deb http://mirrors.digitalocean.com/debian bookworm-backports main contrib non-free"
state: present
filename: stretch-backports
filename: bookworm-backports
update_cache: yes

#role:dns-servers
Expand Down Expand Up @@ -92,13 +93,12 @@
apt: name=certbot state=latest

- name: Install certbot nginx plugin
apt: name=python-certbot-nginx state=latest
apt: name=python3-certbot-nginx state=latest

- name: Install certbot DNS RFC2136 plugin
apt:
name: python3-certbot-dns-rfc2136
state: present
default_release: stretch-backports

- name: Create certbot secrets and config folder
file:
Expand Down Expand Up @@ -164,17 +164,16 @@
mode: 0600

#role:plug-website
# jekyll install disabled temporarily until we move to buster
# - name: Install jekyll
# apt: name=jekyll state=latest
- name: Install Hugo
apt: name=hugo state=latest

- name: Use Git to checkout latest plug website
git: version="master" repo="https://github.com/plugorgau/plugorgau.github.io.git" dest="/home/glass/plugorgau.github.io/"
become_user: glass
register: plug_website_git

- name: Use Jekyll to build plug website
shell: "jekyll build"
- name: Use Hugo to build plug website
shell: "hugo -d ./_site"
args:
chdir: /home/glass/plugorgau.github.io/
become_user: glass
Expand Down Expand Up @@ -239,15 +238,15 @@

#role:php
- name: PHP - Install php-fpm
apt: name=php7.0-fpm
apt: name=php-fpm
# TODO Configure php-fpm

#role:ugmm
- name: UGMM - Install smarty3 templating engine
apt: name=smarty3 state=latest

- name: UGMM - Install LDAP PHP module
apt: name=php7.0-ldap state=latest
apt: name=php-ldap state=latest
# TODO nginx cofig
# TODO php pool?

Expand Down Expand Up @@ -298,6 +297,11 @@
notify: start icecast

#role:mailman
- name: Mailman - Enable Debian Buster repo for Python 2 packages
apt_repository:
repo: deb http://ftp.au.debian.org/debian buster main
filename: buster

- name: Mailman - Install Mailman and fcgiwrap
apt: name={{ item }} state=latest
with_items:
Expand Down
3 changes: 2 additions & 1 deletion spamassassin/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,12 @@
- name: Enable SpamAssassin nightly cron
lineinfile:
dest: /etc/default/spamassassin
create: true
regexp: '^CRON='
line: CRON=1

- name: Enable and start SpamAssassin service
systemd:
name: spamassassin
name: spamd
enabled: yes
state: started