Project

General

Profile

Actions

Bug #697

closed

Fix "Found variable using reserved name: port" (ansible-role-ssh role)

Added by Pierre-Louis Bonicoli about 4 years ago. Updated almost 4 years ago.

Status:
Resolved
Priority:
Normal
Category:
-
Start date:
2020-05-07
Due date:
% Done:

0%

Estimated time:
Patch Available:
Confirmed:
No
Branch:
dont_use_reserved_name_port
Entity:
DuckCorp
Security:
Help Needed:

Description

ansible-role-ssh: Don't use reserved name 'port'

Fix this warning:

[WARNING]: Found variable using reserved name: port

Once merged the following patch will be required on the main repository:

--- a/ansible/roles/dc-base/tasks/main.yml
+++ b/ansible/roles/dc-base/tasks/main.yml
@@ -52,7 +52,7 @@
   import_role:
     name: ssh
   vars:
-    port: "{{ ssh.port }}" 
+    sshd_port: "{{ ssh.port }}" 
     listen_addresses: "{{ ssh.listen_addresses }}" 
     # for GuiHome streaming
     enable_gatewayports: "{{ inventory_hostname == 'Toushirou' }}" 

Actions

Also available in: Atom PDF