Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
webservices
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
infra
ansible-shared
webservices
Commits
1f6ee155
Commit
1f6ee155
authored
7 months ago
by
Hinrikus Wolf
Browse files
Options
Downloads
Patches
Plain Diff
acmebot: install package in venv
parent
a444637d
No related branches found
No related tags found
Loading
Pipeline
#6737
passed
7 months ago
Stage: test
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
acmebot/files/logrotate
+8
-0
8 additions, 0 deletions
acmebot/files/logrotate
acmebot/tasks/main.yml
+23
-20
23 additions, 20 deletions
acmebot/tasks/main.yml
with
31 additions
and
20 deletions
acmebot/files/logrotate
0 → 100644
+
8
−
0
View file @
1f6ee155
/var/log/acmebot/*.log {
weekly
missingok
rotate 12
compress
delaycompress
notifempty
}
This diff is collapsed.
Click to expand it.
acmebot/tasks/main.yml
+
23
−
20
View file @
1f6ee155
...
@@ -3,29 +3,30 @@
...
@@ -3,29 +3,30 @@
-
name
:
ensure requirements for acmebot are installed
-
name
:
ensure requirements for acmebot are installed
apt
:
apt
:
name
:
name
:
-
python3-appdirs
-
python3-virtualenv
-
python3-pyparsing
-
virtualenv
-
python3-packaging
-
python3-openssl
-
python3-dns
-
python3-cryptography
-
python3-asn1crypto
-
python3-acme
-
python3-yaml
state
:
present
state
:
present
-
name
:
get the acmebot repository
-
name
:
check whether acmebot is still installed via git
git
:
stat
:
repo
:
https://github.com/plinss/acmebot.git
path
:
/opt/acmebot/.git
dest
:
/opt/acmebot
register
:
file_status
-
name
:
remove the git repository if still exists
file
:
path
:
/opt/acmebot
state
:
absent
when
:
file_status.stat.exists
-
name
:
setup a venv
pip
:
name
:
acmebot
version
:
"
{{acmebot_version}}"
version
:
"
{{acmebot_version}}"
force
:
true
virtualenv
:
/opt/acmebot/venv
environment
:
TMPDIR
:
/root/.ansible/tmp
-
name
:
add acmebot to path
-
name
:
add acmebot to path
file
:
file
:
src
:
/opt/acmebot/
src/acmebot
/acmebot
.py
src
:
/opt/acmebot/
venv/bin
/acmebot
dest
:
/usr/local/sbin/acmebot
dest
:
/usr/local/sbin/acmebot
state
:
link
state
:
link
...
@@ -84,7 +85,9 @@
...
@@ -84,7 +85,9 @@
state
:
absent
state
:
absent
-
name
:
rotate acmebot logs
-
name
:
rotate acmebot logs
file
:
copy
:
src
:
/opt/acmebot/logrotate.d/acmebot
src
:
logrotate
dest
:
/etc/logrotate.d/acmebot
dest
:
/etc/logrotate.d/acmebot
state
:
link
mode
:
'
0644'
owner
:
root
group
:
root
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