如何使用ansible清理apt缓存?

时间:2016-11-11 15:46:08

标签: ansible ansible-playbook apt

这个link暗示了模块的存在,但我无法实现它。预计会有任何解决方案。

1 个答案:

答案 0 :(得分:3)

The apt module已被更改to support autocleanbut not clean。在此之前,您可以使用the command module

- command: apt-get clean
  become: yes