Move common packages into another tasks file
This commit is contained in:
parent
166bcb59b6
commit
744b72858f
@ -3,31 +3,8 @@
|
||||
---
|
||||
- name: Configure basic system settings
|
||||
block:
|
||||
- name: Update and upgrade apt packages
|
||||
apt:
|
||||
upgrade: "yes"
|
||||
update_cache: yes
|
||||
# One day
|
||||
cache_valid_time: 86400
|
||||
- name: Install basic packages
|
||||
apt:
|
||||
name:
|
||||
- acl
|
||||
- aptitude
|
||||
- awscli
|
||||
- htop
|
||||
- ncdu
|
||||
- net-tools
|
||||
- openssh-server
|
||||
- pwgen
|
||||
- python3-apt
|
||||
- vim
|
||||
- whois
|
||||
- name: Install basic packages without recommends
|
||||
apt:
|
||||
install_recommends: no
|
||||
name:
|
||||
- smartmontools
|
||||
- name: Install packages
|
||||
include_tasks: packages.yml
|
||||
- name: Copy system configs
|
||||
template:
|
||||
src: "{{ item.src }}"
|
||||
|
31
roles/common/tasks/packages.yml
Normal file
31
roles/common/tasks/packages.yml
Normal file
@ -0,0 +1,31 @@
|
||||
#!/usr/bin/ansible-playbook
|
||||
# vim:ft=ansible:
|
||||
---
|
||||
- name: Install packages
|
||||
block:
|
||||
- name: Update and upgrade apt packages
|
||||
apt:
|
||||
upgrade: "yes"
|
||||
update_cache: yes
|
||||
# One day
|
||||
cache_valid_time: 86400
|
||||
- name: Install basic packages
|
||||
apt:
|
||||
name:
|
||||
- acl
|
||||
- aptitude
|
||||
- awscli
|
||||
- htop
|
||||
- ncdu
|
||||
- net-tools
|
||||
- openssh-server
|
||||
- pwgen
|
||||
- python3-apt
|
||||
- vim
|
||||
- whois
|
||||
- name: Install basic packages without recommends
|
||||
apt:
|
||||
install_recommends: no
|
||||
name:
|
||||
- smartmontools
|
||||
become: yes
|
Loading…
Reference in New Issue
Block a user