onion-router-ansible is a set of asnible scripts to accomplish the same as the bash script https://bitbucket.org/idontwatchtv/onion-router 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:
- Raspbian Stretch Lite 2018-03-13 (link: https://downloads.raspberrypi.org/raspbian_lite/images/raspbian_lite-2018-03-14/ )
- Ansible 2.5.0
- Python 2.7.14
- Raspberry Pi Model B v.1
Clone the repository to a local machine
git clone https://bitbucket.org/idontwatchtv/onion-router-ansible.git
Configure your onion-router in your ~/.ssh/config (in this example we will use onion1)
Host onion1 HostName 192.168.1.109 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
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