mirror of
https://github.com/linux-system-roles/network.git
synced 2026-07-21 02:11:23 +00:00
bz#2044640
The network role create an ifcfg file for initscripts. The file
used to append a comment "# this file was created by ansible".
This patch replaces the proprietary string with the ansible
standard {{ ansible_managed }} to adjust to the other system
roles.
For the implementation, it borrowed the method from kernel_settings,
getting the ansible managed comment using the get_ansible_managed.j2
template and pass the comment to network_connections which is added
to the ifcfg file.
In case network_provider is nm, the comment is not added to the
ifcfg file as the file is not managed by Ansible.
Note: the required parameter name to pass the ansible managed comment
to the network_connection module is "__header".
Do not use get_ansible_managed.j2 in the test scripts, but use a
hardcoded ansible managed comment to simplify the tests.
tests/tasks/get_profile_stat.yml: replace the '=' style with the YAML
notation in set_fact.
Signed-off-by: Noriko Hosoi <nhosoi@redhat.com>
|
||
|---|---|---|
| .. | ||
| provider | ||
| activate_profile.yml | ||
| assert_device_absent.yml | ||
| assert_device_present.yml | ||
| assert_output_in_stderr_without_warnings.yml | ||
| assert_profile_absent.yml | ||
| assert_profile_present.yml | ||
| cleanup_802_1x_server.yml | ||
| cleanup_mock_wifi.yml | ||
| cleanup_profile+device.yml | ||
| create_and_remove_interface.yml | ||
| create_bridge_profile.yml | ||
| create_bridge_profile_no_autoconnect.yml | ||
| create_dummy_profile.yml | ||
| create_team_profile.yml | ||
| create_test_interfaces_with_dhcp.yml | ||
| delete_interface.yml | ||
| el_repo_setup.yml | ||
| enable_epel.yml | ||
| get_current_interfaces.yml | ||
| get_interface_stat.yml | ||
| get_modules_and_utils_paths.yml | ||
| get_NetworkManager_NVR.yml | ||
| get_profile_stat.yml | ||
| manage_test_interface.yml | ||
| remove+down_profile.yml | ||
| remove_profile.yml | ||
| remove_test_interfaces_with_dhcp.yml | ||
| run_test.yml | ||
| setup_802.1x.yml | ||
| setup_802_1x_server.yml | ||
| setup_mock_wifi.yml | ||
| setup_mock_wifi_wpa3_owe.yml | ||
| setup_mock_wifi_wpa3_sae.yml | ||
| setup_test_interface.yml | ||
| show_interfaces.yml | ||
| start_mock_wifi.yml | ||
| test_802.1x_capath.yml | ||