mirror of
https://github.com/davestephens/ansible-nas
synced 2025-01-26 10:15:14 +00:00
3da19e5708
* Rejig of playbook to load roles from ansible-galaxy * Remove ansible-nas role and move tasks to tasks directory * Add InfluxDB/Telegraf/Grafana for monitoring & dashboards * Automatically configure InfluxDB as a datasource in Grafana * Switch to ZFS Docker driver * Add note about switching to overlay2 Docker driver if required
29 lines
No EOL
511 B
YAML
29 lines
No EOL
511 B
YAML
---
|
|
- name: Update apt-cache
|
|
apt:
|
|
update_cache: yes
|
|
cache_valid_time: 3600
|
|
|
|
- name: Upgrade all packages
|
|
apt:
|
|
name: "*"
|
|
state: latest
|
|
when: keep_packages_updated == true
|
|
|
|
- name: Install some packages
|
|
apt:
|
|
name: "{{ item }}"
|
|
state: present
|
|
with_items:
|
|
- smartmontools
|
|
- htop
|
|
- zfs
|
|
- bonnie++
|
|
- unzip
|
|
- lm-sensors
|
|
|
|
# - name: Configure smartmontools
|
|
|
|
- name: "Set hostname to {{ ansible_nas_hostname }}"
|
|
hostname:
|
|
name: "{{ ansible_nas_hostname }}" |