Comments (8)
Yes, I can confirm that it works afterwards. Thanks a lot @ghostwords and @L-P
from ansible-role-simp_le.
I have yet to test if this is the cause of your problem but you are not
supposed to run this role as root/sudo.
Can you give me the contents of /home/root/.cache/ansible-simp_le/conf.json
?
from ansible-role-simp_le.
{"dest": "/home/root/.cache/ansible-simp_le/simp_le", "vhosts": [{"domains": ["www.shaarli.milhaus.cz", "shaarli.milhaus.cz"], "output": "/var/certs/shaarli_milhaus_cz", "root": "/var/www/shaarli/.well-known/acme-challenge"}], "email": "<my_email>"}
All the directories do exist. Also, I'm using that VPS as root through SSH, is that a problem?
from ansible-role-simp_le.
I use this role on multiple VPS running Ubuntu 14.04 and it works fine, but it
is designed to run as an unprivileged user.
Hence the hackish thing I did in defaults/main.yml
, I use /home/<user>
as
the remote user home directory so the cache is written in /home∕root/.cache
instead of /root/.cache
.
You'll want to set the following variable if you plan to keep using root:
simp_le_cache: "/root/.cache/ansible-simp_le"
I successfully ran the role as root on Ubuntu 14.04.
Does /home/root/.cache/ansible-simp_le/simp_le/venv/bin/simp_le
exist?
from ansible-role-simp_le.
Yes, it exists. I set the variable you mentioned, but the problem remains.
from ansible-role-simp_le.
Edit ~/.cache/ansible-simp_le/generate-certs
and print cmd
and
vhost["output"]
before L68.
See if both paths are correct and exist.
from ansible-role-simp_le.
I believe the issue is in the generate-certs script caused by a leading slash in the second argument to os.path.join. Proposed fix:
43c43
< command = [os.path.join(conf["dest"], "/venv/bin/simp_le")]
---
> command = [os.path.join(conf["dest"], "venv", "bin", "simp_le")]
from ansible-role-simp_le.
Confirmed. I wonder why it worked for me. I tested with v1.1.0, the
bug was introduced in 060625f, first thing I should have asked was the
version you were using.
This is fixed in master, can you try again @miloskroulik ?
from ansible-role-simp_le.
Related Issues (4)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ansible-role-simp_le.