Skip to content

Commit

Permalink
cloudplow: add cloudplow-disable
Browse files Browse the repository at this point in the history
  • Loading branch information
saltydk committed Jul 13, 2023
1 parent d74ddd3 commit bd1a963
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
6 changes: 6 additions & 0 deletions roles/cloudplow/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@
# GNU General Public License v3.0 #
#########################################################################
---
- name: Import Disable Task
ansible.builtin.import_tasks: "subtasks/disable.yml"
when: ('cloudplow-disable' in ansible_run_tags)
tags:
- "cloudplow-disable"

- name: Check if Plex instance is defined
ansible.builtin.set_fact:
plex_name: "{{ plex_name | default(plex_instances[0]) }}"
Expand Down
14 changes: 14 additions & 0 deletions roles/cloudplow/tasks/subtasks/disable.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#########################################################################
# Title: Saltbox: Cloudplow | Disable Task #
# Author(s): salty #
# URL: https://github.com/saltyorg/Saltbox #
# -- #
#########################################################################
# GNU General Public License v3.0 #
#########################################################################
---
- name: Stop and disable service
ansible.builtin.systemd:
name: "{{ cloudplow_service_name }}"
state: stopped
enabled: false

0 comments on commit bd1a963

Please sign in to comment.