Add nvim and configure options #39

Merged
noah.knegt merged 10 commits from feature/nvim-and-config into develop 2024-04-16 19:05:55 +02:00
62 changed files with 178 additions and 653 deletions
Showing only changes of commit da391d2f1f - Show all commits

View File

@@ -7,7 +7,9 @@ ignore: |
rules:
truthy:
allowed-values: ['true', 'false']
allowed-values: ["true", "false"]
check-keys: false
level: error
line-length: disable
comments:
min-spaces-from-content: 1

View File

@@ -0,0 +1,17 @@
---
- name: Setup dotfiles repo
when: inventory_hostname in groups['localhost']
ansible.builtin.git:
repo: https://git.noahknegt.com/noah.knegt/dotfiles.git # noqa: latest
depth: 1
dest: /home/noahk/dotfiles
accept_hostkey: true
- name: Use stow to set up config data
when: inventory_hostname in groups['localhost']
become: true
become_user: noahk
become_method: ansible.builtin.su
ansible.builtin.command: cd /home/noahk/dotfiles && stow -t ~ .
register: stow_output
changed_when: stow_output.rc != 0

View File

@@ -10,21 +10,35 @@
---
- name: Include distribution variables
ansible.builtin.include_vars: "{{ ansible_distribution }}.yml"
ansible.builtin.include_vars:
file: "{{ ansible_distribution }}.yml"
# Setup the ansible user
- name: Create ansible user
ansible.builtin.include_tasks: users/ansible.yml
ansible.builtin.include_tasks:
file: users/ansible.yml
- name: Create usable user
ansible.builtin.include_tasks: users/noahk.yml
ansible.builtin.include_tasks:
file: users/noahk.yml
# Setup the sshd
- name: Setup openssh
ansible.builtin.include_tasks: system/openssh.yml
ansible.builtin.include_tasks:
file: system/openssh.yml
# Setup the repositories for Debian based systems
- name: Setup Debian based repositories
ansible.builtin.include_tasks: software/repositories.yml
ansible.builtin.include_tasks:
file: software/repositories.yml
- name: Install and configure UFW
ansible.builtin.include_tasks: software/ufw.yml
ansible.builtin.include_tasks:
file: software/ufw.yml
- name: Install stow
ansible.builtin.include_tasks:
file: software/stow.yml
- name: Configure the usable user
ansible.builtin.include_tasks:
file: config/noahk.yml

View File

@@ -0,0 +1,6 @@
---
- name: Install stow
when: inventory_hostname in groups['localhost']
ansible.builtin.package:
name: stow
state: present