Qualify most of common by distro

This commit is contained in:
Salt 2020-09-02 18:12:10 -05:00
parent 5df58a3b5d
commit cfcf91a010
2 changed files with 17 additions and 1 deletions

View File

@ -42,8 +42,10 @@
- "92-unattended-upgrades"
- "95-hwe-eol"
- "97-overlayroot"
when: ansible_distribution == "Ubuntu"
- name: Configure Ansible user
include_tasks: ansibleuser.yml
- name: Configure services
include_tasks: services.yml
when: ansible_distribution == "Ubuntu"
become: yes

View File

@ -1,7 +1,7 @@
#!/usr/bin/ansible-playbook
# vim:ft=ansible:
---
- name: Install packages
- name: Install packages via APT
block:
- name: Update and upgrade apt packages
apt:
@ -31,3 +31,17 @@
name:
- smartmontools
become: yes
when: ansible_distribution == "Ubuntu"
- name: Install packages via APK
block:
- name: Install basic packages
apk:
name:
- coreutils
- git
- htop
- ncdu
- screen
- vim
become: yes
when: ansible_distribution == "postmarketOS"