From 446a8917f8e759d39b68a69a568b266dc1a22f28 Mon Sep 17 00:00:00 2001 From: Monty Taylor Date: Fri, 7 Feb 2020 15:28:43 -0600 Subject: [PATCH] Run apt-get autoremove after rm cloud-init We remove cloud-init but we don't remove the stuff it sucks in. Run autoremove to take care of that. Change-Id: I6530d7444197ec763d3695020200c411aed545b4 --- playbooks/roles/set-hostname/tasks/main.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/playbooks/roles/set-hostname/tasks/main.yml b/playbooks/roles/set-hostname/tasks/main.yml index 2117db394e..f7a82a514c 100644 --- a/playbooks/roles/set-hostname/tasks/main.yml +++ b/playbooks/roles/set-hostname/tasks/main.yml @@ -4,6 +4,9 @@ name: cloud-init state: absent +- name: Get rid of cloud-init depends + command: apt-get autoremove -y + # Set hostname and /etc/hosts # Inspired by: # https://github.com/ansible/ansible/pull/8482)