]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
Check system and architecture 10/head
authorSébastien Han <sebastien.han@enovance.com>
Fri, 7 Mar 2014 10:20:48 +0000 (11:20 +0100)
committerSébastien Han <sebastien.han@enovance.com>
Fri, 7 Mar 2014 10:20:48 +0000 (11:20 +0100)
If the system is not Linux and the architecture is not x86 Ansible will
fail and exit.

Signed-off-by: Sébastien Han <sebastien.han@enovance.com>
roles/common/tasks/main.yml

index 55fcef580d7888eb53fe0540132e4c347b1b12a3..948f1dd94b21bdda255df4f224e7d2481ee5e500 100644 (file)
@@ -2,6 +2,14 @@
 ## Common to all the ceph nodes
 #
 
+- name: Fail on unsupported system
+  fail: msg="System not supported {{ ansible_system }}"
+  when: ansible_system not in ['Linux']
+
+- name: Fail on unsupported architecture
+  fail: msg="Architeture not supported {{ ansible_architectore }}"
+  when: ansible_architecture not in ['x86_64']
+
 - name: Install dependancies
   apt: pkg={{ item }} state=installed update_cache=yes # we update the cache just in case...
   with_items: