Skip to content

Commit

Permalink
motd: add inventory toggle
Browse files Browse the repository at this point in the history
closes #166
  • Loading branch information
saltydk committed Nov 16, 2023
1 parent 502c093 commit 6379a2a
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
2 changes: 2 additions & 0 deletions inventories/group_vars/all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,8 @@ use_remote: "{{ (rclone.enabled | bool) and not continuous_integration }}"

use_nvidia: "{{ gpu.nvidia | bool }}"

use_motd: "{{ motd_install | bool }}"

################################
# System
################################
Expand Down
10 changes: 10 additions & 0 deletions roles/motd/defaults/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
##########################################################################
# Title: Saltbox: MOTD | Default Variables #
# Author(s): salty #
# URL: https://github.com/saltyorg/Saltbox #
# -- #
##########################################################################
# GNU General Public License v3.0 #
##########################################################################
---
motd_install: true
2 changes: 1 addition & 1 deletion saltbox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
- { role: rclone, tags: ['core', 'saltbox', 'mediabox', 'feederbox', 'preinstall', 'rclone'] }
- { role: system, tags: ['core', 'saltbox', 'mediabox', 'feederbox', 'system'] }
- { role: common, tags: ['core', 'saltbox', 'mediabox', 'feederbox', 'common'] }
- { role: motd, tags: ['core', 'saltbox', 'mediabox', 'feederbox', 'motd'] }
- { role: motd, tags: ['core', 'saltbox', 'mediabox', 'feederbox', 'motd'], when: ['use_motd'] }
- { role: mount_templates, tags: ['core', 'saltbox', 'mediabox', 'feederbox', 'mounts', 'mount-templates'] }
- { role: remote, tags: ['core', 'saltbox', 'mediabox', 'feederbox', 'mounts'] }
- { role: unionfs, tags: ['core', 'saltbox', 'mediabox', 'feederbox', 'mounts'] }
Expand Down

0 comments on commit 6379a2a

Please sign in to comment.