Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Ansible
Manage
Activity
Members
Labels
Plan
Issues
3
Issue boards
Milestones
Code
Merge requests
2
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Nounous
Ansible
Commits
7a2394e1
Commit
7a2394e1
authored
3 years ago
by
Benjamin Graillot
Browse files
Options
Downloads
Patches
Plain Diff
[inspircd] Refresh certificate every month
parent
41782852
No related branches found
No related tags found
1 merge request
!248
[inspircd] Refresh certificate every month
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
roles/inspircd/tasks/main.yml
+6
-0
6 additions, 0 deletions
roles/inspircd/tasks/main.yml
roles/inspircd/templates/cron.monthly/irc-certs.j2
+7
-0
7 additions, 0 deletions
roles/inspircd/templates/cron.monthly/irc-certs.j2
with
13 additions
and
0 deletions
roles/inspircd/tasks/main.yml
+
6
−
0
View file @
7a2394e1
...
...
@@ -16,3 +16,9 @@
-
{
dest
:
modules.conf
,
mode
:
"
0600"
}
-
{
dest
:
inspircd.motd
,
mode
:
"
0644"
}
notify
:
Reload InspIRCd
-
name
:
Deploy certificate refresh CRON
template
:
src
:
"
cron.monthly/irc-certs.j2"
dest
:
"
/etc/cron.monthly/irc-certs"
mode
:
0755
This diff is collapsed.
Click to expand it.
roles/inspircd/templates/cron.monthly/irc-certs.j2
0 → 100644
+
7
−
0
View file @
7a2394e1
#!/bin/sh
{{
ansible_header | comment
}}
cp
/etc/letsencrypt/live/crans.org/fullchain.pem /etc/inspircd/fullchain.pem
cp
/etc/letsencrypt/live/crans.org/privkey.pem /etc/inspircd/privkey.pem
chown
irc:irc /etc/inspircd/fullchain.pem /etc/inspircd/privkey.pem
kill
-USR1
$(
cat
/var/run/inspircd/inspircd.pid
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment