mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-10-24 04:54:00 -07:00
Export SSH port number as host variable.
This commit is contained in:
parent
f04041b37d
commit
54f4526160
2 changed files with 20 additions and 0 deletions
|
|
@ -82,6 +82,12 @@ class TestInventory(unittest.TestCase):
|
|||
|
||||
assert vars == {}
|
||||
|
||||
def test_simple_port(self):
|
||||
inventory = self.simple_inventory()
|
||||
vars = inventory.get_variables('hera')
|
||||
|
||||
assert vars == {'ansible_ssh_port': 3000}
|
||||
|
||||
### Inventory API tests
|
||||
|
||||
def test_script(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue