diff --git a/.git-hooks/pre-commit b/.git-hooks/pre-commit new file mode 100755 index 0000000..6c18c36 --- /dev/null +++ b/.git-hooks/pre-commit @@ -0,0 +1,2 @@ +#!/usr/bin/env sh +ansible-lint diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 0000000..39aa361 --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,17 @@ +{ + "version": "2.0.0", + "tasks": [ + { + "label": "Run run.yml playbook", + "type": "shell", + "command": "ansible-playbook run.yml -K", + "problemMatcher": [] + }, + { + "label": "Lint", + "type": "shell", + "command": "ansible-lint", + "problemMatcher": [] + } + ] +} diff --git a/roles/common/tasks/packages.yml b/roles/common/tasks/packages.yml index 018e91c..b7eeb8c 100644 --- a/roles/common/tasks/packages.yml +++ b/roles/common/tasks/packages.yml @@ -18,14 +18,14 @@ # fonts - jetbrains-mono-fonts-all - fira-code-fonts - state: latest + state: present # Configure repos that will need to be available - name: Enable the RPM Fusion repository dnf: name: - - https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-{{ansible_distribution_major_version}}.noarch.rpm - - https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-{{ansible_distribution_major_version}}.noarch.rpm + - https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-{{ ansible_distribution_major_version }}.noarch.rpm + - https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-{{ ansible_distribution_major_version }}.noarch.rpm disable_gpg_check: yes state: present @@ -52,7 +52,10 @@ - ripgrep - ShellCheck - stow - state: latest + # ansible + - ansible # should already be available + - ansible-lint + state: present - name: Install main packages package: @@ -66,7 +69,7 @@ - steam - wine - winetricks - state: latest + state: present - name: Install zoom dnf: diff --git a/tasks/update-packages.yml b/tasks/update-packages.yml index 4e20099..3e1e107 100644 --- a/tasks/update-packages.yml +++ b/tasks/update-packages.yml @@ -1,4 +1,4 @@ - name: Update packages dnf: name: "*" - state: latest + state: present