Add common role
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
Torjus Håkestad 2022-01-13 00:24:36 +01:00
parent f6fc85fa7e
commit 5b89cfced5
5 changed files with 35 additions and 0 deletions

View File

@ -4,6 +4,10 @@
- name: Ping hosts - name: Ping hosts
ansible.builtin.ping: ansible.builtin.ping:
- hosts: all
roles:
- common
- hosts: docker2.t-juice.club - hosts: docker2.t-juice.club
roles: roles:
- vault - vault

View File

@ -0,0 +1,3 @@
---
- name: Ensure packages are installed
import_tasks: packages.yml

View File

@ -0,0 +1,16 @@
---
- name: Ensure common packages are installed
ansible.builtin.package:
name:
- zsh
- htop
- xfsprogs
- iotop
- name: Ensure debian-specific packages are installed
import_tasks: packages_debian.yml
when: ansible_facts['os-family']|lower == 'debian'
- name: Ensure rhel-specific packages are installed
import_tasks: packages_redhat.yml
when: ansible_facts['os-family']|lower == 'redhat'

View File

@ -0,0 +1,6 @@
---
- name: Ensure packages are installed
ansible.builtin.package:
name:
- vim
- xfsprogs

View File

@ -0,0 +1,6 @@
---
- name: Ensure packages are installed
ansible.builtin.package:
name:
- vim-enhanced
- yum-cron