dotfiles/playbooks/input.yml
Anthony Cicchetti 24c016548d Emacs plus
2021-01-15 12:16:53 -05:00

42 lines
1.2 KiB
YAML

---
- name: Ask user for the input
hosts: localhost
tags: always
vars_prompt:
- name: _dev_machine
prompt: "Is this a developer's machine?"
private: no
default: "yes"
- name: _rust_extras
prompt: "Do you want to install rust extras?"
private: no
default: "no"
- name: _nightly_neovim
prompt: "Do you want neovim nightly?"
private: no
default: "no"
- name: _emacs_plus
prompt: "Don you want emacs-plus?"
private: no
default: "no"
- name: _hakatime_api_key
prompt: "What's your hakatime api key? (won't show up at the prompt)"
private: yes
default: ""
tasks:
- block:
- name: Set dev machine fact
set_fact:
_dev_machine: "{{ _dev_machine }}"
- name: Set rust extras fact
set_fact:
_rust_extras: "{{ _rust_extras }}"
- name: Set nightly neovim fact
set_fact:
_nightly_neovim: "{{ _nightly_neovim }}"
- name: Set emacs plus fact
set_fact:
_emacs_plus: "{{ _emacs_plus }}"
- name: Set Hakatime api key fact
set_fact:
_hakatime_api_key: "{{ _hakatime_api_key }}"