2021-05-28 05:03:53 +00:00
|
|
|
- name: Install package networkd-dispatcher (OS's other than RaspiOS)
|
2020-12-08 10:20:42 +00:00
|
|
|
package:
|
|
|
|
name: networkd-dispatcher
|
|
|
|
state: present
|
|
|
|
when: not is_raspbian
|
|
|
|
|
2021-04-27 23:48:03 +00:00
|
|
|
# used in the network role
|
2021-05-28 05:03:53 +00:00
|
|
|
- name: 'Install network packages: hostapd, iproute2, iptables-persistent, netmask (debuntu)'
|
2018-02-13 02:42:21 +00:00
|
|
|
package:
|
2021-04-27 23:48:03 +00:00
|
|
|
name:
|
|
|
|
- iproute2
|
|
|
|
- iptables-persistent
|
|
|
|
- hostapd
|
|
|
|
- netmask
|
2018-02-13 02:42:21 +00:00
|
|
|
state: present
|
2020-10-16 20:46:19 +00:00
|
|
|
when: is_debuntu
|
2017-05-27 18:09:50 +00:00
|
|
|
|
2021-05-28 05:03:53 +00:00
|
|
|
- name: Install /etc/network/if-pre-up.d/iptables from template (0755, debuntu)
|
2018-02-13 02:42:21 +00:00
|
|
|
template:
|
|
|
|
src: iptables
|
2018-10-31 01:50:07 +00:00
|
|
|
dest: /etc/network/if-pre-up.d/iptables
|
2020-01-14 01:41:03 +00:00
|
|
|
mode: '0755'
|
2020-10-16 20:46:19 +00:00
|
|
|
when: is_debuntu
|