onion-router-ansible is a set of asnible scripts to accomplish the same as the bash script along with some other functionality, and eventually the ability to provision private bridges to the Tor network.


Tested and working as of April 12, 2018.

This was tested and working with the following versions:


Clone the repository to a local machine

git clone

Configure your onion-router in your ~/.ssh/config (in this example we will use onion1)

Host onion1
  User pi
  IdentityFile ~/.ssh/id_ed25519

Make sure that host is added to the hosts file in your onion-router-ansible/ directory under [onion-routers] then run the playbook.

ansible-playbook -i hosts site.yml

Change log

v0.1 -- Initial commit

v0.2 -- Fixed network issue, handler removed needs to be done manually or DNSMASQ fails to start.

v0.3 -- System hostnames can be set with hostname var in host_vars. Tested and working on Ubuntu 16.04.1 LTS