mirror of
https://gitlab.crans.org/bde/nk20
synced 2025-02-20 15:11:20 +00:00
Compare commits
No commits in common. "893534955db8ab16ba1faa181ba883cdb72a60c5" and "b4a1b513ccb52cb81ba12aa92ddeea3b8b409813" have entirely different histories.
893534955d
...
b4a1b513cc
@ -7,7 +7,7 @@
|
|||||||
prompt: "Password of the database (leave it blank to skip database init)"
|
prompt: "Password of the database (leave it blank to skip database init)"
|
||||||
private: yes
|
private: yes
|
||||||
vars:
|
vars:
|
||||||
mirror: mirror.crans.org
|
mirror: deb.debian.org
|
||||||
roles:
|
roles:
|
||||||
- 1-apt-basic
|
- 1-apt-basic
|
||||||
- 2-nk20
|
- 2-nk20
|
||||||
|
@ -3,4 +3,3 @@ note:
|
|||||||
server_name: note.crans.org
|
server_name: note.crans.org
|
||||||
git_branch: master
|
git_branch: master
|
||||||
cron_enabled: true
|
cron_enabled: true
|
||||||
email: notekfet2020@lists.crans.org
|
|
||||||
|
@ -36,13 +36,3 @@
|
|||||||
dest: /etc/cron.d/note
|
dest: /etc/cron.d/note
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
|
|
||||||
- name: Set default directory to /var/www/note_kfet
|
|
||||||
lineinfile:
|
|
||||||
path: /etc/skel/.bashrc
|
|
||||||
line: 'cd /var/www/note_kfet'
|
|
||||||
|
|
||||||
- name: Automatically source Python virtual environment
|
|
||||||
lineinfile:
|
|
||||||
path: /etc/skel/.bashrc
|
|
||||||
line: 'source /var/www/note_kfet/env/bin/activate'
|
|
||||||
|
@ -31,7 +31,7 @@
|
|||||||
state: stopped
|
state: stopped
|
||||||
|
|
||||||
- name: Generate new certificate if one doesn't exist.
|
- name: Generate new certificate if one doesn't exist.
|
||||||
shell: "certbot certonly --non-interactive --agree-tos --config /etc/letsencrypt/conf.d/nk20.ini -d {{note.server_name}}"
|
shell: "certbot certonly --non-interactive --config /etc/letsencrypt/conf.d/nk20.ini -d {{note.server_name}}"
|
||||||
when: letsencrypt_cert.stat.exists == False
|
when: letsencrypt_cert.stat.exists == False
|
||||||
|
|
||||||
- name: Restart services to allow certbot to generate a cert.
|
- name: Restart services to allow certbot to generate a cert.
|
||||||
|
@ -16,5 +16,5 @@ email = {{ note.email }}
|
|||||||
text = True
|
text = True
|
||||||
|
|
||||||
# Use DNS-01 challenge
|
# Use DNS-01 challenge
|
||||||
authenticator = nginx
|
authenticator = standalone
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user