ansible-machine-setup/roles/github-auth/tasks/main.yaml

13 lines
295 B
YAML
Raw Normal View History

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