This repository has been archived on 2020-05-29. You can view files and clone it, but cannot push or open issues or pull requests.
ansible-tor/tasks/main.yml

28 lines
536 B
YAML

- name: Create configuration directory
file:
path: '/etc/tor'
state: directory
tags:
- setup
- configs
- name: Copy configuration files
template:
follow: yes
src: 'torrc.j2'
dest: '/etc/tor/torrc'
notify: Restart tor
tags:
- update
- configs
- name: Install tor
apt:
install_recommends: no
name:
- tor
state: present
cache_valid_time: 3600
tags:
- setup
- packages
notify: Enable tor