Skip to content

Problem: change user used for SSH connections #3179

Description

@Kimbaras

Issue

Not sure if it's a bug or it's me that was unable to find anything about it, but basically, is there a way to change the user used for the initial SSH connections?

Semaphore is installed with a dedicated user "semaphore".
The remote servers are configured to use a specific user for ansible task "itansible".

Seems that, even with "ansible_user=itansible" set in environment variables the SSH connection is initiated as semaphore@ which fails.

Seems that Semaphore is ignoring the environment variable?
Or it's me setting wrongly?

Image

From my understanding, the "Environment variables" should be something you could add inside the "ansible.cfg", is that right?

I've made also that test, editing "ansible.cfg" and that worked as expected, the SSH connection was initiated as itansible, while Semaphore still tried to connect as "semaphore@"

Impact

Ansible (task execution)

Installation method

Package

Database

Postgres

Browser

No response

Semaphore Version

2.15.4-8e8d81c-1753268666

Ansible Version

ansible [core 2.16.14]

Logs & errors

No response

Manual installation - system information

Running on Ubuntu 22.04 (5.15.0-144-generic)

Configuration

No response

Additional information

There seems it was a similar question asked few years ago #382 but it's not a real solution (IMHO)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions