fennel, formatting
change
commit 0fb683890506c84a43e770520e67d0df4db66d37
author Alpha Chen <alpha@kejadlen.dev>
date
parent 6d715e06
diff --git a/local/main.yml b/local/main.yml
index 3fcca1e..6096a16 100644
--- a/local/main.yml
+++ b/local/main.yml
@@ -13,18 +13,27 @@
 
     - name: Symlink dotfiles
       block:
-      - name: List dotfiles # noqa: risky-shell-pipe
-        ansible.builtin.shell: ls -A ~/.dotfiles | grep '^\.'
-        register: ls_dotfiles
-        changed_when: false
+        - name: List dotfiles # noqa: risky-shell-pipe
+          ansible.builtin.shell: ls -A ~/.dotfiles | grep '^\.'
+          register: ls_dotfiles
+          changed_when: false
 
-      - name: Symlink dotfiles
-        ansible.builtin.file:
-          src: ~/.dotfiles/{{ item }}
-          dest: ~/{{ item }}
-          state: link
-        loop: "{{ ls_dotfiles.stdout_lines | difference(['.git', '.gitmodules', '.DS_Store']) }}"
+        - name: Symlink dotfiles
+          ansible.builtin.file:
+            src: ~/.dotfiles/{{ item }}
+            dest: ~/{{ item }}
+            state: link
+          loop: "{{ ls_dotfiles.stdout_lines | difference(['.git', '.gitmodules', '.DS_Store']) }}"
 
-- import_playbook: macos.yml
+- import_playbook: macos.yml # noqa: name[play]
+
+# needs to go after luarocks is installed
+- name: Main playbook
+  hosts: local
+  tasks:
+    - name: Install fennel
+      ansible.builtin.command: luarocks install fennel
+      args:
+        creates: /opt/homebrew/bin/fennel
 
 # vim: ft=yaml.ansible