GR360RY.htpc-common

htpc-common

Build Status Galaxy

This is an Ansible role for managing common tasks on a Home Theater PC (HTPC).

Overview

  1. Install an SSH server for remote access.
  2. Set up Zeroconf networking and avahi-alias service.
  3. Create a user named htpc_user if it doesn't already exist.
  4. Provide sudo access for the htpc_user.
  5. Create folders for media and downloads.

Folder Structure for Downloads and Media (using default settings):

/mnt/media/
├── downloads
│   ├── complete
│   └── incomplete
├── movies
├── music
├── pictures
└── tv

Requirements

  • Ansible version 2.0 or higher.

Role Variables

# Default settings for htpc-common

# HTPC user details
htpc_user_username: htpc
htpc_user_password: htpc
htpc_user_group: htpc
htpc_user_shell: /bin/bash
htpc_user_sudo_access: yes

# Services settings
htpc_ssh_service: yes
htpc_create_media_folders: yes
htpc_zeroconf: yes

# Directory paths for media and downloads
htpc_media_path: /mnt/media
htpc_media_movies: movies
htpc_media_tv: tv
htpc_media_music: music
htpc_media_pictures: pictures
htpc_downloads_complete: "{{ htpc_media_path }}/downloads/complete"
htpc_downloads_incomplete: "{{ htpc_media_path }}/downloads/incomplete"

# Variable to configure service resolution
htpc_resolving: zeroconf

# Variable for Docker access
docker_group_members:
  - "{{ htpc_user_username }}"

Dependencies

None

Example Playbook

- hosts: htpc-server
  become: yes

  vars:
    htpc_user_username: foo
    htpc_user_group: foo
    htpc_user_password: bar
    htpc_media_path: /media/big_disk
    htpc_media_movies: "My Movies"

  roles:
    - role: GR360RY.htpc-common

HTPC-Ansible Project

This role is part of the HTPC-Ansible project, which includes more roles for setting up an Ubuntu-based HTPC server.

Here are additional Ansible Galaxy roles available:

For more information, visit www.htpc-ansible.org.

License

BSD License

Author Information

Gregory Shulov

Informazioni sul progetto

An ansible role to perform common tasks on HTPC

Installa
ansible-galaxy install GR360RY.htpc-common
Licenza
Unknown
Download
250
Proprietario