Skip to content

Commit

Permalink
Update remove.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
MrDoobPG authored Dec 1, 2019
1 parent 1525414 commit 14e269b
Showing 1 changed file with 12 additions and 16 deletions.
28 changes: 12 additions & 16 deletions menu/plex_dupe/remove/remove.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,23 +9,19 @@
gather_facts: false
tasks:
# FACTS ######################################################################
#when: not config.stat.exists
- name: Check Service's Existance
stat:
path: '/etc/systemd/system/plexdupefinder.service'
register: pgp
- name: Stop service
service:
name: plex_autoscan
state: stopped
when: pgp.stat.exists
- name: Daemon-PTS-Patrol stop
systemd: state=stopped name=plexdupefinder daemon_reload=yes enabled=no
# #when: not config.stat.exists
# - name: Check Service's Existance
# stat:
# path: '/etc/systemd/system/plexdupefinder.service'
# register: pgp
#
# - name: Stop service
# service:
# name: plex_autoscan
# state: stopped
# when: pgp.stat.exists

- name: Remove Basic Directories
file: 'path={{item}} state=absent mode=0775 owner=1000 group=1000'
with_items:
- '/opt/appdata/plexdupefinder/'
- '/etc/systemd/system/plexdupefinder.service'
- '/opt/plex_dupefinder'

0 comments on commit 14e269b

Please sign in to comment.