test ansible os

This commit is contained in:
2022-10-29 18:11:29 +00:00
committed by GitHub
parent 26b36242a9
commit 6399795e88
5 changed files with 19 additions and 4 deletions

View File

@@ -1,9 +1,9 @@
- name: Load a variable file based on the OS type
include_vars: "{{ item }}"
with_first_found:
- "./roles/packages/vars/{{ ansible_distribution }}-{{ ansible_distribution_version }}.yml"
- "./roles/packages/vars/{{ ansible_distribution }}.yml"
- "./roles/packages/vars/defaults.yml"
- "vars/{{ ansible_distribution }}-{{ ansible_distribution_version }}.yml"
- "vars/{{ ansible_os_family }}.yml"
- "vars/defaults.yml"
- name:
include_tasks: "{{ ansible_distribution }}.yml"
include_tasks: "{{ ansible_os_family }}.yml"

View File

@@ -4,6 +4,21 @@ required_packages:
- powershell
- gnome-tweaks
- gnome-shell-extensions
- git
- zsh
- dotnet-sdk-3.1
- dotnet-sdk-6.0
- dotnet-sdk-7.0
- powershell
- kubectl
- podman
- octopuscli
- nodejs
- terraform
- yarn
- helm
- htop
- azure-cli
required_repository:
- {baseurl: 'https://packages.microsoft.com/rhel/8/prod/', name: 'Microsoft', gpgkey: 'https://packages.microsoft.com/keys/microsoft.asc'}