35 lines
942 B
YAML
35 lines
942 B
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: "Do you want emacs-plus?"
|
|
private: no
|
|
default: "no"
|
|
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 }}"
|