added globals.yaml, moved variables there
This commit is contained in:
parent
aa4f4c3f49
commit
d3d2d6d560
2 changed files with 17 additions and 14 deletions
15
globals.yaml
Normal file
15
globals.yaml
Normal 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') }}"
|
16
play.yml
16
play.yml
|
@ -1,19 +1,7 @@
|
|||
---
|
||||
- hosts: all
|
||||
vars:
|
||||
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') }}"
|
||||
vars_files:
|
||||
- ./globals.yaml
|
||||
|
||||
vars_prompt:
|
||||
|
||||
|
|
Loading…
Reference in a new issue