Skip to content

Commit

Permalink
Merge pull request #582 from rust-lang/docs-improve-ansible-playbook-…
Browse files Browse the repository at this point in the history
…for-new-server

docs: improve ansible playbook for new server
  • Loading branch information
marcoieni authored Sep 26, 2024
2 parents 2c6706d + 7e0943a commit adcabf1
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions ansible/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,22 @@ aws ec2-instance-connect send-ssh-public-key \
--instance-id $HOST_INSTANCE_ID \
--instance-os-user $USER \
--ssh-public-key file://$PATH_TO_PUBLIC_KEY
--region $REGION
```

You will then have 60 seconds to kick off the `./apply` script before the
public key is removed again.

> [!NOTE]
> If the server is an fresh Ubuntu instance, use `ubuntu` as `$USER`, and
> run ansible with the `-u ubuntu` flag.
> E.g.:
>
> ```sh
> $ aws ec2-instance-connect send-ssh-public-key [...] --instance-os-user 'ubuntu' [...]
> $ ./apply prod playground -u ubuntu
> ```
## Environments
Making changes directly on production is not a great idea: to ease local
Expand Down

0 comments on commit adcabf1

Please sign in to comment.