Ansible god!
Big rework! Control stuffs with variables! We still should do some movei'n around of roles before extending features.
This commit is contained in:
21
roles/user/tasks/doom-emacs.yml
Normal file
21
roles/user/tasks/doom-emacs.yml
Normal file
@@ -0,0 +1,21 @@
|
||||
- name: Setup doom emacs
|
||||
when: "'emacs' in setup"
|
||||
tags: [doom,emacs]
|
||||
block:
|
||||
- name: Remove old emacs config
|
||||
file: state=absent path=/home/{{ name }}/.emacs.d
|
||||
- name: Git clone doom emacs
|
||||
git:
|
||||
repo: https://github.com/hlissner/doom-emacs
|
||||
dest: /home/{{ name }}/.emacs.d
|
||||
accept_newhostkey: yes
|
||||
single_branch: yes
|
||||
version: master
|
||||
depth: 1
|
||||
- name: Install doom emacs
|
||||
shell: |
|
||||
chown -R {{ name }} /home/{{ name }}/.emacs.d
|
||||
echo "y\ny"|su {{ name }} /home/{{ name }}/.emacs.d/bin/doom install
|
||||
#* ^ Above we answer terminal prompts
|
||||
# - name: Add doom emacs config
|
||||
# - name: Run doom sync
|
@@ -1,4 +1,5 @@
|
||||
- name: Create user
|
||||
when: "'system' in setup"
|
||||
user:
|
||||
name="{{ name }}"
|
||||
groups="{{ item }}"
|
||||
@@ -12,4 +13,5 @@
|
||||
user="{{ name }}"
|
||||
key="{{ item }}"
|
||||
with_items:
|
||||
- "{{ pubkeys }}"
|
||||
- "{{ pubkeys }}"
|
||||
- import_tasks: doom-emacs.yml
|
Reference in New Issue
Block a user