From 24c016548da59bd7747d8cc0db661339641ab2ab Mon Sep 17 00:00:00 2001 From: Anthony Cicchetti Date: Fri, 15 Jan 2021 12:16:53 -0500 Subject: [PATCH] Emacs plus --- playbooks/input.yml | 7 +++++++ playbooks/launch | 1 + playbooks/main.yml | 1 + playbooks/roles/macos/tasks/emacs-plus.uml | 14 ++++++++++++++ 4 files changed, 23 insertions(+) create mode 100644 playbooks/roles/macos/tasks/emacs-plus.uml diff --git a/playbooks/input.yml b/playbooks/input.yml index 273ed3f..4f49b27 100644 --- a/playbooks/input.yml +++ b/playbooks/input.yml @@ -15,6 +15,10 @@ 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 @@ -30,6 +34,9 @@ - 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 }}" diff --git a/playbooks/launch b/playbooks/launch index 285595e..f56d558 100755 --- a/playbooks/launch +++ b/playbooks/launch @@ -28,5 +28,6 @@ fi ANSIBLE_PYTHON_INTERPRETER="$(which python)" ansible-galaxy install kewlfft.aur +ansible-galaxy collection install community.general ansible-playbook --ask-become-pass -i inventory main.yml diff --git a/playbooks/main.yml b/playbooks/main.yml index d3f9687..53d5868 100644 --- a/playbooks/main.yml +++ b/playbooks/main.yml @@ -20,6 +20,7 @@ - dev_machine: "{{ _dev_machine }}" - rust_extras: "{{ _rust_extras }}" - nightly_neovim: "{{ _nightly_neovim }}" + - emacs_plus: "{{ _emacs_plus }}" - hakatime_api_key: "{{ _hakatime_api_key }}" - hosts: os_Fedora diff --git a/playbooks/roles/macos/tasks/emacs-plus.uml b/playbooks/roles/macos/tasks/emacs-plus.uml new file mode 100644 index 0000000..eb3ee11 --- /dev/null +++ b/playbooks/roles/macos/tasks/emacs-plus.uml @@ -0,0 +1,14 @@ +--- +- name: Tap d12frosted/emacs-plus + when: + - emacs_plus == true + community.general.homebrew_tap: + name: d12frosted/emacs-plus + +- name: Install emacs-plus + when: + - emacs_plus == true + community.general.homebrew: + update_homebrew: yes + name: emacs-plus + install_options: with-modern-sexy-v2-icon