systemli / ansible-role-onion Goto Github PK
View Code? Open in Web Editor NEWInstall and configure Tor Onion Services
Install and configure Tor Onion Services
https://github.com/systemli/ansible-role-onion/blob/master/tasks/main.yml#L114
rather then restarting tor, should likely consider gracefully reloading
See: https://stem.torproject.org/faq.html#how-do-i-reload-my-torrc
Running this under python3 I get:
TASK [ansible-role-onion : ensure onion configuration is latest] ******************************************************************************
fatal: [servername]: FAILED! => {"changed": false, "msg": "AnsibleUndefinedVariable: 'dict object' has no attribute 'iteritems'"}
This is a known issue with Ansible.
As the link suggests, the solution is to use .items() or iteritems() in torrc.j2. I'm not sure which will preserve backwards compatibility with python2.
Onion v3 keys are stored in binary format in the file hs_ed25519_secret_key
as opposed to private_key
, so there should be a distinction.
The fact that it is in binary format also makes it less convenient to store as a variable. A possible solution would be to base64 encode it.
It appears that you cannot force onions_version to "2", it simply ignores the "onion_version: 2" param.
https://github.com/systemli/ansible-role-onion/blob/master/tasks/main.yml#L22 appears to break when "{{ onion_tor_apt_state }}" is sent to absent, this is because per https://docs.ansible.com/ansible/latest/modules/apt_key_module.html the "id" parameter must be present if absent is set.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.