Browse Source

roles/service: new apt multipackage ansible style

python3
Zolfa 5 years ago
parent
commit
d361806a48
Signed by: zolfa GPG Key ID: E1A43B038C4D6616
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      roles/service/tasks/main.yaml

+ 1
- 2
roles/service/tasks/main.yaml View File

@ -2,12 +2,11 @@
- block:
- name: install {{ service_name }}
apt:
name: "{{ item }}"
pkg: "{{ service_packages }}"
state: present
update_cache: yes
cache_valid_time: 3600
install_recommends: '{{ install_recommends | default("no") }}'
with_items: "{{ service_packages }}"
- name: start {{ service_name }} at boot
service:


Loading…
Cancel
Save