ansible-nas/tasks/general.yml

39 lines
751 B
YAML
Raw Normal View History

2017-08-28 15:31:54 +00:00
---
- name: Update apt-cache
apt:
update_cache: yes
cache_valid_time: 3600
2018-12-23 16:50:20 +00:00
register: result
until: result is succeeded
2017-08-28 15:31:54 +00:00
- name: Upgrade all packages
apt:
upgrade: true
2017-08-28 15:31:54 +00:00
state: latest
2018-12-23 16:50:20 +00:00
when: keep_packages_updated
tags:
- skip_ansible_lint
2017-08-28 15:31:54 +00:00
- name: Install some packages
apt:
name: "{{ item }}"
state: present
with_items:
- smartmontools
- htop
2018-08-09 21:43:25 +00:00
- zfsutils-linux
2017-08-28 15:31:54 +00:00
- bonnie++
- unzip
2018-04-07 10:29:22 +00:00
- lm-sensors
2018-12-23 16:50:20 +00:00
register: result
until: result is succeeded
2017-08-28 15:31:54 +00:00
# - name: Configure smartmontools
- name: "Set hostname to {{ ansible_nas_hostname }}"
hostname:
name: "{{ ansible_nas_hostname }}"
- name: "Set timezone to {{ ansible_nas_timezone }}"
timezone:
name: "{{ ansible_nas_timezone }}"