From 9c1cc4988165bf78a04f2f17e3f50c696b99be5b Mon Sep 17 00:00:00 2001
From: Beth <ejparker@actcur.com>
Date: Thu, 20 Mar 2025 14:45:06 -0500
Subject: [PATCH] Added bazarr configuration (#1)

Reviewed-on: https://git.actcur.com/actcur-ansible/role-bazarr/pulls/1
Co-authored-by: Beth <ejparker@actcur.com>
Co-committed-by: Beth <ejparker@actcur.com>
---
 README.md         |  9 +++++----
 defaults/main.yml |  2 +-
 handlers/main.yml |  2 +-
 tasks/main.yml    | 13 ++++++++++++-
 tests/test.yml    |  2 +-
 vars/main.yml     |  2 +-
 6 files changed, 21 insertions(+), 9 deletions(-)

diff --git a/README.md b/README.md
index c4fbe9b..4177b55 100644
--- a/README.md
+++ b/README.md
@@ -1,12 +1,13 @@
 role-bazarr
 =========
 
-A brief description of the role goes here.
+This role adds a bazarr server and deploys existing configuration
 
 Requirements
 ------------
 
-No requirements
+certbot
+nginx-ssl
 
 Role Variables
 --------------
@@ -23,8 +24,8 @@ Example Playbook Template
 
 Playbook creation should be handled by playbook-builder. To include role in a playbook, add one of these lines (changing version/branch as needed) to the template with other core entries:
 
-role:mount:v1.0:core,mount
-role:mount:testing:core,mount
+role:bazarr:v1.0:workload,bazarr
+role:bazarr:testing:workload,bazarr
 
 License
 -------
diff --git a/defaults/main.yml b/defaults/main.yml
index a0eb46b..aee5714 100644
--- a/defaults/main.yml
+++ b/defaults/main.yml
@@ -1,3 +1,3 @@
 #SPDX-License-Identifier: MIT-0
 ---
-# defaults file for ${REPO_NAME}
+# defaults file for role-bazarr
diff --git a/handlers/main.yml b/handlers/main.yml
index 192bcab..e2b093f 100644
--- a/handlers/main.yml
+++ b/handlers/main.yml
@@ -1,3 +1,3 @@
 #SPDX-License-Identifier: MIT-0
 ---
-# handlers file for ${REPO_NAME}
+# handlers file for role-bazarr
diff --git a/tasks/main.yml b/tasks/main.yml
index 0482006..af0c38b 100644
--- a/tasks/main.yml
+++ b/tasks/main.yml
@@ -1,3 +1,14 @@
 #SPDX-License-Identifier: MIT-0
 ---
-# tasks file for ${REPO_NAME}
+# tasks file for role-bazarr
+- name: install bazarr
+  ansible.builtin.package:
+    name: bazarr
+    state: present
+
+
+- name: ensure bazarr is running
+  service:
+    name: bazarr
+    state: started
+    enabled: yes
diff --git a/tests/test.yml b/tests/test.yml
index a1c8646..74350b4 100644
--- a/tests/test.yml
+++ b/tests/test.yml
@@ -3,4 +3,4 @@
 - hosts: localhost
   remote_user: root
   roles:
-    - ${REPO_NAME}
+    - role-bazarr
diff --git a/vars/main.yml b/vars/main.yml
index f31a73e..1844f00 100644
--- a/vars/main.yml
+++ b/vars/main.yml
@@ -1,3 +1,3 @@
 #SPDX-License-Identifier: MIT-0
 ---
-# vars file for ${REPO_NAME}
+# vars file for role-bazarr