Skip to content

Commit

Permalink
Updated Ansible Machine ID Guide.
Browse files Browse the repository at this point in the history
  • Loading branch information
russjones committed Apr 14, 2022
1 parent 2886fbd commit ebdad50
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions docs/pages/machine-id/guides/ansible.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ $ mkdir -p ansible
$ cd ansible
```

Create a file called `ansible.cfg`. We will configure Ansible
to run the OpenSSH client with the configuration file generated
Create a file called `ansible.cfg`. We will configure Ansible
to run the OpenSSH client with the configuration file generated
by Machine ID, `/opt/machine-id/ssh_config`.

```
Expand All @@ -70,6 +70,7 @@ below to generate it from your environment. Note, `example.com` here is the
name of your Teleport cluster.

```code
$ # Replace ".example.com" below with the name of your cluster.
$ tsh ls --format=json | jq -r '.[].spec.hostname + ".example.com"' > hosts
```

Expand All @@ -92,7 +93,7 @@ and is allowed by Teleport RBAC.
From the folder `ansible`, run the Ansible playbook:

```code
$ ansible-playbook playbook.yaml
$ ansible-playbook playbook.yaml
# PLAY [all] *****************************************************************************************************************************************
# TASK [Gathering Facts] *****************************************************************************************************************************
Expand Down

0 comments on commit ebdad50

Please sign in to comment.