Skip to content

Error: missing server host #364

Closed
Closed
@PiotrBracha

Description

@PiotrBracha

I use:

        uses: appleboy/ssh-action@v1.0.3
        with:
          host: ${{ secrets.ANSIBLE_MANAGEMENT_IP }}
          username: ${{ secrets.ANSIBLE_MANAGEMENT_USER }}
          key: ${{ secrets.ANSIBLE_MANAGEMENT_SSH_KEY }}
          script: |

debug logs shows:

##[debug]Evaluating: secrets.ANSIBLE_MANAGEMENT_IP
##[debug]Evaluating Index:
##[debug]..Evaluating secrets:
##[debug]..=> Object
##[debug]..Evaluating String:
##[debug]..=> 'ANSIBLE_MANAGEMENT_IP'
##[debug]=> null
##[debug]Result: null
##[debug]Evaluating: secrets.ANSIBLE_MANAGEMENT_USER
##[debug]Evaluating Index:
##[debug]..Evaluating secrets:
##[debug]..=> Object
##[debug]..Evaluating String:
##[debug]..=> 'ANSIBLE_MANAGEMENT_USER'
##[debug]=> null
##[debug]Result: null
##[debug]Evaluating: secrets.ANSIBLE_MANAGEMENT_SSH_KEY
##[debug]Evaluating Index:
##[debug]..Evaluating secrets:
##[debug]..=> Object
##[debug]..Evaluating String:
##[debug]..=> 'ANSIBLE_MANAGEMENT_SSH_KEY'
##[debug]=> null
##[debug]Result: null

[...]

2025/02/05 13:10:37 Error: missing server host
##[debug]Docker Action run completed with exit code 1

Somehow secret with ssh key, user and machine's ip are evaluated as "null". In another repository I also use the same part:

        uses: appleboy/ssh-action@v1.0.3
        with:
          host: ${{ secrets.ANSIBLE_MANAGEMENT_IP }}
          username: ${{ secrets.ANSIBLE_MANAGEMENT_USER }}
          key: ${{ secrets.ANSIBLE_MANAGEMENT_SSH_KEY }}
          script: |

and there is no problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions