Fix linting stuff
All checks were successful
Lint / Lint (3.11) (push) Successful in 1m50s
Lint / Lint (3.10) (push) Successful in 1m57s

This commit is contained in:
Ariejan de Vroom 2024-06-07 09:04:58 +02:00
parent c3d0049b18
commit 8eeb3e77a6
Signed by: ariejan
GPG Key ID: AD739154F713697B
15 changed files with 24 additions and 22 deletions

View File

@ -4,4 +4,4 @@ enable_list:
warn_list: warn_list:
- role-name - role-name
- var-naming - var-naming
- yaml[truthy] - yaml[truthy]

View File

@ -43,4 +43,4 @@ jobs:
ansible-lint --version ansible-lint --version
yamllint --version yamllint --version
yamllint --format parsable . yamllint --format parsable .
ansible-lint -v ansible-lint -v

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.vscode/

View File

@ -2,7 +2,7 @@
extends: default extends: default
ignore: | ignore: |
.github/workflows/main.yml .gitea/workflows/lint.yml
rules: rules:
braces: braces:
@ -14,4 +14,4 @@ rules:
- "yes" - "yes"
- "true" - "true"
- "no" - "no"
- "false" - "false"

View File

@ -1,3 +1,4 @@
---
user: user:
name: ariejan name: ariejan
password: $1$$$CW5QNaFq/vWd019fB9a/H. password: $1$$$CW5QNaFq/vWd019fB9a/H.
@ -5,7 +6,7 @@ user:
primary_group: users primary_group: users
additional_groups: docker,wheel additional_groups: docker,wheel
shell: /bin/zsh shell: /bin/zsh
country: Netherlands country: Netherlands
pacman: pacman:
parallel_downloads: 10 parallel_downloads: 10
@ -78,4 +79,4 @@ base_fonts:
- otf-cascadia-code - otf-cascadia-code
- ttf-cascadia-code - ttf-cascadia-code
- ttf-hack - ttf-hack
- ttf-hack-nerd - ttf-hack-nerd

View File

@ -2,9 +2,9 @@
- name: Ariejan's Arch Linux - name: Ariejan's Arch Linux
hosts: all hosts: all
roles: roles:
- { role: 01_host_info } - { role: 01_host_info }
- { role: 02_basics } - { role: 02_basics }
- { role: 03_wayland } - { role: 03_wayland }
- { role: 04_desktop } - { role: 04_desktop }
- { role: 05_packages } - { role: 05_packages }
- { role: 07_user } - { role: 07_user }

View File

@ -5,4 +5,4 @@ collections:
source: https://galaxy.ansible.com source: https://galaxy.ansible.com
- name: kewlfft.aur - name: kewlfft.aur
version: 0.11.1 version: 0.11.1
source: https://galaxy.ansible.com source: https://galaxy.ansible.com

View File

@ -41,4 +41,4 @@
community.general.pacman: community.general.pacman:
update_cache: yes update_cache: yes
upgrade: yes upgrade: yes
become: true become: true

View File

@ -68,4 +68,4 @@
- opencl-nvidia - opencl-nvidia
state: present state: present
become: true become: true
when: "'nvidia' in gpu_result.stdout.lower()" when: "'nvidia' in gpu_result.stdout.lower()"

View File

@ -17,4 +17,4 @@
ansible.builtin.systemd: ansible.builtin.systemd:
name: gdm.service name: gdm.service
enabled: yes enabled: yes
become: true become: true

View File

@ -27,4 +27,4 @@
state: present state: present
use: "{{ aur_helper }}" use: "{{ aur_helper }}"
become: true become: true
become_user: aur_builder become_user: aur_builder

View File

@ -12,4 +12,4 @@
state: present state: present
remote: flathub remote: flathub
become: true become: true
become_user: "{{ user.name }}" become_user: "{{ user.name }}"

View File

@ -3,4 +3,4 @@
community.general.pacman: community.general.pacman:
name: "{{ base_fonts }}" name: "{{ base_fonts }}"
state: present state: present
become: true become: true

View File

@ -1,6 +1,6 @@
--- ---
- name: Install Arch packages - name: Install Arch packages
ansible.builtin.pacman: community.general.pacman:
name: "{{ packages }}" name: "{{ packages }}"
state: present state: present
become: true become: true
@ -12,4 +12,4 @@
ansible.builtin.import_tasks: aur.yml ansible.builtin.import_tasks: aur.yml
- name: Install flatpaks - name: Install flatpaks
ansible.builtin.import_tasks: flatpak.yml ansible.builtin.import_tasks: flatpak.yml

View File

@ -1,13 +1,13 @@
--- ---
- name: Make sure we have a 'wheel' group - name: Make sure we have a 'wheel' group
group: ansible.builtin.group:
name: wheel name: wheel
state: present state: present
- name: Create user - name: Create user
ansible.builtin.user: ansible.builtin.user:
name: "{{ user.name }}" name: "{{ user.name }}"
# Use: openssl passwd -salt <salt> -1 <plaintext> # Use: openssl passwd -salt <salt> -1 <plaintext>
password: "{{ user.password }}" password: "{{ user.password }}"
update_password: on_create update_password: on_create
comment: "{{ user.full_name }}" comment: "{{ user.full_name }}"
@ -24,4 +24,4 @@
content: "{{ user.name }} ALL=(ALL:ALL) ALL" content: "{{ user.name }} ALL=(ALL:ALL) ALL"
mode: 0440 mode: 0440
validate: /usr/sbin/visudo -cf %s validate: /usr/sbin/visudo -cf %s
become: true become: true