From d66482bd007b4f96faa7925af8e3dc62b19fd5c6 Mon Sep 17 00:00:00 2001
From: Chris Coley <chris@codingallnight.com>
Date: Wed, 4 Jul 2018 23:14:03 -0700
Subject: [PATCH] Rename OS spceific task files

Instead of being postfixed with '_' followed by an identifier, OS specific files
will now be postfixed with '.' followed by an identifier.
---
 tasks/{bootstrap_debian.yml => bootstrap.debian.yml}   |  0
 tasks/{bootstrap_fedora.yml => bootstrap.fedora.yml}   |  0
 tasks/{bootstrap_redhat.yml => bootstrap.redhat.yml}   |  0
 tasks/bootstrap.yml                                    | 10 +++++-----
 ...tils_debian.yml => install-common-utils.debian.yml} |  0
 ...tils_fedora.yml => install-common-utils.fedora.yml} |  0
 ...tils_redhat.yml => install-common-utils.redhat.yml} |  0
 tasks/main.yml                                         | 10 +++++-----
 8 files changed, 10 insertions(+), 10 deletions(-)
 rename tasks/{bootstrap_debian.yml => bootstrap.debian.yml} (100%)
 rename tasks/{bootstrap_fedora.yml => bootstrap.fedora.yml} (100%)
 rename tasks/{bootstrap_redhat.yml => bootstrap.redhat.yml} (100%)
 rename tasks/{install-common-utils_debian.yml => install-common-utils.debian.yml} (100%)
 rename tasks/{install-common-utils_fedora.yml => install-common-utils.fedora.yml} (100%)
 rename tasks/{install-common-utils_redhat.yml => install-common-utils.redhat.yml} (100%)

diff --git a/tasks/bootstrap_debian.yml b/tasks/bootstrap.debian.yml
similarity index 100%
rename from tasks/bootstrap_debian.yml
rename to tasks/bootstrap.debian.yml
diff --git a/tasks/bootstrap_fedora.yml b/tasks/bootstrap.fedora.yml
similarity index 100%
rename from tasks/bootstrap_fedora.yml
rename to tasks/bootstrap.fedora.yml
diff --git a/tasks/bootstrap_redhat.yml b/tasks/bootstrap.redhat.yml
similarity index 100%
rename from tasks/bootstrap_redhat.yml
rename to tasks/bootstrap.redhat.yml
diff --git a/tasks/bootstrap.yml b/tasks/bootstrap.yml
index fcbba72..dc84392 100644
--- a/tasks/bootstrap.yml
+++ b/tasks/bootstrap.yml
@@ -29,10 +29,10 @@
     - name: Include OS specific bootstrap tasks
       include_tasks: '{{ item }}'
       with_first_found:
-        - tasks/bootstrap_{{ ansible_distribution | lower }}-{{ ansible_distribution_version | lower }}.yml
-        - tasks/bootstrap_{{ ansible_distribution | lower }}-{{ ansible_distribution_release | lower }}.yml
-        - tasks/bootstrap_{{ ansible_distribution | lower }}-{{ ansible_distribution_major_version | lower }}.yml
-        - tasks/bootstrap_{{ ansible_distribution | lower }}.yml
-        - tasks/bootstrap_{{ ansible_os_family | lower }}.yml
+        - tasks/bootstrap.{{ ansible_distribution | lower }}-{{ ansible_distribution_version | lower }}.yml
+        - tasks/bootstrap.{{ ansible_distribution | lower }}-{{ ansible_distribution_release | lower }}.yml
+        - tasks/bootstrap.{{ ansible_distribution | lower }}-{{ ansible_distribution_major_version | lower }}.yml
+        - tasks/bootstrap.{{ ansible_distribution | lower }}.yml
+        - tasks/bootstrap.{{ ansible_os_family | lower }}.yml
 ...
 # vi: set ts=2 sts=2 sw=2 et ft=yaml:
diff --git a/tasks/install-common-utils_debian.yml b/tasks/install-common-utils.debian.yml
similarity index 100%
rename from tasks/install-common-utils_debian.yml
rename to tasks/install-common-utils.debian.yml
diff --git a/tasks/install-common-utils_fedora.yml b/tasks/install-common-utils.fedora.yml
similarity index 100%
rename from tasks/install-common-utils_fedora.yml
rename to tasks/install-common-utils.fedora.yml
diff --git a/tasks/install-common-utils_redhat.yml b/tasks/install-common-utils.redhat.yml
similarity index 100%
rename from tasks/install-common-utils_redhat.yml
rename to tasks/install-common-utils.redhat.yml
diff --git a/tasks/main.yml b/tasks/main.yml
index 31bd047..74b775d 100644
--- a/tasks/main.yml
+++ b/tasks/main.yml
@@ -29,11 +29,11 @@
 # Install common packages and utils
 - include_tasks: '{{ item }}'
   with_first_found:
-    - tasks/install-common-utils_{{ ansible_distribution | lower }}-{{ ansible_distribution_version | lower }}.yml
-    - tasks/install-common-utils_{{ ansible_distribution | lower }}-{{ ansible_distribution_release | lower }}.yml
-    - tasks/install-common-utils_{{ ansible_distribution | lower }}-{{ ansible_distribution_major_version | lower }}.yml
-    - tasks/install-common-utils_{{ ansible_distribution | lower }}.yml
-    - tasks/install-common-utils_{{ ansible_os_family | lower }}.yml
+    - tasks/install-common-utils.{{ ansible_distribution | lower }}-{{ ansible_distribution_version | lower }}.yml
+    - tasks/install-common-utils.{{ ansible_distribution | lower }}-{{ ansible_distribution_release | lower }}.yml
+    - tasks/install-common-utils.{{ ansible_distribution | lower }}-{{ ansible_distribution_major_version | lower }}.yml
+    - tasks/install-common-utils.{{ ansible_distribution | lower }}.yml
+    - tasks/install-common-utils.{{ ansible_os_family | lower }}.yml
 
 ...
 # vi: set ts=2 sts=2 sw=2 et ft=yaml: 
-- 
GitLab