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.
This commit is contained in:
Chris Rose 2020-11-04 18:58:44 -08:00
parent 03b0a834dd
commit 11ff294f7d

View file

@ -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"))