Qualify most of common by distro
This commit is contained in:
parent
5df58a3b5d
commit
cfcf91a010
@ -42,8 +42,10 @@
|
|||||||
- "92-unattended-upgrades"
|
- "92-unattended-upgrades"
|
||||||
- "95-hwe-eol"
|
- "95-hwe-eol"
|
||||||
- "97-overlayroot"
|
- "97-overlayroot"
|
||||||
|
when: ansible_distribution == "Ubuntu"
|
||||||
- name: Configure Ansible user
|
- name: Configure Ansible user
|
||||||
include_tasks: ansibleuser.yml
|
include_tasks: ansibleuser.yml
|
||||||
- name: Configure services
|
- name: Configure services
|
||||||
include_tasks: services.yml
|
include_tasks: services.yml
|
||||||
|
when: ansible_distribution == "Ubuntu"
|
||||||
become: yes
|
become: yes
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#!/usr/bin/ansible-playbook
|
#!/usr/bin/ansible-playbook
|
||||||
# vim:ft=ansible:
|
# vim:ft=ansible:
|
||||||
---
|
---
|
||||||
- name: Install packages
|
- name: Install packages via APT
|
||||||
block:
|
block:
|
||||||
- name: Update and upgrade apt packages
|
- name: Update and upgrade apt packages
|
||||||
apt:
|
apt:
|
||||||
@ -31,3 +31,17 @@
|
|||||||
name:
|
name:
|
||||||
- smartmontools
|
- smartmontools
|
||||||
become: yes
|
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"
|
||||||
|
Loading…
Reference in New Issue
Block a user