2024-10-14 22:19:57 +00:00
|
|
|
---
|
|
|
|
- name: Setup workstation
|
|
|
|
hosts: 127.0.0.1
|
|
|
|
connection: local
|
|
|
|
vars:
|
|
|
|
home_dir: "{{ ansible_facts['env']['HOME'] }}"
|
|
|
|
config_dir: "{{ ansible_facts['env']['HOME'] }}/.config"
|
|
|
|
share_dir: "{{ ansible_facts['env']['HOME'] }}/.local/share"
|
|
|
|
dotfiles_config_dir: "{{ ansible_facts['env']['HOME'] }}/dotfiles/.config"
|
|
|
|
|
|
|
|
tasks:
|
|
|
|
- name: Install Flatpaks from Flathub
|
|
|
|
community.general.flatpak:
|
|
|
|
name:
|
2024-10-14 22:33:35 +00:00
|
|
|
- io.gitlab.librewolf-community
|
|
|
|
- org.kde.kate
|
2024-10-14 22:19:57 +00:00
|
|
|
- org.gajim.Gajim
|
|
|
|
- io.crow_translate.CrowTranslate
|
|
|
|
- org.libreoffice.LibreOffice
|
|
|
|
- im.pidgin.Pidgin
|
|
|
|
- org.kde.gwenview
|
|
|
|
- org.kde.okular
|
|
|
|
- com.github.unrud.VideoDownloader
|
|
|
|
- chat.delta.desktop
|
2024-11-03 15:51:24 +00:00
|
|
|
- org.gnome.Fractal
|
2024-11-08 03:57:22 +00:00
|
|
|
- com.chatterino.chatterino//stable
|
2024-10-14 22:19:57 +00:00
|
|
|
state: present
|
|
|
|
remote: flathub
|
|
|
|
become: true
|
|
|
|
|
2024-11-03 15:51:24 +00:00
|
|
|
- name: Uninstall unwanted Flatpaks
|
|
|
|
community.general.flatpak:
|
|
|
|
name:
|
|
|
|
- im.fluffychat.Fluffychat
|
|
|
|
- org.kde.neochat
|
|
|
|
- im.nheko.Nheko
|
|
|
|
state: absent
|
|
|
|
remote: flathub
|
|
|
|
become: true
|
|
|
|
|
2024-10-14 22:19:57 +00:00
|
|
|
- name: Setup bin directory
|
|
|
|
ansible.builtin.file:
|
|
|
|
path: "{{ home_dir }}/bin"
|
|
|
|
state: directory
|
|
|
|
mode: "0755"
|
|
|
|
|
|
|
|
- name: Link git config
|
|
|
|
ansible.builtin.file:
|
|
|
|
src: "{{ dotfiles_config_dir }}/git"
|
|
|
|
dest: "{{ config_dir }}/git"
|
|
|
|
state: link
|
|
|
|
|
|
|
|
- name: Link mercurial config
|
|
|
|
ansible.builtin.file:
|
|
|
|
src: "{{ dotfiles_config_dir }}/hg"
|
|
|
|
dest: "{{ config_dir }}/hg"
|
|
|
|
state: link
|
|
|
|
|
|
|
|
- name: Link nano config
|
|
|
|
ansible.builtin.file:
|
|
|
|
src: "{{ dotfiles_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
|
|
|
|
|
2024-10-18 16:48:50 +00:00
|
|
|
- name: Create user autostart path
|
|
|
|
ansible.builtin.file:
|
|
|
|
path: "{{ config_dir }}/autostart"
|
|
|
|
state: directory
|
|
|
|
mode: "0755"
|
|
|
|
|
|
|
|
- name: Set syncthing to autostart
|
|
|
|
ansible.builtin.copy:
|
|
|
|
src: /usr/share/applications/syncthing-start.desktop
|
|
|
|
dest: "{{ config_dir }}/autostart/syncthing-start.desktop"
|
|
|
|
mode: "0644"
|
|
|
|
|
2024-10-14 22:19:57 +00:00
|
|
|
- name: Create cosmic settings path
|
|
|
|
ansible.builtin.file:
|
|
|
|
path: "{{ config_dir }}/cosmic/com.system76.CosmicSettings.Shortcuts/v1"
|
|
|
|
state: directory
|
|
|
|
mode: "0755"
|
|
|
|
|
|
|
|
# .config/cosmic/com.system76.CosmicSettings.Shortcuts/v1/custom
|
|
|
|
- name: Link custom cosmic shortcuts
|
|
|
|
ansible.builtin.file:
|
|
|
|
src: "{{ dotfiles_config_dir }}/cosmic/com.system76.CosmicSettings.Shortcuts/v1/custom"
|
|
|
|
dest: "{{ config_dir }}/cosmic/com.system76.CosmicSettings.Shortcuts/v1/custom"
|
|
|
|
state: link
|
2024-10-15 22:19:54 +00:00
|
|
|
|
|
|
|
- name: Update user profile
|
|
|
|
ansible.builtin.lineinfile:
|
|
|
|
path: "{{ home_dir }}/.bash_profile"
|
|
|
|
insertafter: EOF
|
|
|
|
line: . ~/dotfiles/.bash_profile-cosmic
|