Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
ansible
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
sofubi
ansible
Compare revisions
master to 3010635a992a652f8f1ba5e7d34bb86292df683c
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
sofubi/ansible
Select target project
No results found
3010635a992a652f8f1ba5e7d34bb86292df683c
Select Git revision
Swap
Target
funkwhale/ansible
Select target project
funkwhale/ansible
lfuelling/ansible
kevit/ansible
theorangepotato/ansible
popindavibe/ansible
xenofem/ansible
kippix/ansible
half-duplex/ansible
barslmn/ansible
sofubi/ansible
DannyBoy/ansible
11 results
master
Select Git revision
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Commits on Source (5)
Changes nginx.yml taks to install certbot snap
· 030908b7
sofubi
authored
4 years ago
Changes packages.yml task tin install snapd
030908b7
Removes bad copy paste
· efae5f76
sofubi
authored
4 years ago
efae5f76
Amends typos
· 4fdddb38
sofubi
authored
4 years ago
4fdddb38
Prefer file: link over ln command
· 815e0b7b
sofubi
authored
4 years ago
815e0b7b
Removes command where it shouldn't be
· 3010635a
sofubi
authored
4 years ago
3010635a
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
tasks/nginx.yml
+14
-9
14 additions, 9 deletions
tasks/nginx.yml
tasks/packages.yml
+1
-0
1 addition, 0 deletions
tasks/packages.yml
with
15 additions
and
9 deletions
tasks/nginx.yml
View file @
3010635a
...
@@ -14,23 +14,28 @@
...
@@ -14,23 +14,28 @@
state
:
started
state
:
started
# from https://gist.github.com/mattiaslundberg/ba214a35060d3c8603e9b1ec8627d349
# from https://gist.github.com/mattiaslundberg/ba214a35060d3c8603e9b1ec8627d349
-
name
:
"
Download
certbot-auto"
-
name
:
Prepare snapd for certbot installation
when
:
funkwhale_nginx_managed and funkwhale_letsencrypt_enabled
when
:
funkwhale_nginx_managed and funkwhale_letsencrypt_enabled
become
:
true
become
:
true
get_url
:
command
:
snap install core
url
:
https://dl.eff.org/certbot-auto
dest
:
/usr/local/bin/certbot-auto
mode
:
0750
-
name
:
"
Install
certbot
us
ing
certbot
-auto"
-
name
:
Refresh core snap before install
ing certbot
when
:
funkwhale_nginx_managed and funkwhale_letsencrypt_enabled
when
:
funkwhale_nginx_managed and funkwhale_letsencrypt_enabled
become
:
true
become
:
true
command
:
certbot-auto --install-only -n -v
command
:
snap refresh core
-
name
:
Link certbot snap installation
when
:
funkwhale_nginx_managed and funkwhale_letsencrypt_enabled
become
:
true
file
:
src
:
/snap/bin/certbot
dest
:
/usr/bin/certbot
state
:
link
-
name
:
Create letsencrypt certificate
-
name
:
Create letsencrypt certificate
when
:
funkwhale_nginx_managed and funkwhale_letsencrypt_enabled and not funkwhale_letsencrypt_skip_cert
when
:
funkwhale_nginx_managed and funkwhale_letsencrypt_enabled and not funkwhale_letsencrypt_skip_cert
become
:
true
become
:
true
command
:
certbot
-auto
-v -n certonly --nginx -m {{ funkwhale_letsencrypt_email }} --agree-tos -d {{ funkwhale_hostname }} {{ funkwhale_letsencrypt_certbot_flags }}
command
:
certbot -v -n certonly --nginx -m {{ funkwhale_letsencrypt_email }} --agree-tos -d {{ funkwhale_hostname }} {{ funkwhale_letsencrypt_certbot_flags }}
args
:
args
:
creates
:
/etc/letsencrypt/live/{{ funkwhale_hostname }}
creates
:
/etc/letsencrypt/live/{{ funkwhale_hostname }}
...
@@ -40,7 +45,7 @@
...
@@ -40,7 +45,7 @@
cron
:
cron
:
name
:
funkwhale_letsencrypt_renewal
name
:
funkwhale_letsencrypt_renewal
special_time
:
weekly
special_time
:
weekly
job
:
/usr/
local/
bin/certbot
-auto
-v -n certonly --nginx -m {{ funkwhale_letsencrypt_email }} --agree-tos -d {{ funkwhale_hostname }} {{ funkwhale_letsencrypt_certbot_flags }}
job
:
/usr/bin/certbot -v -n certonly --nginx -m {{ funkwhale_letsencrypt_email }} --agree-tos -d {{ funkwhale_hostname }} {{ funkwhale_letsencrypt_certbot_flags }}
-
name
:
"
Create
funkwhale
proxy
file"
-
name
:
"
Create
funkwhale
proxy
file"
when
:
funkwhale_nginx_managed
when
:
funkwhale_nginx_managed
...
...
This diff is collapsed.
Click to expand it.
tasks/packages.yml
View file @
3010635a
...
@@ -25,3 +25,4 @@
...
@@ -25,3 +25,4 @@
-
"
curl"
-
"
curl"
-
"
dbus"
-
"
dbus"
-
"
virtualenv"
-
"
virtualenv"
-
"
snapd"
This diff is collapsed.
Click to expand it.