cohesity / ansible-collection

This repository provides an Ansible collection and related modules for Cohesity DataPlatform.
GNU General Public License v3.0
3 stars 6 forks source link

Feature: Start/Stop sql protection jobs #51

Open MrEuds opened 3 months ago

MrEuds commented 3 months ago

🚀 Feature Request

Starting or stopping SQL protection jobs with the cohesity_job module.

Reference in cohesity_job

Currently, the only supported environments types are list in the choices: "VMware", "PhysicalFiles", "Physical", "GenericNas", "View"

For future enhancements, the below list should be consulted (like SQL).

Example or reference


- name: Start sql backup job
  cohesity.dataprotect.cohesity_job:
    cluster: "{{ cluster }}"
    username: "{{ username }}"
    password: "{{ password }}"
    state: started/stopped
    name: sql_server
    environment: SQL
    ondemand_run_type: Regular
    include:
      - {{ db_name/db_id }}]
darthVikes commented 2 months ago

Same enhancement request, but also add "Oracle" to the list as well.

Error when specifying Oracle as above.

fatal: [localhost]: FAILED! => {"changed": false, "msg": "value of environment must be one of: VMware, PhysicalFiles, Physical, GenericNas, View, got: Oracle"}

Is there a current workaround if its "Oracle" and I need to specify something different or will that also not work currently?