fix(ansible): use correct path for ansible galaxy

This commit is contained in:
Denis Gukov 2024-10-21 08:41:23 +00:00
parent 9380bc351e
commit c76f04a39b

View File

@ -137,7 +137,7 @@ func (t *AnsibleApp) installRolesRequirements() (err error) {
if err != nil { if err != nil {
return return
} }
err = t.installGalaxyRequirementsFile(GalaxyRole, path.Join(t.getRepoPath(), "roles", "requirements.yml")) err = t.installGalaxyRequirementsFile(GalaxyRole, path.Join(t.GetPlaybookDir(), "requirements.yml"))
return return
} }
@ -146,7 +146,7 @@ func (t *AnsibleApp) installCollectionsRequirements() (err error) {
if err != nil { if err != nil {
return return
} }
err = t.installGalaxyRequirementsFile(GalaxyCollection, path.Join(t.getRepoPath(), "collections", "requirements.yml")) err = t.installGalaxyRequirementsFile(GalaxyCollection, path.Join(t.GetPlaybookDir(), "requirements.yml"))
return return
} }