Skip to content

Problem: Project export does not contain repository for an inventory #3369

@simonjpickering

Description

@simonjpickering

Issue

When exporting a project that contains an ansible inventory that refers to a file held in a repository the exported project does not contain reference to the repository - E.g:

"inventories": [
    {
      "inventory": "inventory/bast-inventory.aws_ec2.yaml",
      "name": "bastion-hat-global",
      "ssh_key": "ansible",
      "type": "file"
    }
  ],

Have tried adding the repository into the project template as follows:

"inventories": [
        {
            "inventory": "inventory/bast-inventory.aws_ec2.yaml",
            "name": "bastion-hat-global",
            "ssh_key": "ansible",
            "type": "file",
            "repository": "bastion-build"
        }
    ],

However, this does not work.

I have attached a screenshot of the inventory config in the UI. This means currently we have to change this setting manually in the UI or then make an additional API call to update the inventory.

Image

Impact

Semaphore Project

Installation method

Package

Database

Postgres

Browser

No response

Semaphore Version

2.16.16-4066a1e-1755360390

Ansible Version

Logs & errors

No response

Manual installation - system information

No response

Configuration

No response

Additional information

No response

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions