--- # # Tests specific to compute hosts # - name: Check if swap device exists command: swapon -s register: bz1245714 changed_when: no failed_when: "'dev' not in '{{ bz1245714.stdout }}'" ignore_errors: True - name: Check reserved_host_memory_mb shell: grep reserved_host_memory /etc/nova/nova.conf | grep -v "#" | cut -f2 -d = register: bz1282644 failed_when: bz1282644.stdout|int < reserved_host_memory_check changed_when: no ignore_errors: True