Skip to content

Commit

Permalink
add roles/x11
Browse files Browse the repository at this point in the history
  • Loading branch information
naisanzaa committed Apr 18, 2024
1 parent 67a8fbf commit d8cb77f
Show file tree
Hide file tree
Showing 14 changed files with 49 additions and 0 deletions.
2 changes: 2 additions & 0 deletions playbooks/roles/x11/defaults/main.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
BREW_INSTALL: true
1 change: 1 addition & 0 deletions playbooks/roles/x11/files/main.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
---
1 change: 1 addition & 0 deletions playbooks/roles/x11/handlers/main.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
---
4 changes: 4 additions & 0 deletions playbooks/roles/x11/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/x11/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/x11/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/x11/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/x11/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/x11/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/x11/tasks/Ubuntu.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
4 changes: 4 additions & 0 deletions playbooks/roles/x11/tasks/main.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
- set_fact: package=libx11
- include_tasks: "{{ansible_facts.os_family}}.yml"
when: package
1 change: 1 addition & 0 deletions playbooks/roles/x11/templates/main.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
---
9 changes: 9 additions & 0 deletions playbooks/roles/x11/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/x11.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
- hosts: all
roles:
- x11

0 comments on commit d8cb77f

Please sign in to comment.