main
Micke Nordin 1 year ago
parent 3d5908613b
commit cf3ebf765e

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 MiB

@ -43,7 +43,6 @@
autoclean: true autoclean: true
autoremove: true autoremove: true
install_recommends: true install_recommends: true
pkg: pkg: [nano]
- nano
state: absent state: absent
update_cache: true update_cache: true

@ -69,25 +69,25 @@
- name: Make my lvim real vim - name: Make my lvim real vim
become: true become: true
ansible.builtin.file: ansible.builtin.file:
src: "/home/{{ uid }}/.local/bin/lvim" src: /home/{{ uid }}/.local/bin/lvim
dest: /usr/local/bin/vim dest: /usr/local/bin/vim
state: link state: link
when: not have_nvim.stat.exists when: not have_nvim.stat.exists
- name: Install lunarvim config - name: Install lunarvim config
ansible.builtin.template: ansible.builtin.template:
src: ../templates/config.lua.j2 src: ../templates/config.lua.j2
dest: "/home/{{ uid }}/.config/lvim/config.lua" dest: /home/{{ uid }}/.config/lvim/config.lua
owner: "{{ uid }}" owner: '{{ uid }}'
group: "{{ uid }}" group: '{{ uid }}'
mode: '0644' mode: '0644'
- name: Create sources dir - name: Create sources dir
ansible.builtin.file: ansible.builtin.file:
dest: "/home/{{ uid }}/sources" dest: /home/{{ uid }}/sources
state: directory state: directory
when: not have_nvim.stat.exists when: not have_nvim.stat.exists
- name: Get tabby plugin - name: Get tabby plugin
ansible.builtin.command: ansible.builtin.command:
chdir: "/home/{{ uid }}/sources/" chdir: /home/{{ uid }}/sources/
cmd: git clone https://github.com/TabbyML/tabby.git cmd: git clone https://github.com/TabbyML/tabby.git
creates: "/home/{{ uid }}/sources/tabby" creates: /home/{{ uid }}/sources/tabby
when: not have_nvim.stat.exists when: not have_nvim.stat.exists

@ -8,12 +8,12 @@
tasks: tasks:
- name: Create ssh dir - name: Create ssh dir
ansible.builtin.file: ansible.builtin.file:
dest: "/home/{{ uid }}/.ssh" dest: /home/{{ uid }}/.ssh
state: directory state: directory
- name: Install authorized keys - name: Install authorized keys
ansible.builtin.template: ansible.builtin.template:
src: ../templates/authorized_keys.j2 src: ../templates/authorized_keys.j2
dest: "/home/{{ uid }}/.ssh/authorized_keys" dest: /home/{{ uid }}/.ssh/authorized_keys
owner: "{{ uid }}" owner: '{{ uid }}'
group: "{{ uid }}" group: '{{ uid }}'
mode: '0600' mode: '0600'

@ -10,29 +10,29 @@
- name: Install autotiling - name: Install autotiling
ansible.builtin.command: ansible.builtin.command:
cmd: pipx install autotiling cmd: pipx install autotiling
creates: "/home/{{ uid }}/.local/bin/autotiling" creates: /home/{{ uid }}/.local/bin/autotiling
- name: Create sway dir - name: Create sway dir
ansible.builtin.file: ansible.builtin.file:
dest: "/home/{{ uid }}/.config/sway" dest: /home/{{ uid }}/.config/sway
state: directory state: directory
- name: Install sway config - name: Install sway config
ansible.builtin.template: ansible.builtin.template:
src: ../templates/sway_config.j2 src: ../templates/sway_config.j2
dest: "/home/{{ uid }}/.config/sway/config" dest: /home/{{ uid }}/.config/sway/config
owner: "{{ uid }}" owner: '{{ uid }}'
group: "{{ uid }}" group: '{{ uid }}'
mode: '0640' mode: '0640'
notify: Reload sway notify: Reload sway
- name: Create waybar dir - name: Create waybar dir
ansible.builtin.file: ansible.builtin.file:
dest: "/home/{{ uid }}/.config/waybar" dest: /home/{{ uid }}/.config/waybar
state: directory state: directory
- name: Install waybar config - name: Install waybar config
ansible.builtin.template: ansible.builtin.template:
src: ../templates/waybar_config.j2 src: ../templates/waybar_config.j2
dest: "/home/{{ uid }}/.config/waybar/config" dest: /home/{{ uid }}/.config/waybar/config
owner: "{{ uid }}" owner: '{{ uid }}'
group: "{{ uid }}" group: '{{ uid }}'
mode: '0640' mode: '0640'
notify: Reload sway notify: Reload sway
- name: Create wallpaper dir - name: Create wallpaper dir

@ -8,7 +8,7 @@
tasks: tasks:
- name: Have zsh installed allready - name: Have zsh installed allready
stat: stat:
path: "/home/{{ uid }}/.oh-my-zsh" path: /home/{{ uid }}/.oh-my-zsh
register: ohmyzsh register: ohmyzsh
- name: Set zsh as default shell - name: Set zsh as default shell
become: true become: true
@ -34,8 +34,7 @@
- name: Install zshrc - name: Install zshrc
ansible.builtin.template: ansible.builtin.template:
src: ../templates/zshrc.j2 src: ../templates/zshrc.j2
dest: "/home/{{ uid }}/.zshrc" dest: /home/{{ uid }}/.zshrc
owner: "{{ uid }}" owner: '{{ uid }}'
group: "{{ uid }}" group: '{{ uid }}'
mode: '0644' mode: '0644'

Loading…
Cancel
Save