vendor/tersmitten.htop/tasks/main.yml in taperole-1.7.1 vs vendor/tersmitten.htop/tasks/main.yml in taperole-1.8.0
- old
+ new
@@ -1,27 +1,37 @@
----
# tasks file for htop
+---
- name: install
apt:
- name: htop
- state: latest
+ name: "{{ item }}"
+ state: "{{ apt_install_state | default('latest') }}"
update_cache: true
- cache_valid_time: 3600
- tags: [configuration, htop, htop-install]
+ cache_valid_time: "{{ apt_update_cache_valid_time | default(3600) }}"
+ with_items: "{{ htop_dependencies }}"
+ tags:
+ - configuration
+ - htop
+ - htop-install
- name: create configuration directory
file:
path: "{{ item.value.dest }}"
state: directory
- with_dict: htop_htoprc_destinations
- tags: [configuration, htop, htop-configuration]
+ with_dict: "{{ htop_htoprc_destinations }}"
+ tags:
+ - configuration
+ - htop
+ - htop-configuration
- name: create configuration file
copy:
src: etc/skel/.config/htop/htoprc
dest: "{{ item.value.dest }}/htoprc"
owner: "{{ item.value.owner | default('root') }}"
group: "{{ item.value.group | default(item.value.owner) | default('root') }}"
mode: "{{ item.value.mode | default('0644') }}"
force: "{{ 'yes' if htop_replace_htoprc else 'no' }}"
- with_dict: htop_htoprc_destinations
- tags: [configuration, htop, htop-configuration]
+ with_dict: "{{ htop_htoprc_destinations }}"
+ tags:
+ - configuration
+ - htop
+ - htop-configuration