add ctags role

Sun, 20 Mar 2016 11:15:15 -0400

author
Meredith Howard <mhoward@roomag.org>
date
Sun, 20 Mar 2016 11:15:15 -0400
changeset 23
14ce4f21537e
parent 22
154779435639
child 24
726aff97f198

add ctags role

roles/ctags/tasks/main.yml file | annotate | diff | comparison | revisions
roles/ctags/vars/Debian.yml file | annotate | diff | comparison | revisions
roles/ctags/vars/FreeBSD.yml file | annotate | diff | comparison | revisions
roles/ctags/vars/MacOSX.yml file | annotate | diff | comparison | revisions
new file mode 100644
--- /dev/null
+++ b/roles/ctags/tasks/main.yml
@@ -0,0 +1,7 @@
+---
+- include_vars: "{{ansible_os_family}}.yml"
+
+- package:
+    name: "{{ dist_package }}"
+    state: latest
+  tags: packages, install
new file mode 100644
--- /dev/null
+++ b/roles/ctags/vars/Debian.yml
@@ -0,0 +1,2 @@
+---
+dist_package: exuberant-ctags
new file mode 100644
--- /dev/null
+++ b/roles/ctags/vars/FreeBSD.yml
@@ -0,0 +1,2 @@
+---
+dist_package: ctags
new file mode 100644
--- /dev/null
+++ b/roles/ctags/vars/MacOSX.yml
@@ -0,0 +1,2 @@
+---
+dist_package: ctags

mercurial