blob: aecde2ce87b69eb80b2adb110a6cb82992b94dfd [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 }}"
Zack Williamsd643a822016-08-17 09:48:14 -070022 register: dns_lookup_check_result
23 until: dns_lookup_check_result.rc == 0
24 retries: 3
25 delay: 1
Zack Williams172d92b2016-08-08 13:54:20 -070026
27- name: DNS Global Root Connectivity Check
28 shell: "dig @{{ item }} +trace +short {{ dns_check_domain }} | grep {{ dns_check_ipv4 }}"
29 with_items: "{{ dns_roots }}"
Zack Williamsd643a822016-08-17 09:48:14 -070030 register: dns_global_check_result
31 until: dns_global_check_result.rc == 0
32 retries: 3
33 delay: 1
Zack Williams172d92b2016-08-08 13:54:20 -070034
35- name: HTTP Download Check
36 get_url:
37 url: "{{ http_dl_url }}"
38 checksum: "{{ http_dl_cksum }}"
39 dest: /tmp/http_dl_check
40
41- name: HTTPS Download Check
42 get_url:
43 url: "{{ https_dl_url }}"
44 checksum: "{{ https_dl_cksum }}"
45 dest: /tmp/https_dl_check
46