Skip to content

Instantly share code, notes, and snippets.

@jrisch
Created November 30, 2017 09:49
Show Gist options
  • Save jrisch/d3a8bd6d42a9e0eb62f2637348204467 to your computer and use it in GitHub Desktop.
Save jrisch/d3a8bd6d42a9e0eb62f2637348204467 to your computer and use it in GitHub Desktop.
- name: Load VPS specs for chosen type
set_fact:
memory: "{{ lookup('csvfile', '{{ vps_type }} file=vmtypes.csv delimiter=, col=3') }}"
cpu_weight: "{{ lookup('csvfile', '{{ vps_type }} file=vmtypes.csv delimiter=, col=2') }}"
disksize: "{{ lookup('csvfile', '{{ vps_type }} file=vmtypes.csv delimiter=, col=1') }}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment