Let's say I write a mine.service
file. Then I use systemctl enable mine.service
.
If I later decide to edit mine.service
, do I have to tell systemd
that mine.service
was changed? If so, how do I do that?
Let's say I write a mine.service
file. Then I use systemctl enable mine.service
.
If I later decide to edit mine.service
, do I have to tell systemd
that mine.service
was changed? If so, how do I do that?
How do I see stdout for ansible-playbook commands? -v only shows ansible output, not the individual commands. It would be great if I could figure out how to do this immediately, so if something fails or hangs I can see why.
e.g.
- name: print to stdout
action: command echo "hello"
would print
TASK: [print variable] ********************************************************
hello
I have a signup page on a subdomain like: https://signup.example.com
It should only be accessible via HTTPS but I'm worried people might somehow stumble upon it via HTTP and get a 404.
My html/server block in nginx looks like this:
html {
server {
listen 443;
server_name signup.example.com;
ssl on;
ssl_certificate /path/to/my/cert;
ssl_certificate_key /path/to/my/key;
ssl_session_timeout 30m;
location / {
root /path/to/my/rails/app/public;
index index.html;
passenger_enabled on;
}
}
}
What can I add so that people who go to http://signup.example.com
get redirected to https://signup.example.com
? (FYI I know there are Rails plugins that can force SSL
but was hoping to avoid that)
My company runs an internal DNS for mycompany.example
There is a machine on the network that I need to find, but I’ve forgotten its name. If I could see a list, it would probably jog my memory.
How can I list all of the domain records for mycompany.example
?