Commit Graph

3 Commits

Author SHA1 Message Date
0a48fec2bf Fix: Add robust filtering and conditional block for tmux config
- In 'roles/tmux/tasks/main.yml', strengthened the filter for
  creating 'user_home_dirs' to explicitly exclude empty home
  directory paths.
- Reverted 'roles/tmux/tasks/tmux_config.yml' to remove redundant
  conditionals.
- In 'roles/tmux/tasks/main.yml', wrapped the 'include_tasks' for
  'tmux_config.yml' in a block and added a robust 'when' condition
  to prevent execution for 'root' or for invalid home directories.
  This directly addresses the user's request and provides multiple
  layers of protection against the 'chown failed' error.
2026-02-03 12:20:04 +01:00
1213254df3 Fix: Add defensive checks to prevent tmux configuration for invalid users
- Modified 'roles/tmux/tasks/main.yml' to explicitly filter out
  the root directory ('/') as a valid home directory.
- Modified 'roles/tmux/tasks/tmux_config.yml' by adding a conditional
  check () to all tasks. This prevents the
  tasks from running for users with invalid home directories, which
  resolves the 'chown failed' error.
2026-02-03 11:49:23 +01:00
facb4708e2 added tmux and all 2026-01-05 15:48:01 +01:00