【问题标题】:Installing ufw via ansible but not found in paths通过 ansible 安装 ufw 但在路径中找不到
【发布时间】:2018-11-01 07:25:38
【问题描述】:

我正在全新的 Ubutunu 18.04 安装上安装 ufw。但是它似乎没有在路径中找到。我不明白这个问题

- name: test
      apt:
        name: ufw
        state: latest


 - name: "Configure ufw policy"
      ufw:
        policy: "allow"
        direction: "incoming

错误

失败了! => {"changed": false, "msg": "在路径中找不到所需的可执行文件 ufw:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin: /bin:/usr/games:/usr/local/games"}

【问题讨论】:

    标签: ansible


    【解决方案1】:

    所以这似乎是因为我运行带有--check 标志的剧本。当我在服务器上“实时”运行剧本时,这不再是问题。

    我不知道为什么这是一个问题,因为远程服务器上已经安装了 ufw 包。..

    【讨论】:

      猜你喜欢
      • 2021-08-06
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-12-10
      • 2013-08-16
      • 2021-09-12
      相关资源
      最近更新 更多