add playbooks

This commit is contained in:
willtome
2022-02-11 08:26:04 -06:00
parent 858e7290ec
commit 99a6ff6dbf
10 changed files with 299 additions and 4 deletions

14
linux/service_stop.yml Normal file
View File

@@ -0,0 +1,14 @@
---
- hosts: "{{ HOSTS }}"
vars:
service_name: undef
tasks:
- name: Check Service
service_facts:
- name: Stop Service
service:
name: "{{ service_name }}"
state: stopped
when: service_name + '.service' in services