This repository has been archived on 2024-12-15. You can view files and clone it, but cannot push or open issues or pull requests.
ansible-machine-setup/roles/github-auth/tasks/main.yaml
2020-05-31 15:58:25 +02:00

13 lines
295 B
YAML

---
- name: install required packages
package:
name:
- ca-certificates
state: latest
- name: add ssh pubkey to github account
github_key:
name: Added by ansible
token: "{{ lookup('env', 'GITHUB_ACCESS_TOKEN') }}"
pubkey: "{{ account.ssh_public_key }}"