From be998bc68d711566dbebd0b6d871af77d9495d98 Mon Sep 17 00:00:00 2001 From: MrDoobPG <46342172+MrDoobPG@users.noreply.github.com> Date: Tue, 24 Dec 2019 17:50:43 +0100 Subject: [PATCH] Update main.yml --- menu/roles/plex_autoscan/tasks/main.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/menu/roles/plex_autoscan/tasks/main.yml b/menu/roles/plex_autoscan/tasks/main.yml index 961d4559..0a3c5af3 100644 --- a/menu/roles/plex_autoscan/tasks/main.yml +++ b/menu/roles/plex_autoscan/tasks/main.yml @@ -37,6 +37,10 @@ shell: 'cat /var/plexguide/pgscan/plex.token' register: plex_auth_token +- name: Set plex.user fact | token + shell: 'cat /var/plexguide/pgscan/plex.token' + register: plex_auth_token_display + - name: Register IP shell: 'cat /var/plexguide/server.ip' register: ipaddress @@ -56,7 +60,7 @@ - name: Display Plex Auth Token debug: - msg: "Plex Auth Token: {{ plex_auth_token }}" + msg: "Plex Auth Token: {{plex_auth_token_display.stdout}}" - name: Import Services Task import_tasks: "subtasks/services.yml" @@ -117,5 +121,5 @@ - name: Services | Restart 'plex_autoscan.service' systemd: name: plex_autoscan - state: restart + state: restarted when: pas_online.stat.exists \ No newline at end of file