Start a Conversation

Solved!

Go to Solution

1 Rookie

 • 

89 Posts

1279

February 17th, 2023 05:00

Ansible - Powerscale

Is there is a powerscale ansible module to run a powerscale CLI command? Pass the powerscale CLI command as an argument and get ansible to run it?

1 Rookie

 • 

79 Posts

February 23rd, 2023 08:00

Hi @Apex_Ops 

We will work on adding support for listing the ntp servers in the upcoming releases.

Meanwhile, we can use the ansible uri module by directly specifying the rest api url to retrieve the ntp details. Attaching below sample code for the same. 

 

---
- hosts : localhost

  vars :
    onefs_ip : 10.*.*.*
    port : 8080
    username : * *
    password : * *

  tasks :
    - name : Get list of configured ntp servers
      uri :
        user : "{ {username}}"
        password : "{ {password}}"
        force_basic_auth : True
        method : GET
        headers :
          Content-Type : 'application/json'
        validate_certs : no

1 Rookie

 • 

79 Posts

February 17th, 2023 08:00

Hi @Apex_Ops,

No, but the CLI command functionalities can be achieved by invoking the powerscale ansible modules through playbooks. Is there any functionality in particular that you are looking for?

Thanks,

Jennifer.

1 Rookie

 • 

89 Posts

February 23rd, 2023 00:00

Hi @jennifer_john 

Thanks for your reply.

I just want to list the configured NTP servers from a Powerscale.

Ronan

No Events found!

Top