copy_authorized_keys
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
.
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.
# Copy the authorized_keys files to all the RPis. - hosts: "{{ variable_hosts | default('rpis') }}" user: chrome-bot gather_facts: yes roles: - copy_authorized_keys