From 19476e7c6d0f949386e37aa3c1ba9c1aa330b6b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benoit=20Ferr=C3=A9?= Date: Tue, 1 Jul 2025 18:03:40 +0200 Subject: [PATCH 1/4] Fix Duplicate task name --- docs/plugins/netbox_device_type_module.rst | 2 +- docs/plugins/netbox_platform_module.rst | 2 +- docs/plugins/netbox_prefix_module.rst | 2 +- plugins/modules/netbox_device_type.py | 2 +- plugins/modules/netbox_platform.py | 2 +- plugins/modules/netbox_prefix.py | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/plugins/netbox_device_type_module.rst b/docs/plugins/netbox_device_type_module.rst index 04ea01554..3426ca0e2 100644 --- a/docs/plugins/netbox_device_type_module.rst +++ b/docs/plugins/netbox_device_type_module.rst @@ -1076,7 +1076,7 @@ Examples manufacturer: Test Manufacturer state: present - - name: Create device type within NetBox with only required information + - name: Create device type within NetBox with more information netbox.netbox.netbox_device_type: netbox_url: http://netbox.local netbox_token: thisIsMyToken diff --git a/docs/plugins/netbox_platform_module.rst b/docs/plugins/netbox_platform_module.rst index e4fe416d3..0879802a4 100644 --- a/docs/plugins/netbox_platform_module.rst +++ b/docs/plugins/netbox_platform_module.rst @@ -782,7 +782,7 @@ Examples config_template: "my_config_template_slug" state: present - - name: Create platform within NetBox with only required information + - name: Create platform within NetBox with more information netbox.netbox.netbox_platform: netbox_url: http://netbox.local netbox_token: thisIsMyToken diff --git a/docs/plugins/netbox_prefix_module.rst b/docs/plugins/netbox_prefix_module.rst index 97ea0bb65..b904a1bff 100644 --- a/docs/plugins/netbox_prefix_module.rst +++ b/docs/plugins/netbox_prefix_module.rst @@ -1216,7 +1216,7 @@ Examples gather_facts: false tasks: - - name: Create prefix within NetBox with only required information + - name: Create prefix within NetBox with only required information before deleting it netbox.netbox.netbox_prefix: netbox_url: http://netbox.local netbox_token: thisIsMyToken diff --git a/plugins/modules/netbox_device_type.py b/plugins/modules/netbox_device_type.py index 65c82e6ef..b23d80c8e 100644 --- a/plugins/modules/netbox_device_type.py +++ b/plugins/modules/netbox_device_type.py @@ -150,7 +150,7 @@ manufacturer: Test Manufacturer state: present - - name: Create device type within NetBox with only required information + - name: Create device type within NetBox with more information netbox.netbox.netbox_device_type: netbox_url: http://netbox.local netbox_token: thisIsMyToken diff --git a/plugins/modules/netbox_platform.py b/plugins/modules/netbox_platform.py index 61e37d6b6..26b82fef4 100644 --- a/plugins/modules/netbox_platform.py +++ b/plugins/modules/netbox_platform.py @@ -106,7 +106,7 @@ config_template: "my_config_template_slug" state: present - - name: Create platform within NetBox with only required information + - name: Create platform within NetBox with more information netbox.netbox.netbox_platform: netbox_url: http://netbox.local netbox_token: thisIsMyToken diff --git a/plugins/modules/netbox_prefix.py b/plugins/modules/netbox_prefix.py index f6135381c..901fe89ec 100644 --- a/plugins/modules/netbox_prefix.py +++ b/plugins/modules/netbox_prefix.py @@ -153,7 +153,7 @@ gather_facts: false tasks: - - name: Create prefix within NetBox with only required information + - name: Create prefix within NetBox with only required information before deleting it netbox.netbox.netbox_prefix: netbox_url: http://netbox.local netbox_token: thisIsMyToken From 6568048eadccbfacbe6cbf464f70e8b69078cf14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benoit=20Ferr=C3=A9?= Date: Tue, 1 Jul 2025 18:10:56 +0200 Subject: [PATCH 2/4] Add changelog --- changelogs/fragments/1435-fix-duplicate-task-name.yml | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 changelogs/fragments/1435-fix-duplicate-task-name.yml diff --git a/changelogs/fragments/1435-fix-duplicate-task-name.yml b/changelogs/fragments/1435-fix-duplicate-task-name.yml new file mode 100644 index 000000000..93a136d49 --- /dev/null +++ b/changelogs/fragments/1435-fix-duplicate-task-name.yml @@ -0,0 +1,2 @@ +bugfixes: + - Fix task duplicate task name in documentation that cause ansible-lint error \ No newline at end of file From 44430880f97d4f130123adfe2d1603610310e3c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benoit=20Ferr=C3=A9?= Date: Tue, 1 Jul 2025 18:13:22 +0200 Subject: [PATCH 3/4] Fix changelog file --- changelogs/fragments/1435-fix-duplicate-task-name.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/changelogs/fragments/1435-fix-duplicate-task-name.yml b/changelogs/fragments/1435-fix-duplicate-task-name.yml index 93a136d49..6905a0783 100644 --- a/changelogs/fragments/1435-fix-duplicate-task-name.yml +++ b/changelogs/fragments/1435-fix-duplicate-task-name.yml @@ -1,2 +1,3 @@ bugfixes: - - Fix task duplicate task name in documentation that cause ansible-lint error \ No newline at end of file + - Fix task duplicate task name in documentation that cause ansible-lint error + \ No newline at end of file From d94dac74eedcc4049680a3cc4ef03e2b5d49472f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benoit=20Ferr=C3=A9?= Date: Tue, 1 Jul 2025 18:19:08 +0200 Subject: [PATCH 4/4] Remove trailing space in changelog --- changelogs/fragments/1435-fix-duplicate-task-name.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/changelogs/fragments/1435-fix-duplicate-task-name.yml b/changelogs/fragments/1435-fix-duplicate-task-name.yml index 6905a0783..b70c1ac5f 100644 --- a/changelogs/fragments/1435-fix-duplicate-task-name.yml +++ b/changelogs/fragments/1435-fix-duplicate-task-name.yml @@ -1,3 +1,2 @@ bugfixes: - Fix task duplicate task name in documentation that cause ansible-lint error - \ No newline at end of file