mirror of
https://github.com/MHA-Team/PTS-Team.git
synced 2026-02-14 18:32:02 +00:00
36 lines
1015 B
Bash
36 lines
1015 B
Bash
#!/bin/bash
|
|
#
|
|
# Title: PGBlitz (Reference Title File)
|
|
# Author(s): Admin9705 - Deiteq
|
|
# URL: https://pgblitz.com - http://github.pgblitz.com
|
|
# GNU: General Public License v3.0
|
|
################################################################################
|
|
---
|
|
- hosts: localhost
|
|
gather_facts: false
|
|
tasks:
|
|
- name: Register Project
|
|
shell: 'cat /var/plexguide/pg.number'
|
|
register: serverid
|
|
|
|
- name: Installing EDGE
|
|
git:
|
|
repo: 'https://github.com/PGBlitz/PGBlitz.com'
|
|
dest: '/opt/plexguide'
|
|
version: Edge
|
|
force: yes
|
|
when: serverid.stdout == "edge"
|
|
|
|
- name: 'Installing Version {{serverid.stdout}}'
|
|
git:
|
|
repo: 'https://github.com/PGBlitz/PGBlitz.com'
|
|
dest: '/opt/plexguide'
|
|
version: '{{serverid.stdout}}'
|
|
force: yes
|
|
when: not serverid.stdout == "edge"
|
|
ignore_errors: True
|
|
|
|
- name: 'Stops First Time Run'
|
|
shell: 'touch /var/plexguide/ask.yes'
|
|
register: program
|