Check system and architecture

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>
pull/10/head
Sébastien Han 2014-03-07 11:20:48 +01:00
parent 146dd31c92
commit 9d06702fc2
1 changed files with 8 additions and 0 deletions

View File

@ -2,6 +2,14 @@
## Common to all the ceph nodes ## 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 - name: Install dependancies
apt: pkg={{ item }} state=installed update_cache=yes # we update the cache just in case... apt: pkg={{ item }} state=installed update_cache=yes # we update the cache just in case...
with_items: with_items: