semaphore icon indicating copy to clipboard operation
semaphore copied to clipboard

Failed to install inventory: access key type not supported for ansible user

Open dberardo-com opened this issue 3 years ago • 4 comments

2 problems/dbouts here:

first - I am trying to use ansible_user and password as plain authentication credentials from the inventory, however this error is returned when the task runs:

Failed to install inventory: access key type not supported for ansible user

--> i have even added a sudo password, although not needed

second - is the ansible.cfg file in my git repo being read by semaphore?

dberardo-com avatar May 26 '22 18:05 dberardo-com

did you solve it, I used public key, the first time the template was created it worked, the change to inventory failed

bbotte avatar Aug 28 '23 10:08 bbotte

did you solve it, I used public key, the first time the template was created it worked, the change to inventory failed

it's not a bug, reinitialization requires deleting the database contents and cache, because ./semaphore setup generated configuration file config.json contains access_key_encryption , I think it has something to do with this

bbotte avatar Aug 29 '23 09:08 bbotte

I too have run into this when trying to use keys for authentication.

I added a private key to the Key Store in the UI. Then specified to use this credential when adding an inventory. Running a playbook results in error "Failed to install inventory: access key type not supported for ansible user"

Mailstorm-ctrl avatar Jun 03 '25 18:06 Mailstorm-ctrl

Well, odd behavior. Not sure what caused my issue. But deleting the semaphore tmp directory, inventory, playbook, and ssh key and recreating all of that caused it to work again

Mailstorm-ctrl avatar Jun 03 '25 19:06 Mailstorm-ctrl