2024-03-31 14:27:11 +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:
|
2024-08-15 01:58:07 +00:00
|
|
|
# - name: SHow facts
|
|
|
|
# ansible.builtin.debug:
|
|
|
|
# var: ansible_facts
|
2024-03-31 14:27:11 +00:00
|
|
|
- name: Install Flatpaks from Flathub
|
|
|
|
community.general.flatpak:
|
|
|
|
name:
|
|
|
|
- org.gajim.Gajim
|
|
|
|
- org.gtk.Gtk3theme.Breeze
|
|
|
|
- org.telegram.desktop
|
|
|
|
- io.crow_translate.CrowTranslate
|
|
|
|
- im.dino.Dino
|
|
|
|
- org.libreoffice.LibreOffice
|
|
|
|
- im.pidgin.Pidgin
|
|
|
|
- org.kde.gwenview
|
|
|
|
- org.kde.okular
|
2024-04-06 12:41:20 +00:00
|
|
|
- com.github.unrud.VideoDownloader
|
2024-06-23 14:31:40 +00:00
|
|
|
- org.kde.neochat
|
|
|
|
- im.nheko.Nheko
|
|
|
|
- chat.delta.desktop
|
2024-09-09 01:37:48 +00:00
|
|
|
- im.fluffychat.Fluffychat
|
2024-03-31 14:27:11 +00:00
|
|
|
state: present
|
|
|
|
remote: flathub
|
|
|
|
become: true
|
|
|
|
|
|
|
|
- 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-08-16 20:40:39 +00:00
|
|
|
|
2024-09-21 13:30:34 +00:00
|
|
|
- name: Create cosmic settings path
|
|
|
|
ansible.builtin.file:
|
|
|
|
path: "{{ config_dir }}/cosmic/com.system76.CosmicSettings.Shortcuts/v1"
|
|
|
|
state: directory
|
|
|
|
mode: "0755"
|
|
|
|
|
2024-08-16 20:40:39 +00:00
|
|
|
# .config/cosmic/com.system76.CosmicSettings.Shortcuts/v1/custom
|
2024-08-16 20:54:25 +00:00
|
|
|
- name: Link custom cosmic shortcuts
|
2024-08-16 20:40:39 +00:00
|
|
|
ansible.builtin.file:
|
2024-08-16 20:54:25 +00:00
|
|
|
src: "{{ dotfiles_config_dir }}/cosmic/com.system76.CosmicSettings.Shortcuts/v1/custom"
|
|
|
|
dest: "{{ config_dir }}/cosmic/com.system76.CosmicSettings.Shortcuts/v1/custom"
|
2024-08-16 20:40:39 +00:00
|
|
|
state: link
|