# This playbook can be used to generate a CSV file of testnodes
# that can be imported to the FOG web UI.
# It outputs a CSV file to /tmp/fog_hostfile.csv
+#
+# Define 'fog_install_drive: "/dev/sdX"' in ansible group_vars if it should be any drive other than sda
- hosts: localhost
roles:
{% for host in groups['cobbler_managed'] %}
-"{{ hostvars[host]['mac'] }}","{{ hostvars[host]['inventory_hostname_short'] }}","","","1","0","","","fog","","","","","","","","","{{ hostvars[host]['kernel_options'] }}","","/dev/sda","","","","","0000-00-00 00:00:00","110","","",""
+"{{ hostvars[host]['mac'] }}","{{ hostvars[host]['inventory_hostname_short'] }}","","","1","0","","","fog","","","","","","","","","{{ hostvars[host]['kernel_options'] }}","","{{ hostvars[host]['fog_install_drive']|default('/dev/sda') }}","","","","","0000-00-00 00:00:00","110","","",""
{% endfor %}