From 11ff294f7d039d9997aeded0a5561e97ca77635c Mon Sep 17 00:00:00 2001 From: Chris Rose Date: Wed, 4 Nov 2020 18:58:44 -0800 Subject: [PATCH] Add detection for projects that are ansible roles Ansible roles _often_ have a `tasks/main.yml` file in them, and benefit from some of the nice ansible syntax highlighting. --- modules/tools/ansible/config.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/tools/ansible/config.el b/modules/tools/ansible/config.el index 27f872822..0e425be03 100644 --- a/modules/tools/ansible/config.el +++ b/modules/tools/ansible/config.el @@ -30,4 +30,4 @@ (def-project-mode! +ansible-yaml-mode :modes '(yaml-mode) :add-hooks '(ansible ansible-auto-decrypt-encrypt ansible-doc-mode) - :files ("roles/")) + :files (or "roles/" "tasks/main.yml"))