How to Install Ansible-NAS on Linux Mint Latest

In this tutorial, we will cover how to install and configure Ansible-NAS on Linux Mint. Ansible-NAS is a tool used to deploy a network-attached storage server with various media services such as Plex, BitTorrent, and others.

Prerequisites

Before we install Ansible-NAS, make sure that you have the following prerequisites:

Step 1: Installing Ansible

  1. Open Terminal on your Linux Mint System.
  2. Update the system by running the following command:
sudo apt update && sudo apt upgrade -y
  1. Install Ansible by running the following command:
sudo apt install ansible -y
  1. To verify the installation, run the following command:
ansible --version

This command will display the version of Ansible running on the system.

Step 2: Cloning Ansible-NAS repository

  1. In your Terminal, navigate to your home directory by running the following command:
cd ~
  1. Clone the Ansible-NAS repository by running the following command:
git clone https://github.com/DaveStephens/ansible-nas.git

Step 3: Configuring Ansible-NAS

  1. Navigate to the ansible-nas directory that you just cloned by running the following command:
cd ansible-nas/
  1. Create a new file named hosts by running the following command:
sudo nano hosts
  1. In your hosts file, add the following lines:
[nas]
your-server-ip

Replace your-server-ip with the IP address of your Linux Mint system.

  1. Save the file by pressing Ctrl + X, then Y, and finally Enter.

  2. Now, create a new file named config.yml by running the following command:

sudo nano config.yml
  1. In your config.yml file, copy and paste the following code:
---
# A role can either be installed, or not.
roles:
  samba: true
  minidlna: true
  plex: true
  transmission: true
  jackett: true
  tautulli: true
  playlists: true

# Set the name of the NAS.
name: MyNAS

# Set the username and email for the default admin of various services.
plex_email: admin@example.com
plex_username: admin
transmission_username: admin
jackett_username: admin
tautulli_username: admin

# Set the UUIDs for the disks that will be used to store media.
disks:
  - uuid: UUID_OF_DISK
    mountpoint: /mnt/disk1
    partition: /dev/sda2 # partition
    filesystem: ext4

Make sure to replace the UUID_OF_DISK with the UUID of the disk that will store media.

  1. Save the file by pressing Ctrl + X, then Y, and finally Enter.

Step 4: Running Ansible-NAS

  1. Run the playbook by executing the following command:
ansible-playbook main.yml -i hosts
  1. Wait for the playbook to finish. It can take several minutes depending on your internet speed and system resources.

  2. After the playbook finishes, you should be able to access the media services like Plex or Transmission by entering the IP address of your Linux Mint system in your web browser.

Conclusion

In this tutorial, you learned how to install and configure Ansible-NAS on Linux Mint. Now, you have a complete media server with numerous media services at your fingertips!

If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!

Alternatively, for the best virtual desktop, try Shells!