added globals.yaml, moved variables there

This commit is contained in:
Josh Lay 2019-03-30 16:59:19 -05:00
parent aa4f4c3f49
commit d3d2d6d560
2 changed files with 17 additions and 14 deletions

15
globals.yaml Normal file
View file

@ -0,0 +1,15 @@
---
zfs_glob: /dev/disk/by-id/*HC_Volume*
common_pkgs:
- bash-completion
- htop
- vim
- strace
- dmidecode
- nethogs
- sysbench
- fio
- rsync
arc_size_mb: "{{ (ansible_memtotal_mb * 0.75)|int|abs }}"
arc_size_bytes: "{{ arc_size_mb }}000000"
pwgen: "{{ lookup('password', '/dev/null chars=ascii_letters,digits,hexdigits,punctuation length=32') }}"

View file

@ -1,19 +1,7 @@
--- ---
- hosts: all - hosts: all
vars: vars_files:
common_pkgs: - ./globals.yaml
- bash-completion
- htop
- vim
- strace
- dmidecode
- nethogs
- sysbench
- fio
- rsync
arc_size_mb: "{{ (ansible_memtotal_mb * 0.75)|int|abs }}"
arc_size_bytes: "{{ arc_size_mb }}000000"
pwgen: "{{ lookup('password', '/dev/null chars=ascii_letters,digits,hexdigits,punctuation length=32') }}"
vars_prompt: vars_prompt: