List of RF profile configurations.
The network ID.
The state of the resource.
A template task showing all available parameters with their defaults or example values.
- name: Meraki Wireless Rf Profiles task cisco.meraki_rm.meraki_wireless_rf_profiles: network_id: "192.168.1.0/24" config: - band_selection_type: "band_selection_type_value" client_balancing_enabled: true five_ghz_settings: {} is_indoor_default: true is_outdoor_default: true name: "example_name" rf_profile_id: "rf_profile_id_value" six_ghz_settings: {} transmission: {} two_four_ghz_settings: {} state: merged
- name: Meraki Wireless Rf Profiles task cisco.meraki_rm.meraki_wireless_rf_profiles: network_id: "192.168.1.0/24" config: # optional - band_selection_type: "band_selection_type_value" # optional client_balancing_enabled: true # optional five_ghz_settings: {} # optional is_indoor_default: true # optional is_outdoor_default: true # optional name: "example_name" # optional rf_profile_id: "rf_profile_id_value" # optional six_ghz_settings: {} # optional transmission: {} # optional two_four_ghz_settings: {} # optional state: merged # optional
- name: Meraki Wireless Rf Profiles task cisco.meraki_rm.meraki_wireless_rf_profiles: network_id: "192.168.1.0/24" # (str, required) The network ID. config: # (list, optional) List of RF profile configurations. - band_selection_type: "band_selection_type_value" # (str, optional) Band selection (ssid or ap). client_balancing_enabled: true # (bool, optional) Steer clients to best available AP. five_ghz_settings: {} # (dict, optional) 5 GHz band settings. is_indoor_default: true # (bool, optional) Set as default indoor profile. is_outdoor_default: true # (bool, optional) Set as default outdoor profile. name: "example_name" # (str, optional) Name of the RF profile. Must be unique. rf_profile_id: "rf_profile_id_value" # (str, optional) Server-assigned ID, resolved automatically by matching on... six_ghz_settings: {} # (dict, optional) 6 GHz band settings. transmission: {} # (dict, optional) Radio transmission settings. two_four_ghz_settings: {} # (dict, optional) 2.4 GHz band settings. state: merged # (str, optional) The state of the resource.
name — identifies the resource in playbooks.rf_profile_id — server-assigned, resolved automatically from gathered state.rf_profile_id unless disambiguating duplicate names.- name: Define expected configuration ansible.builtin.set_fact: expected_config: name: Test-Config band_selection_type: ssid client_balancing_enabled: true
- name: Create wireless_rf_profiles with merged state cisco.meraki_rm.meraki_wireless_rf_profiles: network_id: "N_123456789012345678" state: merged config: - "{{ expected_config }}" register: merge_result
- name: Assert resource was created ansible.builtin.assert: that: - merge_result is changed - merge_result.config | length == 1
- name: Compare expected paths to result (subset check) ansible.builtin.set_fact: path_check: "{{ expected_paths | cisco.meraki_rm.path_contained_in(result_paths) }}" vars: expected_paths: "{{ expected_config | ansible.utils.to_paths }}" result_paths: "{{ merge_result.config[0] | ansible.utils.to_paths }}"
- name: Assert all expected fields are present and match ansible.builtin.assert: that: path_check.contained | bool success_msg: "{{ success_msg }}" fail_msg: "{{ fail_msg }}" vars: success_msg: "All expected fields match. Extras: {{ path_check.extras }}" fail_msg: "Missing or mismatch: {{ path_check.missing }}. Extras: {{ path_check.extras }}"
- name: Define replacement configuration ansible.builtin.set_fact: expected_config: name: Test-Config band_selection_type: ssid client_balancing_enabled: true
- name: Replace wireless_rf_profiles configuration cisco.meraki_rm.meraki_wireless_rf_profiles: network_id: "N_123456789012345678" state: replaced config: - "{{ expected_config }}" register: replace_result
- name: Assert resource was replaced ansible.builtin.assert: that: - replace_result is changed - replace_result.config | length == 1
- name: Compare expected paths to result (subset check) ansible.builtin.set_fact: path_check: "{{ expected_paths | cisco.meraki_rm.path_contained_in(result_paths) }}" vars: expected_paths: "{{ expected_config | ansible.utils.to_paths }}" result_paths: "{{ replace_result.config[0] | ansible.utils.to_paths }}"
- name: Assert all expected fields are present and match ansible.builtin.assert: that: path_check.contained | bool success_msg: "{{ success_msg }}" fail_msg: "{{ fail_msg }}" vars: success_msg: "All expected fields match. Extras: {{ path_check.extras }}" fail_msg: "Missing or mismatch: {{ path_check.missing }}. Extras: {{ path_check.extras }}"
- name: Define desired-state configuration ansible.builtin.set_fact: expected_config: name: Test-Config band_selection_type: ssid client_balancing_enabled: true
- name: Override all wireless_rf_profiles — desired state only cisco.meraki_rm.meraki_wireless_rf_profiles: network_id: "N_123456789012345678" state: overridden config: - "{{ expected_config }}" register: override_result
- name: Assert resources were overridden ansible.builtin.assert: that: - override_result is changed - override_result.config | length == 1
- name: Compare expected paths to result (subset check) ansible.builtin.set_fact: path_check: "{{ expected_paths | cisco.meraki_rm.path_contained_in(result_paths) }}" vars: expected_paths: "{{ expected_config | ansible.utils.to_paths }}" result_paths: "{{ override_result.config[0] | ansible.utils.to_paths }}"
- name: Assert all expected fields are present and match ansible.builtin.assert: that: path_check.contained | bool success_msg: "{{ success_msg }}" fail_msg: "{{ fail_msg }}" vars: success_msg: "All expected fields match. Extras: {{ path_check.extras }}" fail_msg: "Missing or mismatch: {{ path_check.missing }}. Extras: {{ path_check.extras }}"
- name: Gather current wireless_rf_profiles configuration cisco.meraki_rm.meraki_wireless_rf_profiles: network_id: "N_123456789012345678" state: gathered register: gathered
- name: Assert gathered config is not empty ansible.builtin.assert: that: - gathered.config is defined - gathered.config | length > 0 fail_msg: "Gathered config is empty — expected at least one resource"
- name: Display gathered configuration ansible.builtin.debug: var: gathered.config
- name: Define resource to delete ansible.builtin.set_fact: expected_config: name: Test-Config
- name: Delete wireless_rf_profiles configuration cisco.meraki_rm.meraki_wireless_rf_profiles: network_id: "N_123456789012345678" state: deleted config: - "{{ expected_config }}" register: delete_result
- name: Assert resource was deleted ansible.builtin.assert: that: - delete_result is changed - delete_result is not failed
--- # Manage Meraki wireless RF profiles — create or update - name: Define expected configuration ansible.builtin.set_fact: expected_config: name: Test-Config band_selection_type: ssid client_balancing_enabled: true - name: Create wireless_rf_profiles with merged state cisco.meraki_rm.meraki_wireless_rf_profiles: network_id: "N_123456789012345678" state: merged config: - "{{ expected_config }}" register: merge_result - name: Assert resource was created ansible.builtin.assert: that: - merge_result is changed - merge_result.config | length == 1 - name: Compare expected paths to result (subset check) ansible.builtin.set_fact: path_check: "{{ expected_paths | cisco.meraki_rm.path_contained_in(result_paths) }}" vars: expected_paths: "{{ expected_config | ansible.utils.to_paths }}" result_paths: "{{ merge_result.config[0] | ansible.utils.to_paths }}" - name: Assert all expected fields are present and match ansible.builtin.assert: that: path_check.contained | bool success_msg: "{{ success_msg }}" fail_msg: "{{ fail_msg }}" vars: success_msg: "All expected fields match. Extras: {{ path_check.extras }}" fail_msg: "Missing or mismatch: {{ path_check.missing }}. Extras: {{ path_check.extras }}" # Manage Meraki wireless RF profiles — full resource replacement - name: Define replacement configuration ansible.builtin.set_fact: expected_config: name: Test-Config band_selection_type: ssid client_balancing_enabled: true - name: Replace wireless_rf_profiles configuration cisco.meraki_rm.meraki_wireless_rf_profiles: network_id: "N_123456789012345678" state: replaced config: - "{{ expected_config }}" register: replace_result - name: Assert resource was replaced ansible.builtin.assert: that: - replace_result is changed - replace_result.config | length == 1 - name: Compare expected paths to result (subset check) ansible.builtin.set_fact: path_check: "{{ expected_paths | cisco.meraki_rm.path_contained_in(result_paths) }}" vars: expected_paths: "{{ expected_config | ansible.utils.to_paths }}" result_paths: "{{ replace_result.config[0] | ansible.utils.to_paths }}" - name: Assert all expected fields are present and match ansible.builtin.assert: that: path_check.contained | bool success_msg: "{{ success_msg }}" fail_msg: "{{ fail_msg }}" vars: success_msg: "All expected fields match. Extras: {{ path_check.extras }}" fail_msg: "Missing or mismatch: {{ path_check.missing }}. Extras: {{ path_check.extras }}" # Manage Meraki wireless RF profiles — override all instances # Ensures ONLY these resources exist; any not listed are deleted. - name: Define desired-state configuration ansible.builtin.set_fact: expected_config: name: Test-Config band_selection_type: ssid client_balancing_enabled: true - name: Override all wireless_rf_profiles — desired state only cisco.meraki_rm.meraki_wireless_rf_profiles: network_id: "N_123456789012345678" state: overridden config: - "{{ expected_config }}" register: override_result - name: Assert resources were overridden ansible.builtin.assert: that: - override_result is changed - override_result.config | length == 1 - name: Compare expected paths to result (subset check) ansible.builtin.set_fact: path_check: "{{ expected_paths | cisco.meraki_rm.path_contained_in(result_paths) }}" vars: expected_paths: "{{ expected_config | ansible.utils.to_paths }}" result_paths: "{{ override_result.config[0] | ansible.utils.to_paths }}" - name: Assert all expected fields are present and match ansible.builtin.assert: that: path_check.contained | bool success_msg: "{{ success_msg }}" fail_msg: "{{ fail_msg }}" vars: success_msg: "All expected fields match. Extras: {{ path_check.extras }}" fail_msg: "Missing or mismatch: {{ path_check.missing }}. Extras: {{ path_check.extras }}" # Manage Meraki wireless RF profiles — gather current configuration - name: Gather current wireless_rf_profiles configuration cisco.meraki_rm.meraki_wireless_rf_profiles: network_id: "N_123456789012345678" state: gathered register: gathered - name: Assert gathered config is not empty ansible.builtin.assert: that: - gathered.config is defined - gathered.config | length > 0 fail_msg: "Gathered config is empty — expected at least one resource" - name: Display gathered configuration ansible.builtin.debug: var: gathered.config # Manage Meraki wireless RF profiles — remove configuration - name: Define resource to delete ansible.builtin.set_fact: expected_config: name: Test-Config - name: Delete wireless_rf_profiles configuration cisco.meraki_rm.meraki_wireless_rf_profiles: network_id: "N_123456789012345678" state: deleted config: - "{{ expected_config }}" register: delete_result - name: Assert resource was deleted ansible.builtin.assert: that: - delete_result is changed - delete_result is not failed