Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sapcontrol stop/start not working #18

Open
herrmie opened this issue Jun 27, 2023 · 0 comments
Open

sapcontrol stop/start not working #18

herrmie opened this issue Jun 27, 2023 · 0 comments

Comments

@herrmie
Copy link

herrmie commented Jun 27, 2023

image

---
- name: "sapcontrol" 
  hosts: all
  gather_facts: true
  become: true

  #Function to execute:
  #  restart_all_sap
  #  restart_all_nw
  #  restart_all_hana
  #  restart_sap_nw
  #  restart_sap_hana
  #  stop_all_sap
  #  start_all_sap
  #  stop_all_nw
  #  start_all_nw
  #  stop_all_hana
  #  start_all_hana
  #  stop_sap_nw
  #  start_sap_nw
  #  stop_sap_hana
  #  start_sap_hana

#  vars_prompt:
#    - name: sap_sid
#      prompt: Please enter target SAP System ID (SID)
#      private: no

  vars_prompt:
    - name: sapcontrol_function
      prompt: "Choose valid sap_control_function parameter"
      private: no
  
  vars:
    sap_control_function: "{{ sapcontrol_function }}"

  tasks:

  - name: "Execute {{ sap_control_function }}"
    ansible.builtin.include_role:
      name: { role: community.sap_operations.sap_control }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant