Skip to content

CypressXt/ansible-applemusic-elastic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ansible-applemusic-elastic

What for?

What is this ansible repo for ?

This ansible repo aim to configure an Elastic stack ready to host your AppleMusic played history. You'll also be able to share it (read-only) publicly if you want to.

At the end you'll get:

  • An Elasticsearch server (admin and read-only)
  • A Kibana web app (admin and read-only)
  • An Nginx with HTTP2 support and an SSL grade of A
  • A restrictive firewall configuration
  • An configured environment able to host your AppleMusic played history

Installation

First you need to install some dependencies:

ansible galaxy roles
ansible-galaxy install geerlingguy.kibana
ansible-galaxy install geerlingguy.nginx
ansible-galaxy install geerlingguy.htpasswd
ansible-galaxy install geerlingguy.certbot
jmespath

The elasticsearch role uses the json_query filter which requires jmespath on the local machine.

sudo apt install python-jmespath

Usage

Clone this repo
git clone https://github.com/CypressXt/ansible-applemusic-elastic.git
Configuration

Check and edit the var file with your custom values such as your fqdn, mail address for the Let's Encrypt cert...

Configure the hosts file with the proper hosts.

3-2-1 Ignition
ansible-playbook -i hosts elastic.yml --ask-become-pass

Ansible reporting for duty

Here is your final cheat-sheet:

Service URL PORT Privileges basic-auth
Kibana https://music.mydomain.gg 443 read-only
Kibana https://music.mydomain.gg:8443 8443 admin
Elasticsearch https://music.mydomain.gg:9200 9200 read-only
Elasticsearch https://music.mydomain.gg:9203 9203 admin

About

Secured and shareable Elastic stack

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published