dell / ansible-powerstore

Ansible Modules for Dell PowerStore
GNU General Public License v3.0
31 stars 24 forks source link

[QUESTION]: Is there a module to set the MOTD Message/Security Banner? #45

Open amlucent opened 7 months ago

amlucent commented 7 months ago

How can the Team help you today?

Is there a module to set the MOTD Message/Security Banner? I am not seeing an included ansible module method.

anupamaloke commented 6 months ago

@amlucent, it is currently on our backlog and will be delivered in future release. For now, one option would be to use the ansible.builtin.uri module to make a direct REST API call:

  1. GET the login banner details (https://developer.dell.com/apis/3898/versions/3.6.0/reference/openapi.json/paths/~1login_banner/get)
  2. Use the banner ID returned in the response to step1 to PATCH the login banner - https://developer.dell.com/apis/3898/versions/3.6.0/reference/openapi.json/paths/~1login_banner~1%7Bid%7D/patch