Skip to content
Snippets Groups Projects
Commit 93368ca1 authored by Vladimír Štill's avatar Vladimír Štill
Browse files

ansible: Ensure dhcpcd is actually installed before enabling it

parent 925aee9e
No related branches found
No related tags found
No related merge requests found
......@@ -122,13 +122,21 @@
- restart nftables
when: nftables_default_config
- name: setup dhcpcd
template:
src: dhcpcd.conf.j2
dest: /etc/dhcpcd.conf
notify:
- restart dhcpcd
block:
- name: install dhcpcd
apt:
pkg:
- dhcpcd5
notify:
- restart dhcpcd
- name: setup dhcpcd
template:
src: dhcpcd.conf.j2
dest: /etc/dhcpcd.conf
notify:
- restart dhcpcd
when: dhcpcd
- name: '{{"Install" if postfix or mail_relay is None else "Remove"}} postfix'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment