<commit_before>---
# Do some stuff on eseries array


- name: Disk_Pool_SSD
  netapp_e_storagepool:
    ssid: "{{ ssid }}"
    api_url: "{{ api_url }}"
    api_username: "{{ api_username }}"
    api_password: "{{ <PASSWORD> }}"
    criteria_drive_count: 24
    criteria_drive_type: ssd
    name: Disk_Pool_SSD1
    raid_level: raidDiskPool
    state: present
    validate_certs: "{{ validate_certs }}"

- name: Volume1
  netapp_e_volume:
    ssid: "{{ ssid }}"
    api_url: "{{ api_url }}"
    api_username: "{{ api_username }}"
    api_password: "{{ <PASSWORD> }}"
    validate_certs: "{{ validate_certs }}"
    name: Volume1
    state: present
    storage_pool_name: Disk_Pool_SSD1
    size: 2185
    size_unit: gb

- name: Volume2
  netapp_e_volume:
    ssid: "{{ ssid }}"
    api_url: "{{ api_url }}"
    api_username: "{{ api_username }}"
    api_password: "{{ <PASSWORD> }}"
    validate_certs: "{{ validate_certs }}"
    name: Volume2
    state: present
    storage_pool_name: Disk_Pool_SSD1
    size: 2185
    size_unit: gb

- name: Volume3
  netapp_e_volume:
    ssid: "{{ ssid }}"
    api_url: "{{ api_url }}"
    api_username: "{{ api_username }}"
    api_password: "{{ <PASSWORD> }}"
    validate_certs: "{{ validate_certs }}"
    name: Volume3
    state: present
    storage_pool_name: Disk_Pool_SSD1
    size: 2185
    size_unit: gb

- debug: var=hostvars[inventory_hostname]['fc_ports']

- name: Host Ports
  netapp_e_host:
    ssid: "{{ ssid }}"
    api_url: "{{ api_url }}"
    api_username: "{{ api_username }}"
    api_password: "{{ <PASSWORD> }}"
    validate_certs: "{{ validate_certs }}"
    host_type_index: 28
    name: host1
    state: present
    ports: 
      asdf: 1
      #hostvars[inventory_hostname]['fc_ports'][0]

- name: Map Volumes
  netapp_e_lun_mapping:
    ssid: "{{ ssid }}"
    api_url: "{{ api_url }}"
    api_username: "{{ api_username }}"
    api_password: "{{ <PASSWORD> }}"
    validate_certs: "{{ validate_certs }}"
    state: present
    target: host1
    target_type: host
    volume_name: Volume1
<commit_msg>Made some progress on creating hosts and assigning host ports.<commit_after>---
# Do some stuff on eseries array


- name: Disk_Pool_SSD
  netapp_e_storagepool:
    ssid: "{{ ssid }}"
    api_url: "{{ api_url }}"
    api_username: "{{ api_username }}"
    api_password: "{{ <PASSWORD> }}"
    criteria_drive_count: 24
    criteria_drive_type: ssd
    name: Disk_Pool_SSD1
    raid_level: raidDiskPool
    state: present
    validate_certs: "{{ validate_certs }}"

- name: Volume1
  netapp_e_volume:
    ssid: "{{ ssid }}"
    api_url: "{{ api_url }}"
    api_username: "{{ api_username }}"
    api_password: "{{ <PASSWORD> }}"
    validate_certs: "{{ validate_certs }}"
    name: Volume1
    state: present
    storage_pool_name: Disk_Pool_SSD1
    size: 2185
    size_unit: gb

- name: Volume2
  netapp_e_volume:
    ssid: "{{ ssid }}"
    api_url: "{{ api_url }}"
    api_username: "{{ api_username }}"
    api_password: "{{ <PASSWORD> }}"
    validate_certs: "{{ validate_certs }}"
    name: Volume2
    state: present
    storage_pool_name: Disk_Pool_SSD1
    size: 2185
    size_unit: gb

- name: Volume3
  netapp_e_volume:
    ssid: "{{ ssid }}"
    api_url: "{{ api_url }}"
    api_username: "{{ api_username }}"
    api_password: "{{ <PASSWORD> }}"
    validate_certs: "{{ validate_certs }}"
    name: Volume3
    state: present
    storage_pool_name: Disk_Pool_SSD1
    size: 2185
    size_unit: gb

- name: Host Ports
  netapp_e_host:
    ssid: "{{ ssid }}"
    api_url: "{{ api_url }}"
    api_username: "{{ api_username }}"
    api_password: "{{ <PASSWORD> }}"
    validate_certs: "{{ validate_certs }}"
    host_type_index: 28
    name: "{{ item}}"
    state: present
    ports: 
      "{{ hostvars[item]['fc_ports'] }}"
  with_inventory_hostnames:
    - fc_hosts


#- name: Map Volumes
#  netapp_e_lun_mapping:
#    ssid: "{{ ssid }}"
#    api_url: "{{ api_url }}"
#    api_username: "{{ api_username }}"
#    api_password: "{{ <PASSWORD> }}"
#    validate_certs: "{{ validate_certs }}"
#    state: present
#    target: host1
#    target_type: host
#    volume_name: Volume1

{'fraction_non_alphanumeric': 0.14492404147576562, 'fraction_numerical': 0.01422715215818664, 'mean_word_length': 3.181451612903226, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3802090', 'n_tokens_mistral': 1613, 'n_tokens_neox': 1574, 'n_words': 301}