move sync filesystem specifics out
This commit is contained in:
parent
f5e44f609b
commit
9eb8932975
3 changed files with 74 additions and 28 deletions
|
@ -61,31 +61,3 @@
|
||||||
src: "{{ dotfiles_config_dir }}/starship.toml"
|
src: "{{ dotfiles_config_dir }}/starship.toml"
|
||||||
dest: "{{ config_dir }}/starship.toml"
|
dest: "{{ config_dir }}/starship.toml"
|
||||||
state: link
|
state: link
|
||||||
|
|
||||||
- name: Link some magics
|
|
||||||
ansible.builtin.file:
|
|
||||||
src: "{{ home_dir }}/Sync/bin/p-wayland.sh"
|
|
||||||
dest: "{{ home_dir }}/bin/p"
|
|
||||||
state: link
|
|
||||||
|
|
||||||
- name: Link msmtp config
|
|
||||||
ansible.builtin.file:
|
|
||||||
src: "{{ home_dir }}/Sync/.msmtprc"
|
|
||||||
dest: "{{ home_dir }}/.msmtprc"
|
|
||||||
state: link
|
|
||||||
|
|
||||||
- name: Link mutt config
|
|
||||||
ansible.builtin.file:
|
|
||||||
src: "{{ home_dir }}/Sync/.config/mutt"
|
|
||||||
dest: "{{ config_dir }}/mutt"
|
|
||||||
state: link
|
|
||||||
|
|
||||||
- name: Link mailcap config
|
|
||||||
ansible.builtin.file:
|
|
||||||
src: "{{ home_dir }}/dotfiles/.mailcap"
|
|
||||||
dest: "{{ home_dir }}/.mailcap"
|
|
||||||
state: link
|
|
||||||
|
|
||||||
- name: Tasks for aarch64 system
|
|
||||||
ansible.builtin.include_tasks: aarch64.yml
|
|
||||||
when: ansible_facts['architecture'] == "aarch64"
|
|
||||||
|
|
14
fedora-atomic/toolbox-setup.sh
Executable file
14
fedora-atomic/toolbox-setup.sh
Executable file
|
@ -0,0 +1,14 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
if [ -z "${DISTROBOX_ENTER_PATH}" ]; then
|
||||||
|
echo
|
||||||
|
echo "Run this in a distrobox container!"
|
||||||
|
exit 0;
|
||||||
|
fi
|
||||||
|
|
||||||
|
ansible-playbook toolbox.yml
|
||||||
|
|
||||||
|
distrobox-export --bin /usr/bin/bash-language-server
|
||||||
|
distrobox-export --bin /usr/bin/rpm_lsp_server
|
||||||
|
distrobox-export --bin /usr/bin/clangd
|
||||||
|
distrobox-export --bin ~/.local/bin/pylsp
|
60
fedora-atomic/toolbox.yml
Normal file
60
fedora-atomic/toolbox.yml
Normal file
|
@ -0,0 +1,60 @@
|
||||||
|
---
|
||||||
|
- name: Setup distrobox workspace
|
||||||
|
hosts: 127.0.0.1
|
||||||
|
connection: local
|
||||||
|
vars:
|
||||||
|
home_dir: "{{ ansible_facts['env']['HOME'] }}"
|
||||||
|
config_dir: "{{ ansible_facts['env']['HOME'] }}/.config"
|
||||||
|
host_home_dir: "{{ ansible_facts['env']['DISTROBOX_HOST_HOME'] }}"
|
||||||
|
host_config_dir: "{{ ansible_facts['env']['DISTROBOX_HOST_HOME'] }}/.config"
|
||||||
|
dotfiles_config_dir: "{{ ansible_facts['env']['DISTROBOX_HOST_HOME'] }}/dotfiles/.config"
|
||||||
|
|
||||||
|
tasks:
|
||||||
|
- name: Install user python modules
|
||||||
|
ansible.builtin.pip:
|
||||||
|
name:
|
||||||
|
- hg-evolve
|
||||||
|
- python-lsp-server
|
||||||
|
extra_args: --user
|
||||||
|
|
||||||
|
- name: Setup bin directory
|
||||||
|
ansible.builtin.file:
|
||||||
|
path: "{{ home_dir }}/bin"
|
||||||
|
state: directory
|
||||||
|
mode: "0755"
|
||||||
|
|
||||||
|
- name: Install Starship
|
||||||
|
ansible.builtin.file:
|
||||||
|
src: "{{ host_home_dir }}/bin/starship"
|
||||||
|
dest: "{{ home_dir }}/bin/starship"
|
||||||
|
state: link
|
||||||
|
|
||||||
|
- name: Setup config directory
|
||||||
|
ansible.builtin.file:
|
||||||
|
path: "{{ config_dir }}"
|
||||||
|
state: directory
|
||||||
|
mode: "0755"
|
||||||
|
|
||||||
|
- name: Link git config
|
||||||
|
ansible.builtin.file:
|
||||||
|
src: "{{ host_config_dir }}/git"
|
||||||
|
dest: "{{ config_dir }}/git"
|
||||||
|
state: link
|
||||||
|
|
||||||
|
- name: Link mercurial config
|
||||||
|
ansible.builtin.file:
|
||||||
|
src: "{{ host_config_dir }}/hg"
|
||||||
|
dest: "{{ config_dir }}/hg"
|
||||||
|
state: link
|
||||||
|
|
||||||
|
- name: Link nano config
|
||||||
|
ansible.builtin.file:
|
||||||
|
src: "{{ host_config_dir }}/nano"
|
||||||
|
dest: "{{ config_dir }}/nano"
|
||||||
|
state: link
|
||||||
|
|
||||||
|
- name: Link starship config
|
||||||
|
ansible.builtin.file:
|
||||||
|
src: "{{ dotfiles_config_dir }}/starship.toml"
|
||||||
|
dest: "{{ config_dir }}/starship.toml"
|
||||||
|
state: link
|
Loading…
Reference in a new issue