Correct the determination of the teacher's PC's IP address (a75934c)
This commit is contained in:
parent
60b585f306
commit
a008ef0506
1 changed files with 1 additions and 1 deletions
|
|
@ -52,7 +52,7 @@
|
|||
|
||||
- name: Append teacherPC to exam_destination_allowed_ipv4 addresses
|
||||
ansible.builtin.set_fact:
|
||||
exam_destination_allowed_ipv4: "{{ exam_destination_allowed_ipv4 + [ ansible_default_ipv4.address[:-1] ~ exam_teacherpc_last_digit ] }}"
|
||||
exam_destination_allowed_ipv4: "{{ exam_destination_allowed_ipv4 + [ ansible_default_ipv4.address.rsplit('.', 1)[0] ~ '.' ~ exam_teacherpc_last_digit ] }}"
|
||||
when:
|
||||
- exam_destination_allowed_ipv4 is defined
|
||||
- exam_destination_allowed_ipv4 | length > 0
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue