ansible-role-harbor icon indicating copy to clipboard operation
ansible-role-harbor copied to clipboard

ERROR! the role 'harbor' was not found

Open patsevanton opened this issue 3 years ago • 1 comments

Hello! I try install harbor and get error

ERROR! the role 'harbor' was not found in /home/user/github/infrastructure-as-a-code-example/12-harbor/roles:/home/user/.ansible/roles:/usr/share/ansible/roles:/etc/ansible/roles:/home/user/github/infrastructure-as-a-code-example/12-harbor

The error appears to be in '/home/user/github/infrastructure-as-a-code-example/12-harbor/playbook.yml': line 20, column 7, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

  roles:
    - harbor
      ^ here

I install role

ansible-galaxy install nicholasamorim.harbor

Playbook

---
- name: Installing and configuring Harbor
  hosts: harbor
  vars:
    harbor_projects:
      - project_name: myproject
        is_public: "false"
        content_trust: "false"
        prevent_vul: "true"
        severity: "high"
        auto_scan: "true"
    harbor_users:
      - username: user1
        email: [email protected]
        realname: User Number 1
        role_name: developer
        role_id: 2
        has_admin_role: true
  roles:
    - harbor

patsevanton avatar Mar 28 '22 05:03 patsevanton

Fixed by https://github.com/nicholasamorim/ansible-role-harbor/pull/19

patsevanton avatar Mar 28 '22 05:03 patsevanton

Merged the fix.

nicholasamorim avatar Jun 12 '24 20:06 nicholasamorim