Skip to content
Snippets Groups Projects
Commit 8f4efe3e authored by nd's avatar nd
Browse files
parents 7f27e9ad e5b019ac
No related branches found
No related tags found
No related merge requests found
basic_tools:
install_packages: True
default_repos: default_repos:
debian: debian:
bookworm: &debian_default_repos bookworm: &debian_default_repos
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
set_fact: set_fact:
package_distro: "{% if ansible_lsb.id|d('') == 'Raspbian' %}raspbian{% else %}{{ ansible_distribution|lower }}{% endif %}" package_distro: "{% if ansible_lsb.id|d('') == 'Raspbian' %}raspbian{% else %}{{ ansible_distribution|lower }}{% endif %}"
- name: install default packages and repos - name: install default packages and repos
when:
- basic_tools.install_packages
include_role: include_role:
name: packages name: packages
vars: vars:
...@@ -19,7 +21,7 @@ ...@@ -19,7 +21,7 @@
- name: copy vimrc - name: copy vimrc
copy: copy:
src: dotfiles/vimrc src: dotfiles/vimrc
dest: /etc/vim/vimrc dest: "{% if ansible_facts['distribution'] != 'Archlinux' %}/etc/vim/vimrc{% else %}/etc/vimrc{% endif %}"
mode: 0644 mode: 0644
- name: copy zshrc - name: copy zshrc
copy: copy:
...@@ -44,11 +46,15 @@ ...@@ -44,11 +46,15 @@
mode: 0644 mode: 0644
- name: enforce vim as editor - name: enforce vim as editor
when:
- ansible_facts['distribution'] != 'Archlinux'
community.general.alternatives: community.general.alternatives:
name: editor name: editor
path: /usr/bin/vim.basic path: /usr/bin/vim.basic
- name: remove /etc/apt/sources.list - name: remove /etc/apt/sources.list
when:
- ansible_facts['distribution'] != 'Archlinux'
copy: copy:
dest: /etc/apt/sources.list dest: /etc/apt/sources.list
content: "# managed by ansible\n" content: "# managed by ansible\n"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment