Compare commits

...

2 commits

Author SHA1 Message Date
Philip (a-0)
2a0b1c518d touch log file if not existent 2022-07-28 22:06:19 +02:00
Philip (a-0)
82bd8874d2 only run installer as root 2022-07-28 22:06:07 +02:00
2 changed files with 12 additions and 0 deletions

View file

@ -1,3 +1,8 @@
if [ "$(id -u)" -ne 0 ]; then
echo 'This script must be run as root!' >&2
exit 1
fi
pip3 install ansible
ansible-galaxy install -fr requirements.yml
ansible-playbook setup.yml

View file

@ -29,6 +29,13 @@
state: restarted
daemon_reload: yes
- name: Ensure log file exists
file:
path: "{{ tor_logfile_path }}"
state: touch
owner: debian-tor
mode: 0644
- name: (Re)start and enable tor service
service:
name: tor