ansible-nas/tasks/general.yml
2018-08-09 22:43:25 +01:00

29 lines
523 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
- zfsutils-linux
- bonnie++
- unzip
- lm-sensors
# - name: Configure smartmontools
- name: "Set hostname to {{ ansible_nas_hostname }}"
hostname:
name: "{{ ansible_nas_hostname }}"