Removed unneeded stuff
keep it in develop branch
This commit is contained in:
@@ -1,86 +0,0 @@
|
|||||||
# Load distro-specific variables
|
|
||||||
- include_vars: "{{ ansible_distribution }}.yml"
|
|
||||||
tags: always
|
|
||||||
|
|
||||||
- block:
|
|
||||||
## User configs
|
|
||||||
- import_tasks: users/rene.yml
|
|
||||||
|
|
||||||
## desktop environments
|
|
||||||
|
|
||||||
# - include_tasks: desktop_environments/mate/appearance.yml
|
|
||||||
# when: mate is defined and mate == true
|
|
||||||
|
|
||||||
# - include_tasks: desktop_environments/mate/caja.yml
|
|
||||||
# when: mate is defined and mate == true
|
|
||||||
|
|
||||||
# - include_tasks: desktop_environments/mate/keybindings.yml
|
|
||||||
# when: mate is defined and mate == true
|
|
||||||
|
|
||||||
# - include_tasks: desktop_environments/mate/packages.yml
|
|
||||||
# when: mate is defined and mate == true
|
|
||||||
|
|
||||||
# - include_tasks: desktop_environments/mate/peripherals.yml
|
|
||||||
# when: mate is defined and mate == true
|
|
||||||
|
|
||||||
# - include_tasks: desktop_environments/mate/terminal.yml
|
|
||||||
# when: mate is defined and mate == true
|
|
||||||
|
|
||||||
# - include_tasks: desktop_environments/mate/workspace_settings.yml
|
|
||||||
# when: mate is defined and mate == true
|
|
||||||
|
|
||||||
# - include_tasks: desktop_environments/gnome/appearance.yml
|
|
||||||
# when: gnome is defined and gnome == true
|
|
||||||
|
|
||||||
# - include_tasks: desktop_environments/gnome/keybindings.yml
|
|
||||||
# when: gnome is defined and gnome == true
|
|
||||||
|
|
||||||
# - include_tasks: desktop_environments/gnome/nautilus.yml
|
|
||||||
# when: gnome is defined and gnome == true
|
|
||||||
|
|
||||||
# - include_tasks: desktop_environments/gnome/packages.yml
|
|
||||||
# when: gnome is defined and gnome == true
|
|
||||||
|
|
||||||
# - include_tasks: desktop_environments/gnome/peripherals.yml
|
|
||||||
# when: gnome is defined and gnome == true
|
|
||||||
|
|
||||||
# - include_tasks: desktop_environments/gnome/shell_settings.yml
|
|
||||||
# when: gnome is defined and gnome == true
|
|
||||||
|
|
||||||
# - include_tasks: desktop_environments/gnome/terminal.yml
|
|
||||||
# when: gnome is defined and gnome == true
|
|
||||||
|
|
||||||
# - include_tasks: desktop_environments/gnome/tracker.yml
|
|
||||||
# when: gnome is defined and gnome == true
|
|
||||||
|
|
||||||
## system setup
|
|
||||||
# - import_tasks: system_setup/autofs.yml
|
|
||||||
# - import_tasks: system_setup/scripts.yml
|
|
||||||
# - import_tasks: system_setup/tweaks.yml
|
|
||||||
## install software
|
|
||||||
# - import_tasks: software/audacious.yml
|
|
||||||
# - import_tasks: software/audacity.yml
|
|
||||||
# - import_tasks: software/codecs.yml
|
|
||||||
# - import_tasks: software/chromium.yml
|
|
||||||
# - import_tasks: software/darktable.yml
|
|
||||||
# - import_tasks: software/firefox.yml
|
|
||||||
# - import_tasks: software/foliate.yml
|
|
||||||
# - import_tasks: software/google_chrome.yml
|
|
||||||
# - import_tasks: software/glimpse.yml
|
|
||||||
# - import_tasks: software/kdenlive.yml
|
|
||||||
# - import_tasks: software/keepassxc.yml
|
|
||||||
# - import_tasks: software/libreoffice.yml
|
|
||||||
# - import_tasks: software/linode-cli.yml
|
|
||||||
# - import_tasks: software/lutris.yml
|
|
||||||
# - import_tasks: software/mattermost.yml
|
|
||||||
# - import_tasks: software/misc_games.yml
|
|
||||||
# - import_tasks: software/misc_packages.yml
|
|
||||||
# - import_tasks: software/steam.yml
|
|
||||||
# - import_tasks: software/syncthing.yml
|
|
||||||
# - import_tasks: software/thunderbird.yml
|
|
||||||
# - import_tasks: software/virtualbox.yml
|
|
||||||
# - import_tasks: software/vivaldi.yml
|
|
||||||
# - import_tasks: software/vlc.yml
|
|
||||||
|
|
||||||
rescue:
|
|
||||||
- set_fact: task_failed=true
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
- name: software | audacious | install package
|
|
||||||
tags: packages,flatpak,audacious,workstation-packages
|
|
||||||
become_user: jay
|
|
||||||
flatpak:
|
|
||||||
name: org.atheme.audacious
|
|
||||||
method: user
|
|
||||||
state: present
|
|
||||||
when: audacious is defined and audacious == true
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
- name: software | audacity | install package
|
|
||||||
tags: packages,flatpak,audacity,workstation-packages
|
|
||||||
become_user: jay
|
|
||||||
flatpak:
|
|
||||||
name: org.audacityteam.Audacity
|
|
||||||
method: user
|
|
||||||
state: present
|
|
||||||
when: audacity is defined and audacity == true
|
|
||||||
@@ -1,24 +0,0 @@
|
|||||||
# note: snap packages not automated in arch yet, snapd is not available in repo
|
|
||||||
- name: software | authy | install package
|
|
||||||
tags: packages,authy,snap,workstation-packages
|
|
||||||
snap:
|
|
||||||
name: authy
|
|
||||||
channel: latest/edge
|
|
||||||
state: present
|
|
||||||
when:
|
|
||||||
- ansible_distribution != "Archlinux"
|
|
||||||
- authy is defined
|
|
||||||
- authy == true
|
|
||||||
|
|
||||||
- name: software | authy | enable autostart
|
|
||||||
tags: packages,authy,snap,workstation-packages
|
|
||||||
file:
|
|
||||||
src: /var/lib/snapd/desktop/applications/authy_authy.desktop
|
|
||||||
dest: /home/jay/.config/autostart/authy.desktop
|
|
||||||
owner: jay
|
|
||||||
group: jay
|
|
||||||
state: link
|
|
||||||
when:
|
|
||||||
- ansible_distribution != "Archlinux"
|
|
||||||
- authy is defined
|
|
||||||
- authy == true
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
- name: software | bitwarden | install package
|
|
||||||
tags: bitwarden,packages,flatpak,workstation-packages
|
|
||||||
become_user: jay
|
|
||||||
flatpak:
|
|
||||||
name: flathub com.bitwarden.desktop
|
|
||||||
method: user
|
|
||||||
state: present
|
|
||||||
when: bitwarden is defined and bitwarden == true
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
- name: software | boto | install package
|
|
||||||
tags: boto,packages,pip,python
|
|
||||||
become_user: jay
|
|
||||||
pip:
|
|
||||||
executable: /usr/bin/pip3
|
|
||||||
state: latest
|
|
||||||
name: boto
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
# Arch isn't packaging caffeine for some stupid reason.
|
|
||||||
- name: software | install caffeine
|
|
||||||
tags: packages,workstation-packages,caffeine
|
|
||||||
package:
|
|
||||||
name: caffeine
|
|
||||||
when: ansible_distribution != "Archlinux"
|
|
||||||
@@ -1,21 +0,0 @@
|
|||||||
# note: snap packages not automated in arch yet, snapd is not available in repo
|
|
||||||
|
|
||||||
- name: software | chromium | install snap package
|
|
||||||
tags: packages,chromium,snap,workstation-packages
|
|
||||||
snap:
|
|
||||||
name: chromium
|
|
||||||
state: present
|
|
||||||
when:
|
|
||||||
- ansible_distribution != "Archlinux"
|
|
||||||
- chromium is defined
|
|
||||||
- chromium == true
|
|
||||||
|
|
||||||
- name: software | chromium | install distro package (arch)
|
|
||||||
tags: packages,chromium,snap,workstation-packages
|
|
||||||
package:
|
|
||||||
name: chromium
|
|
||||||
state: latest
|
|
||||||
when:
|
|
||||||
- ansible_distribution == "Archlinux"
|
|
||||||
- chromium is defined
|
|
||||||
- chromium == true
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
- name: software | install multimedia codecs
|
|
||||||
tags: packages,system,system-packages,workstation-packages
|
|
||||||
package:
|
|
||||||
name:
|
|
||||||
- "{{ gstreamer_libav_package }}"
|
|
||||||
- "{{ gstreamer_plugins_bad_package }}"
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
- name: software | darktable | install package
|
|
||||||
tags: packages,flatpak,darktable,workstation-packages
|
|
||||||
become_user: jay
|
|
||||||
flatpak:
|
|
||||||
name: org.darktable.Darktable
|
|
||||||
method: user
|
|
||||||
state: present
|
|
||||||
when: darktable is defined and darktable == true
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
- name: software | firefox | install package
|
|
||||||
tags: packages,firefox,flatpak,workstation-packages
|
|
||||||
become_user: jay
|
|
||||||
flatpak:
|
|
||||||
name: org.mozilla.firefox
|
|
||||||
method: user
|
|
||||||
state: present
|
|
||||||
when: firefox is defined and firefox == true
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
- name: software | foliate | install package
|
|
||||||
tags: packages,flatpak,foliate,workstation-packages
|
|
||||||
become_user: jay
|
|
||||||
flatpak:
|
|
||||||
name: com.github.johnfactotum.Foliate
|
|
||||||
method: user
|
|
||||||
state: present
|
|
||||||
when: foliate is defined and foliate == true
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
- name: software | glimpse | install package
|
|
||||||
tags: packages,flatpak,glimpse,workstation-packages
|
|
||||||
become_user: jay
|
|
||||||
flatpak:
|
|
||||||
name: org.glimpse_editor.Glimpse
|
|
||||||
method: user
|
|
||||||
state: present
|
|
||||||
when: glimpse is defined and glimpse == true
|
|
||||||
@@ -1,22 +0,0 @@
|
|||||||
- name: software | google-chrome | add repository key
|
|
||||||
apt_key:
|
|
||||||
url: https://dl-ssl.google.com/linux/linux_signing_key.pub
|
|
||||||
when: ansible_distribution in ["Debian", "Pop!_OS", "Ubuntu"]
|
|
||||||
|
|
||||||
- name: software | google-chrome | add repository
|
|
||||||
apt_repository:
|
|
||||||
repo: "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main"
|
|
||||||
filename: google-chrome
|
|
||||||
register: chrome_repo
|
|
||||||
when: ansible_distribution in ["Debian", "Pop!_OS", "Ubuntu"]
|
|
||||||
|
|
||||||
- name: software | google-chrome | update sources (repo added or changed)
|
|
||||||
apt:
|
|
||||||
update_cache: yes
|
|
||||||
changed_when: False
|
|
||||||
when: chrome_repo.changed
|
|
||||||
|
|
||||||
- name: software | google-chrome | install package
|
|
||||||
apt:
|
|
||||||
name: google-chrome-stable
|
|
||||||
when: ansible_distribution in ["Debian", "Pop!_OS", "Ubuntu"]
|
|
||||||
@@ -1,16 +0,0 @@
|
|||||||
- name: software | kdenlive | copy launcher
|
|
||||||
tags: apps,appimage,software,kdenlive
|
|
||||||
copy:
|
|
||||||
src: users/jay/kdenlive.desktop
|
|
||||||
dest: /home/jay/.local/share/applications/kdenlive.desktop
|
|
||||||
owner: jay
|
|
||||||
group: jay
|
|
||||||
mode: 0700
|
|
||||||
|
|
||||||
- name: software | kdenlive | install package
|
|
||||||
get_url:
|
|
||||||
url: https://download.kde.org/stable/kdenlive/20.08/linux/kdenlive-20.08.2-x86_64.appimage
|
|
||||||
dest: /home/jay/bin/kdenlive.app
|
|
||||||
mode: '0700'
|
|
||||||
owner: jay
|
|
||||||
group: jay
|
|
||||||
@@ -1,37 +0,0 @@
|
|||||||
- name: software | keepassxc | install package
|
|
||||||
tags: packages,firefox,flatpak,workstation-packages
|
|
||||||
become_user: jay
|
|
||||||
flatpak:
|
|
||||||
name: org.keepassxc.KeePassXC
|
|
||||||
method: user
|
|
||||||
state: present
|
|
||||||
|
|
||||||
- name: software | keepassxc | enable autostart
|
|
||||||
tags: packages,keepassxc,flatpak,workstation-packages
|
|
||||||
file:
|
|
||||||
src: /home/jay/.local/share/flatpak/exports/share/applications/org.keepassxc.KeePassXC.desktop
|
|
||||||
dest: /home/jay/.config/autostart/org.keepassxc.KeePassXC.desktop
|
|
||||||
owner: jay
|
|
||||||
group: jay
|
|
||||||
state: link
|
|
||||||
|
|
||||||
- name: software | keepassxc | create keepassxc install directory
|
|
||||||
tags: packages,keepassxc,flatpak,workstation-packages
|
|
||||||
file:
|
|
||||||
path: /home/jay/.config/keepassxc
|
|
||||||
state: directory
|
|
||||||
owner: jay
|
|
||||||
group: jay
|
|
||||||
mode: 0700
|
|
||||||
register: keepassxc_config_dir
|
|
||||||
when: keepassxc is defined and keepassxc == true
|
|
||||||
|
|
||||||
- name: software | keepassxc | add initial keepassxc config
|
|
||||||
tags: packages,keepassxc,flatpak,workstation-packages
|
|
||||||
copy:
|
|
||||||
src: users/jay/keepassxc.ini
|
|
||||||
dest: /home/jay/.config/keepassxc/keepassxc.ini
|
|
||||||
owner: jay
|
|
||||||
group: jay
|
|
||||||
mode: 0600
|
|
||||||
when: keepassxc is defined and keepassxc == true
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
- name: software | libreoffice | install package
|
|
||||||
tags: packages,flatpak,libreoffice,workstation-packages
|
|
||||||
become_user: jay
|
|
||||||
flatpak:
|
|
||||||
name: org.libreoffice.LibreOffice
|
|
||||||
method: user
|
|
||||||
state: present
|
|
||||||
when: libreoffice is defined and libreoffice == true
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
- name: software | linode-cli | install package
|
|
||||||
tags: packages,linode,pip,python
|
|
||||||
become_user: jay
|
|
||||||
pip:
|
|
||||||
executable: /usr/bin/pip3
|
|
||||||
state: latest
|
|
||||||
name: linode-cli
|
|
||||||
@@ -1,20 +0,0 @@
|
|||||||
# As of 2020-06-18, lutris is not available on debian
|
|
||||||
- name: software | lutris | install ppa
|
|
||||||
tags: gaming,lutris
|
|
||||||
apt_repository:
|
|
||||||
repo: 'ppa:lutris-team/lutris'
|
|
||||||
state: present
|
|
||||||
when:
|
|
||||||
- ansible_distribution in ["Pop!_OS", "Ubuntu"]
|
|
||||||
- lutris is defined
|
|
||||||
- lutris == true
|
|
||||||
|
|
||||||
- name: software | lutris | install package
|
|
||||||
tags: gaming,lutris
|
|
||||||
package:
|
|
||||||
state: latest
|
|
||||||
name: lutris
|
|
||||||
when:
|
|
||||||
- ansible_distribution in ["Archlinux", "Pop!_OS", "Ubuntu"]
|
|
||||||
- lutris is defined
|
|
||||||
- lutris == true
|
|
||||||
@@ -1,18 +0,0 @@
|
|||||||
- name: software | mattermost | install package
|
|
||||||
tags: packages,flatpak,mattermost,workstation-packages
|
|
||||||
become_user: jay
|
|
||||||
flatpak:
|
|
||||||
name: com.mattermost.Desktop
|
|
||||||
method: user
|
|
||||||
state: present
|
|
||||||
when: mattermost is defined and mattermost == true
|
|
||||||
|
|
||||||
- name: software | mattermost | enable autostart
|
|
||||||
tags: packages,flatpak,mattermost,workstation-packages
|
|
||||||
file:
|
|
||||||
src: /home/jay/.local/share/flatpak/exports/share/applications/com.mattermost.Desktop.desktop
|
|
||||||
dest: /home/jay/.config/autostart/com.mattermost.Desktop.desktop
|
|
||||||
owner: jay
|
|
||||||
group: jay
|
|
||||||
state: link
|
|
||||||
when: mattermost is defined and mattermost == true
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
- name: software | minecraft | install package
|
|
||||||
tags: packages,flatpak,games,minecraft,workstation-packages
|
|
||||||
become_user: jay
|
|
||||||
flatpak:
|
|
||||||
name: com.mojang.Minecraft
|
|
||||||
method: user
|
|
||||||
state: present
|
|
||||||
when: minecraft is defined and minecraft == true
|
|
||||||
@@ -1,13 +0,0 @@
|
|||||||
- name: software | install misc game packages
|
|
||||||
tags: gaming
|
|
||||||
package:
|
|
||||||
name:
|
|
||||||
- chromium-bsu
|
|
||||||
- extremetuxracer
|
|
||||||
- frozen-bubble
|
|
||||||
- gnome-chess
|
|
||||||
- "{{ nethack_package }}"
|
|
||||||
- supertux
|
|
||||||
- supertuxkart
|
|
||||||
- wesnoth
|
|
||||||
when: games is defined and games == true
|
|
||||||
@@ -1,71 +0,0 @@
|
|||||||
- name: software | install workstation distribution packages
|
|
||||||
tags: packages,workstation-packages
|
|
||||||
package:
|
|
||||||
name:
|
|
||||||
- acpid
|
|
||||||
- alsa-utils
|
|
||||||
- arandr
|
|
||||||
- asunder
|
|
||||||
- cifs-utils
|
|
||||||
- "{{ cups_package }}"
|
|
||||||
- "{{ cryptsetup_package }}"
|
|
||||||
- dconf-editor
|
|
||||||
- dialog
|
|
||||||
- easytag
|
|
||||||
- exfat-utils
|
|
||||||
- "{{ font_fira_mono_package }}"
|
|
||||||
- "{{ font_hack_ttf_package }}"
|
|
||||||
- "{{ font_inconsolata_package }}"
|
|
||||||
- "{{ font_noto_emoji_package }}"
|
|
||||||
- "{{ font_terminus_package }}"
|
|
||||||
- geany
|
|
||||||
- gparted
|
|
||||||
- "{{ hunspell_package }}"
|
|
||||||
- "{{ hyphen_package }}"
|
|
||||||
- "{{ p7zip_package }}"
|
|
||||||
- "{{ libnotify_package }}"
|
|
||||||
- "{{ mpv_package}}"
|
|
||||||
- "{{ network_manager_openvpn_package }}"
|
|
||||||
- "{{ network_manager_package }}"
|
|
||||||
- "{{ network_manager_pptp_package }}"
|
|
||||||
- "{{ network_manager_vpnc_package }}"
|
|
||||||
- neovim
|
|
||||||
- pavucontrol
|
|
||||||
- shotwell
|
|
||||||
- simplescreenrecorder
|
|
||||||
- smbclient
|
|
||||||
- sshpass
|
|
||||||
- "{{ ssh_askpass_package }}"
|
|
||||||
- terminator
|
|
||||||
- transmission-gtk
|
|
||||||
- unrar
|
|
||||||
- "{{ wireless_tools_package }}"
|
|
||||||
- "{{ wpa_supplicant_package }}"
|
|
||||||
- x2goclient
|
|
||||||
|
|
||||||
- name: software | install system packages specific to debian and ubuntu
|
|
||||||
tags: packages,system,system-packages,workstation-packages
|
|
||||||
package:
|
|
||||||
name:
|
|
||||||
- synaptic
|
|
||||||
- vim-gtk3
|
|
||||||
when: ansible_distribution in ["Debian", "Pop!_OS", "Ubuntu"]
|
|
||||||
|
|
||||||
- name: software | remove unneeded workstation packages on debian and ubuntu hosts
|
|
||||||
tags: cleanup,packages,workstation-packages
|
|
||||||
package:
|
|
||||||
state: absent
|
|
||||||
name:
|
|
||||||
- firefox*
|
|
||||||
- libreoffice-base-core
|
|
||||||
- libreoffice-calc
|
|
||||||
- libreoffice-common
|
|
||||||
- libreoffice-core
|
|
||||||
- libreoffice-draw
|
|
||||||
- libreoffice-gnome
|
|
||||||
- libreoffice-gtk3
|
|
||||||
- libreoffice-impress
|
|
||||||
- libreoffice-math
|
|
||||||
- libreoffice-writer
|
|
||||||
- thunderbird*
|
|
||||||
when: ansible_distribution in ["Debian", "Pop!_OS", "Ubuntu"]
|
|
||||||
@@ -1,24 +0,0 @@
|
|||||||
- name: system setup | GPU | NVidia
|
|
||||||
tags: gpu,nvidia,systemsetup
|
|
||||||
package:
|
|
||||||
state: latest
|
|
||||||
name:
|
|
||||||
- cuda
|
|
||||||
- nvidia
|
|
||||||
- nvidia-settings
|
|
||||||
- nvidia-utils
|
|
||||||
- nvtop
|
|
||||||
when: nvidia is defined and nvidia == true
|
|
||||||
|
|
||||||
- name: system setup | GPU | NVidia-Prime
|
|
||||||
tags: gpu,nvidia,prime,system setup
|
|
||||||
package:
|
|
||||||
state: latest
|
|
||||||
name: nvidia-prime
|
|
||||||
when:
|
|
||||||
- nvidia is defined
|
|
||||||
- nvidia == true
|
|
||||||
- mobile is defined
|
|
||||||
- mobile == true
|
|
||||||
- nvidia_prime is defined
|
|
||||||
- nvidia_prime == true
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
- name: software | openshot | install package
|
|
||||||
get_url:
|
|
||||||
url: https://github.com/OpenShot/openshot-qt/releases/download/v2.5.1/OpenShot-v2.5.1-x86_64.AppImage
|
|
||||||
dest: /home/jay/bin/openshot.app
|
|
||||||
mode: '0700'
|
|
||||||
owner: jay
|
|
||||||
group: jay
|
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
- name: software | packer | install binary
|
|
||||||
unarchive:
|
|
||||||
src: https://releases.hashicorp.com/packer/{{ packer_version }}/packer_{{ packer_version }}_linux_amd64.zip
|
|
||||||
dest: /usr/local/bin
|
|
||||||
remote_src: yes
|
|
||||||
mode: 0755
|
|
||||||
owner: root
|
|
||||||
group: root
|
|
||||||
when: packer is defined and packer == true
|
|
||||||
@@ -1,18 +0,0 @@
|
|||||||
- name: software | signal | install package
|
|
||||||
tags: packages,flatpak,signal,workstation-packages
|
|
||||||
become_user: jay
|
|
||||||
flatpak:
|
|
||||||
name: org.signal.Signal
|
|
||||||
method: user
|
|
||||||
state: present
|
|
||||||
when: signal is defined and signal == true
|
|
||||||
|
|
||||||
- name: software | signal | enable autostart
|
|
||||||
tags: packages,flatpak,signal,workstation-packages
|
|
||||||
file:
|
|
||||||
src: /home/jay/.local/share/flatpak/exports/share/applications/org.signal.Signal.desktop
|
|
||||||
dest: /home/jay/.config/autostart/org.signal.Signal.desktop
|
|
||||||
owner: jay
|
|
||||||
group: jay
|
|
||||||
state: link
|
|
||||||
when: signal is defined and signal == true
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
- name: software | install workstation distribution packages
|
|
||||||
tags: packages,workstation-packages
|
|
||||||
package:
|
|
||||||
name: solaar
|
|
||||||
state: latest
|
|
||||||
|
|
||||||
- name: software | make sure solaar doesn't autostart
|
|
||||||
file:
|
|
||||||
path: /etc/xdg/autostart/solaar.desktop
|
|
||||||
state: absent
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
- name: software | spotify | install package
|
|
||||||
tags: packages,flatpak,spotify,workstation-packages
|
|
||||||
become_user: jay
|
|
||||||
flatpak:
|
|
||||||
name: com.spotify.Client
|
|
||||||
method: user
|
|
||||||
state: present
|
|
||||||
when: spotify is defined and spotify == true
|
|
||||||
@@ -1,89 +0,0 @@
|
|||||||
# For some reason Manjaro is detected as Archlinux
|
|
||||||
- name: software | steam | check if distribution is manjaro
|
|
||||||
stat:
|
|
||||||
path: /usr/bin/manjaro-hello
|
|
||||||
register: manjaro
|
|
||||||
when:
|
|
||||||
- ansible_distribution == "Archlinux"
|
|
||||||
- steam is defined
|
|
||||||
- steam == true
|
|
||||||
|
|
||||||
- name: software | steam | steam | enable multilib (arch)
|
|
||||||
tags: steam,steam,multilib
|
|
||||||
blockinfile:
|
|
||||||
state: present
|
|
||||||
backup: yes
|
|
||||||
path: /etc/pacman.conf
|
|
||||||
marker: '# {mark} ANSIBLE MANAGED BLOCK MULTILIB'
|
|
||||||
block: |
|
|
||||||
[multilib]
|
|
||||||
Include = /etc/pacman.d/mirrorlist
|
|
||||||
register: multilib
|
|
||||||
when:
|
|
||||||
- ansible_distribution == "Archlinux"
|
|
||||||
- manjaro.stat.exists == False
|
|
||||||
- steam is defined
|
|
||||||
- steam == true
|
|
||||||
|
|
||||||
- name: software | steam | update cache (multilib added) (arch)
|
|
||||||
tags: steam,steam,multilib
|
|
||||||
pacman: update_cache=yes
|
|
||||||
when:
|
|
||||||
- multilib.changed
|
|
||||||
- ansible_distribution == "Archlinux"
|
|
||||||
|
|
||||||
# As of 2020-09-30, multiarch is still required to be enabled in Debian and Ubuntu
|
|
||||||
# Note: Not required in Pop OS, apparently
|
|
||||||
- name: steam | add multiarch (debian, ubuntu)
|
|
||||||
tags: steam,steam,multiarch
|
|
||||||
lineinfile:
|
|
||||||
dest: /var/lib/dpkg/arch
|
|
||||||
regexp: "^i386"
|
|
||||||
line: "i386"
|
|
||||||
create: yes
|
|
||||||
when:
|
|
||||||
- ansible_distribution in ['Debian', 'Ubuntu']
|
|
||||||
- steam is defined
|
|
||||||
- steam == true
|
|
||||||
|
|
||||||
# For Debian and Ubuntu, set up acceptance of steam license before continuing
|
|
||||||
- name: software | steam | accept license
|
|
||||||
tags: gaming,steam
|
|
||||||
debconf:
|
|
||||||
name: "steam"
|
|
||||||
question: "steam/question"
|
|
||||||
value: "I AGREE"
|
|
||||||
vtype: "select"
|
|
||||||
when:
|
|
||||||
- ansible_distribution in ["Debian", "Ubuntu"]
|
|
||||||
- steam is defined
|
|
||||||
- steam == true
|
|
||||||
|
|
||||||
- name: software | steam | install package
|
|
||||||
tags: steam,steam
|
|
||||||
package:
|
|
||||||
state: latest
|
|
||||||
name: "{{ steam_package }}"
|
|
||||||
when:
|
|
||||||
- steam is defined
|
|
||||||
- steam == true
|
|
||||||
|
|
||||||
- name: software | steam | install steam-devices package (debian, ubuntu, etc)
|
|
||||||
tags: steam,steam
|
|
||||||
package:
|
|
||||||
state: latest
|
|
||||||
name: steam-devices
|
|
||||||
when:
|
|
||||||
- ansible_distribution in ["Debian", "Pop!_OS", "Ubuntu"]
|
|
||||||
- steam is defined
|
|
||||||
- steam == true
|
|
||||||
|
|
||||||
- name: install vulkan drivers (debian, ubuntu, etc)
|
|
||||||
tags: drivers,steam
|
|
||||||
package:
|
|
||||||
state: latest
|
|
||||||
name: mesa-vulkan-drivers
|
|
||||||
when:
|
|
||||||
- ansible_distribution in ["Debian", "Pop!_OS", "Ubuntu"]
|
|
||||||
- steam is defined
|
|
||||||
- steam == true
|
|
||||||
@@ -1,153 +0,0 @@
|
|||||||
# add syncthing-controlled directories
|
|
||||||
- name: software | syncthing | create directories
|
|
||||||
tags: syncthing
|
|
||||||
file:
|
|
||||||
path: /home/jay/{{ item.dir }}
|
|
||||||
state: directory
|
|
||||||
owner: jay
|
|
||||||
group: jay
|
|
||||||
mode: 0700
|
|
||||||
with_items:
|
|
||||||
- { dir: bin }
|
|
||||||
- { dir: desktop }
|
|
||||||
- { dir: documents }
|
|
||||||
- { dir: downloads }
|
|
||||||
- { dir: projects }
|
|
||||||
- { dir: templates }
|
|
||||||
when: syncthing is defined and syncthing == true
|
|
||||||
|
|
||||||
- name: software | syncthing | copy .stignore file to synced directories
|
|
||||||
tags: syncthing
|
|
||||||
copy:
|
|
||||||
src: users/jay/stignore
|
|
||||||
dest: /home/jay/{{ item.dir }}/.stignore
|
|
||||||
owner: jay
|
|
||||||
group: jay
|
|
||||||
mode: 0600
|
|
||||||
with_items:
|
|
||||||
- { dir: bin }
|
|
||||||
- { dir: desktop }
|
|
||||||
- { dir: documents }
|
|
||||||
- { dir: downloads }
|
|
||||||
- { dir: projects }
|
|
||||||
- { dir: templates }
|
|
||||||
when: syncthing is defined and syncthing == true
|
|
||||||
|
|
||||||
# syncthing repository for debian and ubuntu
|
|
||||||
- name: software | syncthing | install apt key
|
|
||||||
tags: syncthing
|
|
||||||
apt_key:
|
|
||||||
url: https://syncthing.net/release-key.txt
|
|
||||||
state: present
|
|
||||||
when:
|
|
||||||
- ansible_distribution in ["Debian", "Pop!_OS", "Ubuntu"]
|
|
||||||
- syncthing is defined
|
|
||||||
- syncthing == true
|
|
||||||
|
|
||||||
- name: software | syncthing | install repository
|
|
||||||
tags: syncthing
|
|
||||||
apt_repository:
|
|
||||||
repo: deb https://apt.syncthing.net/ syncthing stable
|
|
||||||
state: present
|
|
||||||
filename: syncthing
|
|
||||||
when:
|
|
||||||
- ansible_distribution in ["Debian", "Pop!_OS", "Ubuntu"]
|
|
||||||
- syncthing is defined
|
|
||||||
- syncthing == true
|
|
||||||
|
|
||||||
- name: software | syncthing | install syncthing packages
|
|
||||||
tags: syncthing
|
|
||||||
package:
|
|
||||||
name:
|
|
||||||
- syncthing
|
|
||||||
#- syncthing-gtk
|
|
||||||
state: latest
|
|
||||||
register: syncthing_installed
|
|
||||||
when:
|
|
||||||
- syncthing is defined
|
|
||||||
- syncthing == true
|
|
||||||
|
|
||||||
#- name: software | syncthing | add .desktop file for autostarting syncthing-gtk
|
|
||||||
# tags: syncthing
|
|
||||||
# copy:
|
|
||||||
# src: users/jay/syncthing-gtk.desktop
|
|
||||||
# dest: /home/jay/.config/autostart/syncthing-gtk.desktop
|
|
||||||
# owner: jay
|
|
||||||
# group: jay
|
|
||||||
# mode: 0600
|
|
||||||
# when:
|
|
||||||
# - syncthing is defined
|
|
||||||
# - syncthing == true
|
|
||||||
|
|
||||||
#- name: software | syncthing | ensure syncthing-gtk config folder exists
|
|
||||||
# tags: syncthing
|
|
||||||
# file:
|
|
||||||
# path: /home/jay/.config/syncthing-gtk
|
|
||||||
# state: directory
|
|
||||||
# owner: jay
|
|
||||||
# group: jay
|
|
||||||
# mode: 0700
|
|
||||||
# when:
|
|
||||||
# - syncthing is defined
|
|
||||||
# - syncthing == true
|
|
||||||
|
|
||||||
#- name: software | syncthing | add initial configuration file for syncthing-gtk
|
|
||||||
# tags: syncthing
|
|
||||||
# copy:
|
|
||||||
# src: users/jay/syncthing_config.json
|
|
||||||
# dest: /home/jay/.config/syncthing-gtk/config.json
|
|
||||||
# owner: jay
|
|
||||||
# group: jay
|
|
||||||
# mode: 0600
|
|
||||||
# when:
|
|
||||||
# - syncthing is defined
|
|
||||||
# - syncthing == true
|
|
||||||
|
|
||||||
# Enable and start syncthing
|
|
||||||
# Note: Not using systemd module because it triggers a dbus error due to no session while user is not logged in
|
|
||||||
- name: software | syncthing | start and enable syncthing
|
|
||||||
tags: syncthing
|
|
||||||
command: "{{ item }}"
|
|
||||||
with_items:
|
|
||||||
- systemctl enable syncthing@jay
|
|
||||||
- systemctl restart syncthing@jay
|
|
||||||
when: syncthing_installed.changed
|
|
||||||
|
|
||||||
# Adjust configuration file
|
|
||||||
- name: software | syncthing | pause to ensure config file exists
|
|
||||||
tags: syncthing
|
|
||||||
become_user: jay
|
|
||||||
wait_for:
|
|
||||||
path: /home/jay/.config/syncthing/config.xml
|
|
||||||
delay: 10
|
|
||||||
when: syncthing_installed.changed
|
|
||||||
|
|
||||||
- name: software | syncthing | config.xml - disable browser
|
|
||||||
tags: syncthing
|
|
||||||
become_user: jay
|
|
||||||
replace:
|
|
||||||
path: /home/jay/.config/syncthing/config.xml
|
|
||||||
regexp: "<startBrowser>true</startBrowser>"
|
|
||||||
replace: "<startBrowser>false</startBrowser>"
|
|
||||||
notify: restart_syncthing
|
|
||||||
when:
|
|
||||||
- syncthing is defined
|
|
||||||
- syncthing == true
|
|
||||||
|
|
||||||
- name: software | syncthing | config.xml - set ui theme
|
|
||||||
tags: syncthing
|
|
||||||
become_user: jay
|
|
||||||
replace:
|
|
||||||
path: /home/jay/.config/syncthing/config.xml
|
|
||||||
regexp: "<theme>default</theme>"
|
|
||||||
replace: "<theme>dark</theme>"
|
|
||||||
notify: restart_syncthing
|
|
||||||
when:
|
|
||||||
- syncthing is defined
|
|
||||||
- syncthing == true
|
|
||||||
|
|
||||||
- name: software | syncthing | remove default sync directory (~/Sync) from host
|
|
||||||
tags: syncthing
|
|
||||||
file:
|
|
||||||
path: /home/jay/Sync
|
|
||||||
state: absent
|
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
- name: software | terraform | install binary
|
|
||||||
unarchive:
|
|
||||||
src: https://releases.hashicorp.com/terraform/{{ terraform_version }}/terraform_{{ terraform_version }}_linux_amd64.zip
|
|
||||||
dest: /usr/local/bin
|
|
||||||
remote_src: yes
|
|
||||||
mode: 0755
|
|
||||||
owner: root
|
|
||||||
group: root
|
|
||||||
when: terraform is defined and terraform == true
|
|
||||||
@@ -1,18 +0,0 @@
|
|||||||
- name: software | thunderbird | install package
|
|
||||||
tags: packages,flatpak,thunderbird,workstation-packages
|
|
||||||
become_user: jay
|
|
||||||
flatpak:
|
|
||||||
name: org.mozilla.thunderbird
|
|
||||||
method: user
|
|
||||||
state: present
|
|
||||||
when: thunderbird is defined and thunderbird == true
|
|
||||||
|
|
||||||
- name: software | thunderbird | enable autostart
|
|
||||||
tags: packages,flatpak,thunderbird,workstation-packages
|
|
||||||
file:
|
|
||||||
src: /home/jay/.local/share/flatpak/exports/share/applications/org.mozilla.Thunderbird.desktop
|
|
||||||
dest: /home/jay/.config/autostart/org.mozilla.Thunderbird.desktop
|
|
||||||
owner: jay
|
|
||||||
group: jay
|
|
||||||
state: link
|
|
||||||
when: thunderbird is defined and thunderbird == true
|
|
||||||
@@ -1,23 +0,0 @@
|
|||||||
# note: snap packages not automated in arch yet, snapd is not available in repo
|
|
||||||
- name: software | todoist | install package
|
|
||||||
tags: packages,snap,todoist,workstation-packages
|
|
||||||
snap:
|
|
||||||
name: todoist
|
|
||||||
state: present
|
|
||||||
when:
|
|
||||||
- ansible_distribution != "Archlinux"
|
|
||||||
- todoist is defined
|
|
||||||
- todoist == true
|
|
||||||
|
|
||||||
- name: software | todoist | enable autostart
|
|
||||||
tags: packages,todoist,snap,workstation-packages
|
|
||||||
file:
|
|
||||||
src: /var/lib/snapd/desktop/applications/todoist_todoist.desktop
|
|
||||||
dest: /home/jay/.config/autostart/todoist_todoist.desktop
|
|
||||||
owner: jay
|
|
||||||
group: jay
|
|
||||||
state: link
|
|
||||||
when:
|
|
||||||
- ansible_distribution != "Archlinux"
|
|
||||||
- todoist is defined
|
|
||||||
- todoist == true
|
|
||||||
@@ -1,32 +0,0 @@
|
|||||||
- name: software | ulauncher | install ppa
|
|
||||||
tags: ulauncher
|
|
||||||
apt_repository:
|
|
||||||
repo: 'ppa:agornostal/ulauncher'
|
|
||||||
state: present
|
|
||||||
when:
|
|
||||||
- ansible_distribution in ["Pop!_OS", "Ubuntu"]
|
|
||||||
- ulauncher is defined
|
|
||||||
- ulauncher == true
|
|
||||||
|
|
||||||
- name: software | ulauncher | install package
|
|
||||||
tags: ulauncher
|
|
||||||
apt:
|
|
||||||
name: ulauncher
|
|
||||||
state: latest
|
|
||||||
when:
|
|
||||||
- ansible_distribution in ["Pop!_OS", "Ubuntu"]
|
|
||||||
- ulauncher is defined
|
|
||||||
- ulauncher == true
|
|
||||||
|
|
||||||
- name: software | ulauncher | enable autostart
|
|
||||||
tags: ulauncher
|
|
||||||
copy:
|
|
||||||
src: users/jay/ulauncher.desktop
|
|
||||||
dest: /home/jay/.config/autostart/ulauncher.desktop
|
|
||||||
owner: jay
|
|
||||||
group: jay
|
|
||||||
mode: 0600
|
|
||||||
when:
|
|
||||||
- ansible_distribution in ["Pop!_OS", "Ubuntu"]
|
|
||||||
- ulauncher is defined
|
|
||||||
- ulauncher == true
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
- name: software | vagrant | install binary
|
|
||||||
unarchive:
|
|
||||||
src: https://releases.hashicorp.com/vagrant/{{ vagrant_version }}/vagrant_{{ vagrant_version }}_linux_amd64.zip
|
|
||||||
dest: /usr/local/bin
|
|
||||||
remote_src: yes
|
|
||||||
mode: 0755
|
|
||||||
owner: root
|
|
||||||
group: root
|
|
||||||
when:
|
|
||||||
- vagrant is defined
|
|
||||||
- vagrant == true
|
|
||||||
@@ -1,32 +0,0 @@
|
|||||||
# As of May 2, 2020; Virtualbox is available in backports, but is an old version.
|
|
||||||
# The following will add the official Virtualbox repo
|
|
||||||
|
|
||||||
- name: software | virtualbox | install apt key (debian)
|
|
||||||
tags: virtualbox,repositories,virtualbox
|
|
||||||
apt_key:
|
|
||||||
url: https://www.virtualbox.org/download/oracle_vbox_2016.asc
|
|
||||||
state: present
|
|
||||||
when:
|
|
||||||
- ansible_distribution == "Debian"
|
|
||||||
- virtualbox is defined
|
|
||||||
- virtualbox == true
|
|
||||||
|
|
||||||
- name: software | virtualbox | install repository (debian)
|
|
||||||
tags: virtualbox,repositories,virtualbox
|
|
||||||
apt_repository:
|
|
||||||
repo: deb https://download.virtualbox.org/virtualbox/debian buster contrib
|
|
||||||
state: present
|
|
||||||
filename: virtualbox
|
|
||||||
register: virtualbox_repo_debian
|
|
||||||
when:
|
|
||||||
- ansible_distribution == "Debian"
|
|
||||||
- virtualbox is defined
|
|
||||||
- virtualbox == true
|
|
||||||
|
|
||||||
- name: software | virtualbox | install package
|
|
||||||
tags: virtualbox
|
|
||||||
package:
|
|
||||||
name: "{{ virtualbox_package }}"
|
|
||||||
when:
|
|
||||||
- virtualbox is defined
|
|
||||||
- virtualbox == true
|
|
||||||
@@ -1,36 +0,0 @@
|
|||||||
- name: software | vivaldi | add repository key
|
|
||||||
tags: packages,vivaldi
|
|
||||||
apt_key:
|
|
||||||
url: https://repo.vivaldi.com/stable/linux_signing_key.pub
|
|
||||||
state: present
|
|
||||||
when:
|
|
||||||
- ansible_distribution in ["Debian", "Pop!_OS", "Ubuntu"]
|
|
||||||
- vivaldi is defined
|
|
||||||
- vivaldi == true
|
|
||||||
|
|
||||||
- name: software | vivaldi | check if repository exists
|
|
||||||
stat:
|
|
||||||
path: /etc/apt/sources.list.d/vivaldi.list
|
|
||||||
register: vivaldi_repo_file
|
|
||||||
|
|
||||||
- name: software | vivaldi | add repository
|
|
||||||
tags: packages,vivaldi
|
|
||||||
apt_repository:
|
|
||||||
repo: "deb https://repo.vivaldi.com/stable/deb/ stable main"
|
|
||||||
state: present
|
|
||||||
filename: vivaldi
|
|
||||||
when:
|
|
||||||
- ansible_distribution in ["Debian", "Pop!_OS", "Ubuntu"]
|
|
||||||
- vivaldi is defined
|
|
||||||
- vivaldi == true
|
|
||||||
- vivaldi_repo_file.stat.exists == False
|
|
||||||
|
|
||||||
- name: software | vivaldi | install package
|
|
||||||
tags: packages,vivaldi
|
|
||||||
apt:
|
|
||||||
name: vivaldi-stable
|
|
||||||
state: latest
|
|
||||||
when:
|
|
||||||
- ansible_distribution in ["Debian", "Pop!_OS", "Ubuntu"]
|
|
||||||
- vivaldi is defined
|
|
||||||
- vivaldi == true
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
- name: software | vlc | install package
|
|
||||||
tags: packages,flatpak,vlc,workstation-packages
|
|
||||||
become_user: jay
|
|
||||||
flatpak:
|
|
||||||
name: org.videolan.VLC
|
|
||||||
method: user
|
|
||||||
state: present
|
|
||||||
when:
|
|
||||||
- vlc is defined
|
|
||||||
- vlc == true
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
- name: software | xonotic | install package
|
|
||||||
tags: packages,flatpak,games,xonotic,workstation-packages
|
|
||||||
become_user: jay
|
|
||||||
flatpak:
|
|
||||||
name: org.xonotic.Xonotic
|
|
||||||
method: user
|
|
||||||
state: present
|
|
||||||
when:
|
|
||||||
- xonotic is defined
|
|
||||||
- xonotic == true
|
|
||||||
@@ -1,14 +0,0 @@
|
|||||||
- name: users | rene | remove preinstalled clutter from home directory
|
|
||||||
file:
|
|
||||||
path: /home/rene/{{ item }}
|
|
||||||
state: absent
|
|
||||||
with_items:
|
|
||||||
- examples.desktop
|
|
||||||
- Desktop
|
|
||||||
- Documents
|
|
||||||
- Downloads
|
|
||||||
- Music
|
|
||||||
- Pictures
|
|
||||||
- Public
|
|
||||||
- Templates
|
|
||||||
- Videos
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
---
|
|
||||||
- name: install basetools
|
|
||||||
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
- name: create ansible user
|
|
||||||
user: name=ansible uid=900
|
|
||||||
|
|
||||||
- name: copy sudoers_ansible
|
|
||||||
copy: src=files/sudoers_ansible dest=/etc/sudoers.d/ansible owner=root group=root mode=0440
|
|
||||||
|
|
||||||
- name: create daily user
|
|
||||||
user: name=rene
|
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
zsh
|
|
||||||
zsh-autosuggestions
|
|
||||||
zsh-completions
|
|
||||||
zsh-doc
|
|
||||||
zsh-history-substring-search
|
|
||||||
zsh-lovers
|
|
||||||
zsh-syntax-highlighting
|
|
||||||
zsh-theme-powerlevel9k
|
|
||||||
zshdb
|
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
#! /bin/sh
|
|
||||||
|
|
||||||
if [ "$1" = "{{ ansible_default_ipv4.interface }}" ]; then
|
|
||||||
case "$2" in
|
|
||||||
up)
|
|
||||||
nmcli radio wifi off
|
|
||||||
;;
|
|
||||||
down)
|
|
||||||
nmcli radio wifi on
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
fi
|
|
||||||
Reference in New Issue
Block a user