繁体   English   中英

使用 Ansible 剧本安装 restic [关闭]

[英]Installing restic with an Ansible playbook [closed]

我正在尝试使用 ansible 安装 restic 但有一些错误。
这是我的剧本:

- name: Install and manage Restic
  hosts: all
  become: true
  tasks:
    - roles: 
        name: paulfantom.restic
        apply:
          tags: restic
      tags: always

这是我遇到的错误。
编写剧本的正确方法是什么?

ERROR! couldn't resolve module/action 'roles'. This often indicates a misspelling, missing collection, or incorrect module path.

The error appears to be in '/home/emediong/Digitalocean/dynamic-inventory/restic.yml': line 6, column 7, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

  tasks:
    - roles:
      ^ here

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM