Skip to content

Commit f361cda

Browse files
authored
chore: update authentication instructions (#28)
1 parent 3e3d0cc commit f361cda

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

README.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,13 @@ Create an `upcloud.yml` file with these contents:
3939
plugin: upcloud.cloud.servers
4040
```
4141
42-
Set environment variables for API authentication:
42+
Configure API authentication by using `upctl account login` command or set credentials with environment variables:
4343

4444
```bash
45+
# Use API token...
46+
export UPCLOUD_TOKEN="ucat_..."
47+
48+
# ...or username and password
4549
export UPCLOUD_USERNAME="upcloud-api-access-enabled-user"
4650
export UPCLOUD_PASSWORD="verysecretpassword"
4751
```
@@ -128,6 +132,5 @@ $ ansible-test units -v --color --docker --coverage
128132
A new version can be built and tested locally with the `ansible-galaxy` tool that is packaged with Ansible.
129133

130134
```bash
131-
ansible-galaxy collection build
132-
ansible-galaxy collection install community-upcloud-<VERSION>.tar.gz
135+
ansible-galaxy collection install --force .
133136
```

0 commit comments

Comments
 (0)