---
  - name: Make sure there are no existing SNMP configuration settings
    ansible.windows.win_regedit:
      path: "{{ item }}"
      state: absent
    loop:
      - "{{ permitted_managers_key }}"
      - "{{ valid_communities_key }}"

  - name: Create skeleton registry keys for SNMP
    ansible.windows.win_regedit:
      path: "{{ item }}"
      state: present
    loop:
      - "{{ permitted_managers_key }}"
      - "{{ valid_communities_key }}"
