Skip to content

Commit

Permalink
updated ssh port validation logic in ansible playbook for molecule in…
Browse files Browse the repository at this point in the history
…stances creation
  • Loading branch information
andreygubarev committed Feb 21, 2024
1 parent bbc9d16 commit 4b7783e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion molecule_qemu/playbooks/create.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@
when: qemu_network_mode == 'user'
ansible.builtin.assert:
that:
- molecule_instances | map(attribute='network_ssh_port') | list | unique | length == molecule_instances | length
- molecule_instances | map(attribute='network_ssh_port') | list | reject('eq', '0') | unique | length == molecule_instances | map(attribute='network_ssh_port') | list | reject('eq', '0') | length
fail_msg: "Molecule instances SSH are not properly configured for 'user' network"
success_msg: "Molecule instances SSH are properly configured for 'user' network"

Expand Down

0 comments on commit 4b7783e

Please sign in to comment.