tree: 9338b568c8aeba7593086c721396cf835c56b6c4 [path history] [tgz]
  1. tasks/
  2. README.md
skolo/ansible/switchboard/roles/copy_authorized_keys/README.md

Role Name

copy_authorized_keys

Description

Distributes the file //skolo/authorized_keys to the correct account on the machine.

Platforms specific tasks are in their own files, e.g. linux.yml.

Variables Required

This role uses the skolo_account variable defined in //skolo/ansible/group_vars/all.yml and potentially overridden in hosts.ini.

Also requires gather_facts to detect the target operating system.

Example Playbook

# Copy the authorized_keys files to all the RPis.
- hosts: "{{ variable_hosts | default('rpis') }}"
  user: chrome-bot
  gather_facts: yes

  roles:
    - copy_authorized_keys