Added building Ubuntu 20.04 template
This commit is contained in:
25
ansible/roles/os-linux-prep-templ/tasks/pkg-install.yml
Normal file
25
ansible/roles/os-linux-prep-templ/tasks/pkg-install.yml
Normal file
@ -0,0 +1,25 @@
|
||||
---
|
||||
|
||||
- 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"
|
Reference in New Issue
Block a user