mirror of
https://github.com/openclaw/openclaw-ansible.git
synced 2026-07-21 01:05:24 -04:00
Why point this to localhost? #5
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @danielo515 on GitHub (Jan 29, 2026).
Hello.
I have been getting crazy trying to run this against a remote server for hours. I was feeling stupid, the I realized the playbook is hardcoded to point at localhost.
Why? Why don't you allow to install this in remote hosts? Let ansible do it's thing and don't force this to be a local install. I don't want to install ansible in the host I'm running clawdbot
@pasogott commented on GitHub (Feb 4, 2026):
Send me a PR.
@funkytaco commented on GitHub (Feb 11, 2026):
This is user error. You can run playbooks to point at other hosts, even if host is set to localhost and set connection to ssh
@danielo515 commented on GitHub (Feb 12, 2026):
Tell me how. I tried providing all class of inventories and list of hosts to point to. I want to use this with semaphore
@MichaelMichaelMichaelMichaelMichael commented on GitHub (Feb 15, 2026):
You can run a playbook with
hosts: localhostagainst other hosts by overriding the targets via command line:Direct Inventory Override
The trailing comma is important - it tells Ansible you're providing a host list.
Extra Variables
Override the host variable:
Or use a variable in your playbook:
Then:
Command-line parameters have the highest precedence and override all playbook settings.
important:
Because the playbook contains
connection: localit won't connect to a remote host.For that to work, you'd have to modify
playbook.ymlto:... and while you're at it, you might as well set
hosts: allto facilitate the usage of ainventory.ini:... which you then can invoke that way: