mirror of
https://github.com/MHA-Team/PTS-Team.git
synced 2026-03-05 18:01:57 +00:00
mountcheck = not deployed check endlines localspace remove unused lines mintcheck will show not deployed with reading rclone.conf file instade NOT Operational for not using the drives or crypt parts plex_dupe endline clear up display plex_dupe remove yml removing symlink
22 lines
689 B
Bash
22 lines
689 B
Bash
#!/bin/bash
|
|
#
|
|
# Title: Plex_DupeFinder remover
|
|
# YML Author: MrDoob
|
|
# GNU: General Public License v3.0
|
|
################################################################################
|
|
---
|
|
- hosts: localhost
|
|
gather_facts: false
|
|
tasks:
|
|
# FACTS ######################################################################
|
|
- name: Check Plex Dupefinder Existance
|
|
stat:
|
|
path: '/usr/local/bin/plex_dupefinder'
|
|
register: pgp
|
|
|
|
- name: Remove Plex Dupefinder Basic Directories
|
|
file: 'path={{item}} state=absent mode=0775 owner=1000 group=1000'
|
|
with_items:
|
|
- '/opt/plex_dupefinder'
|
|
- '/var/plex_dupe/'
|
|
when: pgp.stat.exists |