Compare commits
No commits in common. "928b62ac3bce60eb3671e9672a00f509266733a0" and "21f4cbcbc3aaba527b50d5882240ac5fa4b78d27" have entirely different histories.
928b62ac3b
...
21f4cbcbc3
2 changed files with 678 additions and 687 deletions
1362
inventory.yml
1362
inventory.yml
File diff suppressed because it is too large
Load diff
|
|
@ -52,11 +52,10 @@
|
|||
|
||||
- name: Append teacherPC to exam_destination_allowed_ipv4 addresses
|
||||
ansible.builtin.set_fact:
|
||||
exam_destination_allowed_ipv4: "{{ exam_destination_allowed_ipv4 + (exam_teacherpc_ips | default([ ansible_default_ipv4.address.rsplit('.', 1)[0] ~ '.' ~ 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
|
||||
- exam_teacherpc_ips is defined or exam_teacherpc_last_digit | default('') | string | length > 0
|
||||
|
||||
- name: Install no-way-out-policy
|
||||
ansible.builtin.template:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue