Answer the question
In order to leave comments, you need to log in
How to properly remove packages from Ubuntu using Ansible?
Task:
Remove Docker from ubuntu server.
sudo apt-get purge -y docker-engine docker docker.io docker-ce docker-ce-cli
sudo apt-get autoremove -y --purge docker-engine docker docker.io docker-ce
- name: Remove packages
remote_user: fsmrdv
apt: name={{ packages_to_uninstall }} autoremove=yes purge=yes
Answer the question
In order to leave comments, you need to log in
What exactly is the error? It is interesting to see what kind of error (for understanding)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question