deploy-base/play.yml

34 lines
754 B
YAML

---
- 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_prompt:
- name: "username"
prompt: "username for the user you want to create"
default: jlay
private: no
roles:
- {role: bootstrap}
- {role: update-packages}
- {role: install-packages}
- {role: create-user}
- {role: hardening}
- {role: docker}
- {role: tuned}
- {role: zfs}
- {role: sysctl}