serverctl/infrastructure/create-resources/ansible/roles/prereq/tasks/main.yml
kjuulh d74cdfa143
All checks were successful
continuous-integration/drone/push Build is passing
destroy all
2022-02-19 22:01:46 +01:00

19 lines
403 B
YAML

---
- name: Enable IPv4 forwarding
sysctl:
name: net.ipv4.ip_forward
value: "1"
state: present
reload: yes
- name: Enable IPv6 forwarding
sysctl:
name: net.ipv6.conf.all.forwarding
value: "1"
state: present
reload: yes
when: ansible_all_ipv6_addresses
- name: Wait for apt to unlock
shell: while sudo fuser /var/lib/dpkg/lock >/dev/null >2&1; do sleep 5; done;