Skip to content

Commit

Permalink
Custom: New Role.
Browse files Browse the repository at this point in the history
  • Loading branch information
saltydk committed Aug 10, 2021
1 parent f7fbfa5 commit 40ddf47
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 0 deletions.
12 changes: 12 additions & 0 deletions roles/custom/defaults/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
##########################################################################
# Title: Saltbox: Custom | Default Variables #
# Author(s): salty #
# URL: https://github.com/saltyorg/Saltbox #
# -- #
##########################################################################
# GNU General Public License v3.0 #
##########################################################################
---
custom_apt: []

custom_pip: []
23 changes: 23 additions & 0 deletions roles/custom/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
##########################################################################
# Title: Saltbox: Custom #
# Author(s): salty #
# URL: https://github.com/saltyorg/Saltbox #
# -- #
##########################################################################
# GNU General Public License v3.0 #
##########################################################################
---
- name: Install custom apt packages
apt:
state: present
name: "{{ item }}"
ignore_errors: true
loop: "{{ custom_apt }}"

- name: Install custom pip modules
pip:
state: present
name: "{{ item }}"
executable: pip3
ignore_errors: true
loop: "{{ custom_pip }}"
1 change: 1 addition & 0 deletions saltbox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,3 +63,4 @@
- { role: trackarr, tags: ['trackarr'] }
- { role: sstv, tags: ['sstv'] }
- { role: yyq, tags: ['yyq'] }
- { role: custom, tags: ['custom'] }

0 comments on commit 40ddf47

Please sign in to comment.