Skip to content

Commit

Permalink
Corrected description for local execution
Browse files Browse the repository at this point in the history
  • Loading branch information
szczepax committed Dec 20, 2023
1 parent 44715d8 commit 2e28363
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions utils/ansible/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,11 @@ ansible-playbook -i $TARGET_IP, configure-self-hosted-runner.yml --extra-vars
[Adding self-hosted runners](https://docs.github.com/en/actions/hosting-your-own-runners/managing-self-hosted-runners/adding-self-hosted-runners) documentation.

# Provisioning from the target platform itself
It is possible to run playbooks directly on the target platform.

For localhost execution with a local connection you should always pass `ansible_user=pmdkuser` as a variable due to
[ansible_user Is Undefined on Localhost](https://radeksprta.eu/posts/ansible_user-is-undefined-on-localhost/).
It is possible to run playbooks directly on the target platform.
In this case, you have to always pass `ansible_user=pmdkuser` as an additional
variable since the playbooks are fine-tuned for remote execution and assume
the `ansible_user` variable is defined. When running on a remote target the
connection plugin does it for you.

To run playbooks inside the platform please comment out the line:
```
Expand Down

0 comments on commit 2e28363

Please sign in to comment.