If the `GITHUB_TOKEN` is defined in the Ansible controller's environment it is used to set the GitHub REST API authentication header. This is they passed to all `uri` modules tasks which interact with the GitHub REST API. If the `GITHUB_TOKEN` is not set, the authentication header is not used. Fixes #19
23 lines
482 B
YAML
23 lines
482 B
YAML
---
|
|
- import_playbook: UnixCLI.yaml
|
|
- hosts: localhost
|
|
roles:
|
|
- role: system-info
|
|
- import_playbook: UnixGUI.yaml
|
|
- hosts: localhost
|
|
vars:
|
|
github_auth_headers: >-
|
|
{{ { 'Authorization': 'Bearer ' + lookup('env', 'GITHUB_TOKEN') }
|
|
if lookup('env', 'GITHUB_TOKEN') else {} }}
|
|
roles:
|
|
- role: mas
|
|
|
|
- role: hiddenbar
|
|
- role: iterm
|
|
- role: kitty
|
|
- role: magnet
|
|
- role: microsoft-remote-desktop
|
|
- role: viscosity
|
|
|
|
- role: macos
|