normalize

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

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

normalize

roles/ag/tasks/main.yml file | annotate | diff | comparison | revisions
roles/ag/vars/Debian.yml file | annotate | diff | comparison | revisions
roles/ag/vars/FreeBSD.yml file | annotate | diff | comparison | revisions
roles/ag/vars/MacOSX.yml file | annotate | diff | comparison | revisions
--- a/roles/ag/tasks/main.yml
+++ b/roles/ag/tasks/main.yml
@@ -1,10 +1,7 @@
 ---
-
 - include_vars: "{{ansible_os_family}}.yml"
 
 - package:
-    name: "{{ ag_package }}"
+    name: "{{ dist_package }}"
     state: latest
   tags: packages, install
-  when: ansible_os_family == 'Debian'
-
--- a/roles/ag/vars/Debian.yml
+++ b/roles/ag/vars/Debian.yml
@@ -1,4 +1,2 @@
 ---
-
-ag_package: silversearcher-ag
-
+dist_package: silversearcher-ag
--- a/roles/ag/vars/FreeBSD.yml
+++ b/roles/ag/vars/FreeBSD.yml
@@ -1,4 +1,2 @@
 ---
-
-ag_package: the_silver_searcher
-
+dist_package: the_silver_searcher
--- a/roles/ag/vars/MacOSX.yml
+++ b/roles/ag/vars/MacOSX.yml
@@ -1,4 +1,2 @@
 ---
-
-ag_package: the_silver_searcher
-
+dist_package: the_silver_searcher

mercurial