ideascube / ansiblecube

Ansible playbook to quickly deploy an ideascube server and much more !
MIT License
5 stars 9 forks source link

fix conditional when no sda1 #114

Closed gui1117 closed 7 years ago

gui1117 commented 7 years ago

if there is no sda 1 then it fails with

TASK [Ensure the HDD mountpoint exists] ****************************************
fatal: [localhost]: FAILED! => {
"failed": true, 
"msg": "The conditional check 'sda1.stat.isblk == True' failed. The error was: error while evaluating conditional (sda1.stat.isblk == True): 'dict object' has no attribute 'isblk'\n\nThe error appears to have been in '/home/pi/playbook.yml': line 8, column 7, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n    - name: Ensure the HDD mountpoint exists\n      ^ here\n"
}