Compare commits
2 commits
50b06b54cf
...
2a0b1c518d
Author | SHA1 | Date | |
---|---|---|---|
|
2a0b1c518d | ||
|
82bd8874d2 |
2 changed files with 12 additions and 0 deletions
|
@ -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
|
pip3 install ansible
|
||||||
ansible-galaxy install -fr requirements.yml
|
ansible-galaxy install -fr requirements.yml
|
||||||
ansible-playbook setup.yml
|
ansible-playbook setup.yml
|
|
@ -29,6 +29,13 @@
|
||||||
state: restarted
|
state: restarted
|
||||||
daemon_reload: yes
|
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
|
- name: (Re)start and enable tor service
|
||||||
service:
|
service:
|
||||||
name: tor
|
name: tor
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue