Apex_Ops

updated

4 years ago

A

Apex_Ops

1 Rookie

•

90 Posts

0

1833

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?

  • jennifer_john

    1 Rookie

    •

    79 Posts

    1056

    1

    Posted 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
  • jennifer_john

    1 Rookie

    •

    79 Posts

    1141

    0

    Posted 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.

  • Apex_Ops

    1 Rookie

    •

    90 Posts

    1069

    0

    Posted 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