Browse Source

private dir

master
Bastiaan Stroosnijder 5 months ago
parent
commit
00e717312e
  1. 1
      defaults/main.yml
  2. 4
      tasks/main.yml

1
defaults/main.yml

@ -2,3 +2,4 @@
pilab_tor_path: "{{ pilab_path_services }}/tor"
pilab_tor_suffix_config: config
pilab_tor_suffix_private: private

4
tasks/main.yml

@ -3,6 +3,7 @@
- vars:
_tor_service: "{{ (pilab_tor_service_name | mandatory).split('.') | reverse | join('-') }}"
pilab_tor_path_config: "{{ [pilab_tor_path, _tor_service, pilab_tor_suffix_config] | join('/') }}"
pilab_tor_path_private: "{{ [pilab_tor_path, _tor_service, pilab_tor_suffix_private] | join('/') }}"
block:
- loop:
- name: "pilab-tor-{{ _tor_service }}"
@ -15,6 +16,9 @@
options:
redirect_to: "{{ pilab_tor_redirect_to | default('127.0.0.1:8080') }}"
listen_on: "{{ pilab_tor_listen_on | default(80) }}"
- src: "{{ pilab_tor_path_private }}"
readonly: no
dest: /web
ansible.builtin.include_role:
name: pilab-role-common
tasks_from: add-service

Loading…
Cancel
Save