dotfiles/fedora-atomic/toolbox.yml

68 lines
1.8 KiB
YAML
Raw Normal View History

2024-08-15 04:34:55 +00:00
---
- 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
- linode-cli
2024-08-15 04:34:55 +00:00
extra_args: --user
- name: Setup bin directory
ansible.builtin.file:
path: "{{ home_dir }}/bin"
state: directory
mode: "0755"
- name: Setup config directory
2024-08-15 04:34:55 +00:00
ansible.builtin.file:
path: "{{ home_dir }}/.config"
state: directory
mode: "0755"
2024-08-15 04:34:55 +00:00
- 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
- name: Link ssh config
ansible.builtin.file:
src: "{{ host_home_dir }}/.ssh"
dest: "{{ home_dir }}/.ssh"
state: link