Skip to content

Commit

Permalink
add tor
Browse files Browse the repository at this point in the history
  • Loading branch information
naisanzaa committed Nov 28, 2023
1 parent 58b928f commit aaea0a0
Show file tree
Hide file tree
Showing 10 changed files with 39 additions and 0 deletions.
2 changes: 2 additions & 0 deletions playbooks/roles/tor/defaults/main.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
BREW_INSTALL: true
4 changes: 4 additions & 0 deletions playbooks/roles/tor/meta/main.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
dependencies:
- defaults
- brew
1 change: 1 addition & 0 deletions playbooks/roles/tor/tasks/Apple M1.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
---
7 changes: 7 additions & 0 deletions playbooks/roles/tor/tasks/Darwin.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
- name: Apple M1
include_tasks: "{{ansible_facts.processor}}.yml"
when: ansible_facts.processor == "Apple M1"

- name: "{{ansible_facts.distribution}}"
include_tasks: "{{ansible_facts.distribution}}.yml"
3 changes: 3 additions & 0 deletions playbooks/roles/tor/tasks/Debian.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
- apt: update_cache=yes name={{ package }} state=latest
become: yes
3 changes: 3 additions & 0 deletions playbooks/roles/tor/tasks/MacOSX.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
- include_role: name=brew-installer
- include_role: name=mac-installer
3 changes: 3 additions & 0 deletions playbooks/roles/tor/tasks/RedHat.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
- yum: name={{ package }} state=latest
become: yes
3 changes: 3 additions & 0 deletions playbooks/roles/tor/tasks/main.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
- set_fact: package=tor
- include_tasks: "{{ansible_facts.os_family}}.yml"
9 changes: 9 additions & 0 deletions playbooks/roles/tor/vars/main.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
url:
mac_deb:
mac_pkg:
mac_zip:
mac_folder:
mac_app:

BREW_INSTALL: true
4 changes: 4 additions & 0 deletions playbooks/tor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
- hosts: all
roles:
- tor

0 comments on commit aaea0a0

Please sign in to comment.