update ansible files
This commit is contained in:
BIN
ansible/roles/customize/files/wallpaper.png
Normal file
BIN
ansible/roles/customize/files/wallpaper.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 362 KiB |
29
ansible/roles/customize/tasks/defaults.yml
Normal file
29
ansible/roles/customize/tasks/defaults.yml
Normal file
@@ -0,0 +1,29 @@
|
||||
- name: install fonts
|
||||
include_tasks: "./scripts/install_fonts.yml"
|
||||
|
||||
- name: set gnome config
|
||||
become_user: user
|
||||
dconf:
|
||||
key: "{{ item.key }}"
|
||||
value: "{{ item.value }}"
|
||||
with_items: "{{ dconf }}"
|
||||
when: dconf is defined
|
||||
|
||||
- user:
|
||||
name: "user"
|
||||
shell: /usr/bin/zsh
|
||||
|
||||
- name: Create bin folder
|
||||
become_user: user
|
||||
ansible.builtin.file:
|
||||
path: ~/.local/bin
|
||||
owner: "user"
|
||||
group: "user"
|
||||
mode: '0770'
|
||||
state: directory
|
||||
|
||||
- name: run stow
|
||||
become_user: user
|
||||
shell: "stow --adopt ."
|
||||
args:
|
||||
chdir: ~/.dotfiles
|
||||
11
ansible/roles/customize/tasks/main.yml
Normal file
11
ansible/roles/customize/tasks/main.yml
Normal file
@@ -0,0 +1,11 @@
|
||||
- name: Load a variable file
|
||||
include_vars: "{{ item }}"
|
||||
with_first_found:
|
||||
- "vars/{{ ansible_distribution }}-{{ ansible_distribution_version }}.yml"
|
||||
- "vars/{{ ansible_distribution }}.yml"
|
||||
- "vars/{{ ansible_os_family }}.yml"
|
||||
- "vars/defaults.yml"
|
||||
|
||||
- name:
|
||||
include_tasks: "defaults.yml"
|
||||
|
||||
11
ansible/roles/customize/vars/Pop!_OS-22.04.yml
Normal file
11
ansible/roles/customize/vars/Pop!_OS-22.04.yml
Normal file
@@ -0,0 +1,11 @@
|
||||
dconf:
|
||||
- {key: '/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings', value: "['/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom1/']"}
|
||||
- {key: '/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom1/binding', value: "'<Super>t'"}
|
||||
- {key: '/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom1/command', value: "'terminator'"}
|
||||
- {key: '/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom1/name', value: "'Terminator'"}
|
||||
- {key: '/org/gnome/desktop/background/picture-uri', value: "'file://${HOME}/.config/ansible/roles/customize/files/wallpaper.png'"}
|
||||
- {key: '/org/gnome/desktop/background/picture-uri-dark', value: "'file://${HOME}/.config/ansible/roles/customize/files/wallpaper.png'"}
|
||||
|
||||
fonts:
|
||||
- {name: 'GoMonoNerd', url: "https://github.com/ryanoasis/nerd-fonts/releases/download/v3.2.1/Go-Mono.zip"}
|
||||
- {name: 'FiraCodeNerd', url: "https://github.com/ryanoasis/nerd-fonts/releases/download/v3.2.1/FiraCode.zip"}
|
||||
8
ansible/roles/packages/tasks/defaults.yml
Normal file
8
ansible/roles/packages/tasks/defaults.yml
Normal file
@@ -0,0 +1,8 @@
|
||||
- name: install apt
|
||||
include_tasks: "./scripts/install_apt.yml"
|
||||
|
||||
- name: install flatpak
|
||||
include_tasks: "./scripts/install_flatpak.yml"
|
||||
|
||||
- name: install brew
|
||||
include_tasks: "./scripts/install_brew.yml"
|
||||
11
ansible/roles/packages/tasks/main.yml
Normal file
11
ansible/roles/packages/tasks/main.yml
Normal file
@@ -0,0 +1,11 @@
|
||||
- name: Load a variable file
|
||||
include_vars: "{{ item }}"
|
||||
with_first_found:
|
||||
- "vars/{{ ansible_distribution }}-{{ ansible_distribution_version }}.yml"
|
||||
- "vars/{{ ansible_distribution }}.yml"
|
||||
- "vars/{{ ansible_os_family }}.yml"
|
||||
- "vars/defaults.yml"
|
||||
|
||||
- name:
|
||||
include_tasks: "defaults.yml"
|
||||
|
||||
29
ansible/roles/packages/vars/Pop!_OS-22.04.yml
Normal file
29
ansible/roles/packages/vars/Pop!_OS-22.04.yml
Normal file
@@ -0,0 +1,29 @@
|
||||
install_homebrew_if_missing: true
|
||||
|
||||
required_packages_brew:
|
||||
- lazygit
|
||||
- fzf
|
||||
- glab
|
||||
- go
|
||||
- neovim
|
||||
- oh-my-posh
|
||||
- tpm
|
||||
- terraform
|
||||
- kubernetes-cli
|
||||
- zsh-autosuggestions
|
||||
|
||||
apt_keys:
|
||||
- https://packages.microsoft.com/keys/microsoft.asc
|
||||
apt_repo:
|
||||
- deb [arch=amd64] https://packages.microsoft.com/ubuntu/22.04/prod jammy main
|
||||
|
||||
required_packages_apt:
|
||||
- powershell
|
||||
- curl
|
||||
|
||||
flatpak_remote:
|
||||
- {name: 'flathub', url: "https://dl.flathub.org/repo/flathub.flatpakrepo"}
|
||||
|
||||
required_packages_flatpak:
|
||||
- VSCodium
|
||||
|
||||
Reference in New Issue
Block a user