Change common conditional
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
Torjus Håkestad 2022-01-13 00:29:03 +01:00
parent 5b89cfced5
commit 303cd59aa1
3 changed files with 5 additions and 3 deletions

View File

@ -6,11 +6,12 @@
- htop - htop
- xfsprogs - xfsprogs
- iotop - iotop
state: present
- name: Ensure debian-specific packages are installed - name: Ensure debian-specific packages are installed
import_tasks: packages_debian.yml import_tasks: packages_debian.yml
when: ansible_facts['os-family']|lower == 'debian' when: ansible_facts['os-family'] == 'Debian'
- name: Ensure rhel-specific packages are installed - name: Ensure rhel-specific packages are installed
import_tasks: packages_redhat.yml import_tasks: packages_redhat.yml
when: ansible_facts['os-family']|lower == 'redhat' when: ansible_facts['os-family'] == 'RedHat'

View File

@ -3,4 +3,4 @@
ansible.builtin.package: ansible.builtin.package:
name: name:
- vim - vim
- xfsprogs state: present

View File

@ -4,3 +4,4 @@
name: name:
- vim-enhanced - vim-enhanced
- yum-cron - yum-cron
state: present