26 lines
597 B
YAML
26 lines
597 B
YAML
---
|
|
|
|
- include_vars: os-pkg-list.yml
|
|
|
|
- name: Install of packages for Debian
|
|
block:
|
|
- name: Install from list of packages for Debian
|
|
apt:
|
|
state: latest
|
|
pkg: "{{ debian_install_pkg_list }}"
|
|
- name: Run "apt-get clean" for Debian
|
|
apt:
|
|
clean: yes
|
|
when: ansible_distribution == "Debian"
|
|
|
|
- name: Install of packages for Ubuntu
|
|
block:
|
|
- name: Install from list of packages for Ubuntu
|
|
apt:
|
|
state: latest
|
|
pkg: "{{ ubuntu_install_pkg_list }}"
|
|
- name: Run "apt-get clean" for Ubuntu
|
|
apt:
|
|
clean: yes
|
|
when: ansible_distribution == "Ubuntu"
|