【问题标题】:How to clean apt cache using ansible?如何使用 ansible 清理 apt 缓存?
【发布时间】:2016-11-11 15:46:07
【问题描述】:

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

【问题讨论】:

    标签: ansible ansible-playbook apt


    【解决方案1】:

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

    - command: apt-get clean
      become: yes
    

    【讨论】:

      猜你喜欢
      • 2020-09-11
      • 1970-01-01
      • 1970-01-01
      • 2010-10-10
      • 1970-01-01
      • 2017-02-18
      • 1970-01-01
      • 2023-04-01
      • 2023-03-28
      相关资源
      最近更新 更多