removed dhcpcd5 because of problems with raspberry-pi os packages: pi-bluetooth piwiz raspberrypi-sys-mods raspberrypi-ui-mods rpd-plym-splash userconf-pi
This commit is contained in:
parent
f16624e3e9
commit
1beee4e23a
25
basics.yml
25
basics.yml
@ -135,22 +135,35 @@
|
|||||||
# filename: testing
|
# filename: testing
|
||||||
# when: ansible_distribution_release is match("bookworm")
|
# when: ansible_distribution_release is match("bookworm")
|
||||||
|
|
||||||
- name: check if this is a mint system
|
- name: check if this is a Mint system
|
||||||
stat:
|
stat:
|
||||||
path: /etc/linuxmint/mintSystem.conf
|
path: /etc/linuxmint/mintSystem.conf
|
||||||
register: mint
|
register: mintpios
|
||||||
|
|
||||||
- name: add dhcpcd to startup
|
- name: check if we are in a RaspberryPiOS
|
||||||
|
stat:
|
||||||
|
path: /usr/bin/wayfire-pi
|
||||||
|
register: mintpios
|
||||||
|
|
||||||
|
- name: Install Basic Packages if not running in container/mint or PiOS
|
||||||
|
apt:
|
||||||
|
name:
|
||||||
|
- dhcpcd5
|
||||||
|
update_cache: yes
|
||||||
|
install_recommends: no
|
||||||
|
when: (nocontainer.stat.exists == true) and (mintpios.stat.exists == false)
|
||||||
|
|
||||||
|
- name: add dhcpcd to startup if not running in container/mint or PiOS
|
||||||
command: systemctl enable dhcpcd
|
command: systemctl enable dhcpcd
|
||||||
args:
|
args:
|
||||||
creates: /etc/systemd/system/multi-user.target.wants/dhcpcd.service
|
creates: /etc/systemd/system/multi-user.target.wants/dhcpcd.service
|
||||||
when: (nocontainer.stat.exists == true) and (mint.stat.exists == false)
|
when: (nocontainer.stat.exists == true) and (mintpios.stat.exists == false)
|
||||||
|
|
||||||
- name: No DHCPcd for internal interfaces
|
- name: No DHCPcd for internal interfaces if not running in container/mint or PiOS
|
||||||
ansible.builtin.lineinfile:
|
ansible.builtin.lineinfile:
|
||||||
path: /etc/dhcpcd.conf
|
path: /etc/dhcpcd.conf
|
||||||
line: denyinterfaces docker0 virbr0 tornet0 veth* br* eth1
|
line: denyinterfaces docker0 virbr0 tornet0 veth* br* eth1
|
||||||
when: (nocontainer.stat.exists == true) and (mint.stat.exists == false)
|
when: (nocontainer.stat.exists == true) and (mintpios.stat.exists == false)
|
||||||
register: dhcpcd
|
register: dhcpcd
|
||||||
|
|
||||||
- name: Check weather /etc/network/interfaces exists
|
- name: Check weather /etc/network/interfaces exists
|
||||||
|
Loading…
Reference in New Issue
Block a user