diff options
author | heqnx <root@heqnx.com> | 2025-05-25 11:50:46 +0300 |
---|---|---|
committer | heqnx <root@heqnx.com> | 2025-05-25 11:50:46 +0300 |
commit | 7c8ed923df3c02338dfbf826fd6fd9a23dac502e (patch) | |
tree | 929ee32e5a6f32e952bb8fcad33f704a371af9ff /attackbox/tasks/tor_install.yaml | |
parent | e905a6a60ceb43ef2bfa8f0f61c23630955caf1f (diff) | |
download | ansible-playbooks-7c8ed923df3c02338dfbf826fd6fd9a23dac502e.tar.gz ansible-playbooks-7c8ed923df3c02338dfbf826fd6fd9a23dac502e.zip |
moved unorganized playbooks into old folder
Diffstat (limited to 'attackbox/tasks/tor_install.yaml')
-rw-r--r-- | attackbox/tasks/tor_install.yaml | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/attackbox/tasks/tor_install.yaml b/attackbox/tasks/tor_install.yaml deleted file mode 100644 index 54f8384..0000000 --- a/attackbox/tasks/tor_install.yaml +++ /dev/null @@ -1,47 +0,0 @@ -- name: install tor and required packages - apt: - name: - - tor - - tor-geoipdb - - torsocks - - proxychains - state: present - update_cache: yes - -- name: check if /etc/tor/torrc exists - stat: - path: /etc/tor/torrc - register: torrc_stat - -- name: back up /etc/tor/torrc - copy: - src: /etc/tor/torrc - dest: /etc/tor/torrc.bak - remote_src: yes - force: no - when: - - torrc_stat.stat.exists - -- name: deploy custom tor configuration - template: - src: templates/torrc.j2 - dest: /etc/tor/torrc - owner: debian-tor - group: debian-tor - mode: '0644' - notify: restart tor - -- name: check if tor is routing traffic correctly - command: curl --socks5-hostname 127.0.0.1:9050 https://check.torproject.org/api/ip - register: tor_check - changed_when: false - -- name: print tor check json response - debug: - msg: "tor check response: {{ tor_check.stdout }}" - -- name: verify tor is active - fail: - msg: "tor is not routing traffic correctly: istor is {{ tor_check.stdout | from_json | json_query('IsTor') }}" - when: - - tor_check.stdout | from_json | json_query('IsTor') != true |