Commit 3e5c4d80 authored by Yassine Zouggari's avatar Yassine Zouggari
Browse files

Merge branch 'onionspray-role-feat/onionspray_enable_service' into 'main'

Add onionspray_use_systemd variable

See merge request !4
parents e918ea48 feb53f87
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -126,6 +126,10 @@ Self-signed certificate state or provice name. Defaults to `The Internet`.

The custom `.onion` v3 address to use, dependent on the public/secret keys used. If it is defined, this means we are using a custom public/secret key, provided by the `onionspray_public_key_base64` and  `onionspray_secret_key_base64` variables. If not provided, a random key will be generated and its address will be used.

### `onionspray_use_systemd`

Controls whether systemd is used: set to `false` e.g. when running CI jobs in environments without systemd. Defaults to `true`.

### `onionspray_user`

System user that runs Onionspray, will be created. A group of the same name is automatically created. Defaults to `onionspray`.
+1 −0
Original line number Diff line number Diff line
@@ -10,5 +10,6 @@ onionspray_selfsigned_cert_locality: Onion Space
onionspray_selfsigned_cert_organization: The SSL Onion Space
onionspray_selfsigned_cert_organizational_unit: Self Signed Certificates
onionspray_selfsigned_cert_state_or_province: The Internet
onionspray_use_systemd: true
onionspray_user: onionspray
onionspray_user_homedir: "/home/{{ onionspray_user }}"
+2 −0
Original line number Diff line number Diff line
@@ -17,9 +17,11 @@
- name: Reload systemctl daemon
  ansible.builtin.systemd:
    daemon_reload: true
  when: onionspray_use_systemd

- name: Restart Onionspray
  ansible.builtin.service:
    name: onionspray.service
    state: restarted
    enabled: true
  when: onionspray_use_systemd
+1 −0
Original line number Diff line number Diff line
@@ -166,3 +166,4 @@
    name: onionspray.service
    state: started
    enabled: true
  when: onionspray_use_systemd