new common setup playbook
This commit is contained in:
parent
be6e5e4857
commit
d47045f2dc
2 changed files with 72 additions and 0 deletions
3
fedora-atomic/setup.sh
Executable file
3
fedora-atomic/setup.sh
Executable file
|
@ -0,0 +1,3 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
ansible-playbook --ask-become-pass setup.yml
|
69
fedora-atomic/setup.yml
Normal file
69
fedora-atomic/setup.yml
Normal file
|
@ -0,0 +1,69 @@
|
||||||
|
---
|
||||||
|
- 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:
|
||||||
|
- 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
|
||||||
|
- im.fluffychat.Fluffychat
|
||||||
|
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
|
||||||
|
|
||||||
|
- 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
|
Loading…
Reference in a new issue