ansible-edda/playbooks/roles/services/stop/tasks/main.yml

14 lines
366 B
YAML
Raw Normal View History

---
- name: "set the user variables"
ansible.builtin.import_role:
name: "services/include"
vars_from: "user"
- name: "disable and stop pod-{{ services_service_name }}"
become_user: "{{ services_service_user_name }}"
ansible.builtin.systemd:
name: "pod-{{ services_service_name }}.service"
enabled: false
state: "stopped"
scope: "user"