version: v3
teleport:
  nodename: {{ ansible_hostname }}
  data_dir: /var/lib/teleport
  join_params:
    token_name: {{ get_join_token }}
    method: token
  proxy_server: {{ teleport_uri }}:443
  log:
    output: stderr
    severity: INFO
    format:
      output: text
  ca_pin: {{ get_ca_pin }}
  diag_addr: ""
auth_service:
  enabled: "no"
ssh_service:
  enabled: "yes"
  labels:
    ipaddr: {{ansible_default_ipv4.address}}
    group: {{ group_names[-1] }}
    os: {{ ansible_distribution }}
{% if custom_labels %}
    {{ custom_labels }}
{% endif %}
  commands:
  - name: hostname
    command: [hostname]
    period: 1m0s
proxy_service:
  enabled: "no"
  https_keypairs: []
  https_keypairs_reload_interval: 0s
  acme: {}
