summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2022-08-07 12:56:34 +0300
committerLars Wirzenius <liw@liw.fi>2022-08-07 12:56:34 +0300
commitff961b5f01c2276ae1a8928dd8c0d46f97bce8d3 (patch)
tree286278d8742c2fe3d6ba3661f30a3cbe47fad945
parent485e5592848f4d46c745f3ccef8b22a296f8b45a (diff)
downloadv-i-ff961b5f01c2276ae1a8928dd8c0d46f97bce8d3.tar.gz
fix: make ping work
When ping is initially installed, it doesn't get the capabilities it needs to do its thing. Re-install it so it works. Sponsored-by: author
-rw-r--r--installer-ansible.yml12
1 files changed, 12 insertions, 0 deletions
diff --git a/installer-ansible.yml b/installer-ansible.yml
index 22a9a73..627bffa 100644
--- a/installer-ansible.yml
+++ b/installer-ansible.yml
@@ -15,6 +15,18 @@
shell: |
sed -i '/^root:[^:]*:/s//root::/' /etc/passwd
+ # Remove ping to force it be reinstalled so that the right
+ # capabilities are set.
+ - name: "remove ping so it can be re-installed"
+ apt:
+ name: iputils-ping
+ state: absent
+
+ - name: "re-install ping"
+ apt:
+ name: iputils-ping
+ state: present
+
- name: "uninstall rsyslogd"
apt:
name: rsyslogd