blob: 606a02949f445cb06d2f5a17a9960dd976778e21 [file] [log] [blame]
Zack Williams172d92b2016-08-08 13:54:20 -07001---
2# prereqs-common/tasks/main.yml
3
4- name: "Check here on failure: 'https://wiki.opencord.org/display/CORD/Troubleshooting+a+Build'"
5 pause:
6 seconds: 10
7
8- name: Memory size Check
9 assert:
10 that: "ansible_memtotal_mb >= {{ min_memtotal_mb }}"
11
12- name: CPU quantity Check
13 assert:
14 that: "ansible_processor_vcpus >= {{ min_processor_vcpus }}"
15
16- name: CPU KVM Check
17 when: kvm_check
18 shell: "lsmod | grep kvm_"
19
20- name: DNS Lookup Check
21 shell: "dig +short {{ dns_check_domain }} | grep {{ dns_check_ipv4 }}"
22
23- name: DNS Global Root Connectivity Check
24 shell: "dig @{{ item }} +trace +short {{ dns_check_domain }} | grep {{ dns_check_ipv4 }}"
25 with_items: "{{ dns_roots }}"
26
27- name: HTTP Download Check
28 get_url:
29 url: "{{ http_dl_url }}"
30 checksum: "{{ http_dl_cksum }}"
31 dest: /tmp/http_dl_check
32
33- name: HTTPS Download Check
34 get_url:
35 url: "{{ https_dl_url }}"
36 checksum: "{{ https_dl_cksum }}"
37 dest: /tmp/https_dl_check
38