Skip to content

Commit

Permalink
[transmission] add role
Browse files Browse the repository at this point in the history
  • Loading branch information
naisanzaa committed Nov 17, 2024
1 parent 8f2bc78 commit c3276c9
Show file tree
Hide file tree
Showing 10 changed files with 43 additions and 0 deletions.
2 changes: 2 additions & 0 deletions playbooks/roles/transmission/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/transmission/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/transmission/tasks/Apple Silicon.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
---
10 changes: 10 additions & 0 deletions playbooks/roles/transmission/tasks/Darwin.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
- name: Apple Silicon
include_tasks: "Apple Silicon.yml"
when: |
ansible_facts.processor == "Apple M1" or
ansible_facts.processor == "Apple M2" or
ansible_facts.processor == "Apple M3"
- name: "{{ansible_facts.distribution}}"
include_tasks: "{{ansible_facts.distribution}}.yml"
3 changes: 3 additions & 0 deletions playbooks/roles/transmission/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/transmission/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/transmission/tasks/RedHat.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
- yum: name={{ package }} state=latest
become: yes
4 changes: 4 additions & 0 deletions playbooks/roles/transmission/tasks/main.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
- set_fact: package=transmission
- include_tasks: "{{ansible_facts.os_family}}.yml"
when: package
9 changes: 9 additions & 0 deletions playbooks/roles/transmission/vars/main.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
url:
mac_dmg:
mac_pkg:
mac_zip:
mac_folder:
mac_app:

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

0 comments on commit c3276c9

Please sign in to comment.