make flavour idempotent

This commit is contained in:
Miroslav Suchý 2015-01-26 15:21:39 +00:00
parent 68fccebf92
commit b9630d9361

View file

@ -175,6 +175,8 @@
- name: create non-standard flavor
action: shell source /root/keystonerc_admin && nova flavor-list | grep m1.builder || nova flavor-create m1.builder 6 5120 50 3
register: command_result
changed_when: "'ID' in command_result.stdout"
##### download common Images #####
- get_url: url=http://download.fedoraproject.org/pub/fedora/linux/updates/20/Images/x86_64/Fedora-x86_64-20-20140407-sda.qcow2 dest=/root/images/Fedora-x86_64-20-20140407-sda.qcow2 mode=0440