📙 Playbook: Change Admin Password

- name: Your Company - HCOS Admin Password Change
  hosts: all
  connection: ansible.builtin.local
  gather_facts: false

  environment:  # if set here - hypercore modules will automatically use this for each remote cluster - avoiding need to specify cluster_instance for each test
    SC_HOST: "https://{{ ansible_host }}"
    SC_USERNAME: "{{ scale_admin_user }}"
    SC_PASSWORD: "{{ scale_admin_pass }}"

  tasks:

  - name: Update Admin Password
    scale_computing.hypercore.user:
      state: present
      username: admin
      password: YourNewAdminPassword!!
      full_name: Administrator
      roles:
        - Admin
      session_limit: 0