diff --git a/roles/database/main.yml b/roles/database/main.yml deleted file mode 100644 index e69de29..0000000 diff --git a/roles/development/main.yml b/roles/development/main.yml deleted file mode 100644 index e69de29..0000000 diff --git a/roles/dhcpserver/main.yml b/roles/dhcpserver/main.yml deleted file mode 100644 index e69de29..0000000 diff --git a/roles/fileserver/main.yml b/roles/fileserver/main.yml deleted file mode 100644 index e69de29..0000000 diff --git a/roles/mailserver/main.yml b/roles/mailserver/main.yml deleted file mode 100644 index e69de29..0000000 diff --git a/roles/mobile/main.yml b/roles/mobile/main.yml deleted file mode 100644 index e69de29..0000000 diff --git a/roles/nameserver/main.yml b/roles/nameserver/main.yml deleted file mode 100644 index e69de29..0000000 diff --git a/roles/photo_editing/main.yml b/roles/photo_editing/main.yml deleted file mode 100644 index e69de29..0000000 diff --git a/roles/printspooler/main.yml b/roles/printspooler/main.yml deleted file mode 100644 index e69de29..0000000 diff --git a/roles/proxyserver/main.yml b/roles/proxyserver/main.yml deleted file mode 100644 index e69de29..0000000 diff --git a/roles/video_editing/main.yml b/roles/video_editing/main.yml deleted file mode 100644 index e69de29..0000000 diff --git a/roles/webserver/main.yml b/roles/webserver/main.yml deleted file mode 100644 index e69de29..0000000 diff --git a/roles/workstation/files/main.yml b/roles/workstation/files/main.yml deleted file mode 100644 index e69de29..0000000 diff --git a/roles/workstation/handlers/main.yml b/roles/workstation/handlers/main.yml deleted file mode 100644 index e69de29..0000000 diff --git a/roles/workstation/tasks/main.yml b/roles/workstation/tasks/main.yml deleted file mode 100644 index bce2d58..0000000 --- a/roles/workstation/tasks/main.yml +++ /dev/null @@ -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 diff --git a/roles/workstation/tasks/software/audacious.yml b/roles/workstation/tasks/software/audacious.yml deleted file mode 100644 index caca878..0000000 --- a/roles/workstation/tasks/software/audacious.yml +++ /dev/null @@ -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 diff --git a/roles/workstation/tasks/software/audacity.yml b/roles/workstation/tasks/software/audacity.yml deleted file mode 100644 index 81638b4..0000000 --- a/roles/workstation/tasks/software/audacity.yml +++ /dev/null @@ -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 diff --git a/roles/workstation/tasks/software/authy.yml b/roles/workstation/tasks/software/authy.yml deleted file mode 100644 index c0a1757..0000000 --- a/roles/workstation/tasks/software/authy.yml +++ /dev/null @@ -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 diff --git a/roles/workstation/tasks/software/bitwarden.yml b/roles/workstation/tasks/software/bitwarden.yml deleted file mode 100644 index 288e63f..0000000 --- a/roles/workstation/tasks/software/bitwarden.yml +++ /dev/null @@ -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 diff --git a/roles/workstation/tasks/software/boto.yml b/roles/workstation/tasks/software/boto.yml deleted file mode 100644 index 6bfd202..0000000 --- a/roles/workstation/tasks/software/boto.yml +++ /dev/null @@ -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 diff --git a/roles/workstation/tasks/software/caffeine.yml b/roles/workstation/tasks/software/caffeine.yml deleted file mode 100644 index a7901f6..0000000 --- a/roles/workstation/tasks/software/caffeine.yml +++ /dev/null @@ -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" diff --git a/roles/workstation/tasks/software/chromium.yml b/roles/workstation/tasks/software/chromium.yml deleted file mode 100644 index 57e8639..0000000 --- a/roles/workstation/tasks/software/chromium.yml +++ /dev/null @@ -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 diff --git a/roles/workstation/tasks/software/codecs.yml b/roles/workstation/tasks/software/codecs.yml deleted file mode 100644 index 2fdcb63..0000000 --- a/roles/workstation/tasks/software/codecs.yml +++ /dev/null @@ -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 }}" diff --git a/roles/workstation/tasks/software/darktable.yml b/roles/workstation/tasks/software/darktable.yml deleted file mode 100644 index 8df59e6..0000000 --- a/roles/workstation/tasks/software/darktable.yml +++ /dev/null @@ -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 diff --git a/roles/workstation/tasks/software/firefox.yml b/roles/workstation/tasks/software/firefox.yml deleted file mode 100644 index bab9c71..0000000 --- a/roles/workstation/tasks/software/firefox.yml +++ /dev/null @@ -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 diff --git a/roles/workstation/tasks/software/foliate.yml b/roles/workstation/tasks/software/foliate.yml deleted file mode 100644 index afa68b5..0000000 --- a/roles/workstation/tasks/software/foliate.yml +++ /dev/null @@ -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 diff --git a/roles/workstation/tasks/software/glimpse.yml b/roles/workstation/tasks/software/glimpse.yml deleted file mode 100644 index cfb8118..0000000 --- a/roles/workstation/tasks/software/glimpse.yml +++ /dev/null @@ -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 diff --git a/roles/workstation/tasks/software/google_chrome.yml b/roles/workstation/tasks/software/google_chrome.yml deleted file mode 100644 index 8dddb26..0000000 --- a/roles/workstation/tasks/software/google_chrome.yml +++ /dev/null @@ -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"] diff --git a/roles/workstation/tasks/software/kdenlive.yml b/roles/workstation/tasks/software/kdenlive.yml deleted file mode 100644 index afcac13..0000000 --- a/roles/workstation/tasks/software/kdenlive.yml +++ /dev/null @@ -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 diff --git a/roles/workstation/tasks/software/keepassxc.yml b/roles/workstation/tasks/software/keepassxc.yml deleted file mode 100644 index e028abf..0000000 --- a/roles/workstation/tasks/software/keepassxc.yml +++ /dev/null @@ -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 diff --git a/roles/workstation/tasks/software/libreoffice.yml b/roles/workstation/tasks/software/libreoffice.yml deleted file mode 100644 index f2fc852..0000000 --- a/roles/workstation/tasks/software/libreoffice.yml +++ /dev/null @@ -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 diff --git a/roles/workstation/tasks/software/linode-cli.yml b/roles/workstation/tasks/software/linode-cli.yml deleted file mode 100644 index 55944a2..0000000 --- a/roles/workstation/tasks/software/linode-cli.yml +++ /dev/null @@ -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 diff --git a/roles/workstation/tasks/software/lutris.yml b/roles/workstation/tasks/software/lutris.yml deleted file mode 100644 index c323f80..0000000 --- a/roles/workstation/tasks/software/lutris.yml +++ /dev/null @@ -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 diff --git a/roles/workstation/tasks/software/mattermost.yml b/roles/workstation/tasks/software/mattermost.yml deleted file mode 100644 index 0be006f..0000000 --- a/roles/workstation/tasks/software/mattermost.yml +++ /dev/null @@ -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 diff --git a/roles/workstation/tasks/software/minecraft.yml b/roles/workstation/tasks/software/minecraft.yml deleted file mode 100644 index e348215..0000000 --- a/roles/workstation/tasks/software/minecraft.yml +++ /dev/null @@ -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 diff --git a/roles/workstation/tasks/software/misc_games.yml b/roles/workstation/tasks/software/misc_games.yml deleted file mode 100644 index fc0b5ae..0000000 --- a/roles/workstation/tasks/software/misc_games.yml +++ /dev/null @@ -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 diff --git a/roles/workstation/tasks/software/misc_packages.yml b/roles/workstation/tasks/software/misc_packages.yml deleted file mode 100644 index 0751638..0000000 --- a/roles/workstation/tasks/software/misc_packages.yml +++ /dev/null @@ -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"] diff --git a/roles/workstation/tasks/software/nvidia.yml b/roles/workstation/tasks/software/nvidia.yml deleted file mode 100644 index 947b55d..0000000 --- a/roles/workstation/tasks/software/nvidia.yml +++ /dev/null @@ -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 diff --git a/roles/workstation/tasks/software/openshot.yml b/roles/workstation/tasks/software/openshot.yml deleted file mode 100644 index ff218d3..0000000 --- a/roles/workstation/tasks/software/openshot.yml +++ /dev/null @@ -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 diff --git a/roles/workstation/tasks/software/packer.yml b/roles/workstation/tasks/software/packer.yml deleted file mode 100644 index 533178d..0000000 --- a/roles/workstation/tasks/software/packer.yml +++ /dev/null @@ -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 diff --git a/roles/workstation/tasks/software/signal.yml b/roles/workstation/tasks/software/signal.yml deleted file mode 100644 index 5903286..0000000 --- a/roles/workstation/tasks/software/signal.yml +++ /dev/null @@ -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 diff --git a/roles/workstation/tasks/software/solaar.yml b/roles/workstation/tasks/software/solaar.yml deleted file mode 100644 index 4ad8646..0000000 --- a/roles/workstation/tasks/software/solaar.yml +++ /dev/null @@ -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 diff --git a/roles/workstation/tasks/software/spotify.yml b/roles/workstation/tasks/software/spotify.yml deleted file mode 100644 index 2ed50ed..0000000 --- a/roles/workstation/tasks/software/spotify.yml +++ /dev/null @@ -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 diff --git a/roles/workstation/tasks/software/steam.yml b/roles/workstation/tasks/software/steam.yml deleted file mode 100644 index 40b2491..0000000 --- a/roles/workstation/tasks/software/steam.yml +++ /dev/null @@ -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 diff --git a/roles/workstation/tasks/software/syncthing.yml b/roles/workstation/tasks/software/syncthing.yml deleted file mode 100644 index 4a4ed69..0000000 --- a/roles/workstation/tasks/software/syncthing.yml +++ /dev/null @@ -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: "true" - replace: "false" - 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: "default" - replace: "dark" - 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 diff --git a/roles/workstation/tasks/software/terraform.yml b/roles/workstation/tasks/software/terraform.yml deleted file mode 100644 index 33a682f..0000000 --- a/roles/workstation/tasks/software/terraform.yml +++ /dev/null @@ -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 diff --git a/roles/workstation/tasks/software/thunderbird.yml b/roles/workstation/tasks/software/thunderbird.yml deleted file mode 100644 index ae20f56..0000000 --- a/roles/workstation/tasks/software/thunderbird.yml +++ /dev/null @@ -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 diff --git a/roles/workstation/tasks/software/todoist.yml b/roles/workstation/tasks/software/todoist.yml deleted file mode 100644 index 56a6a67..0000000 --- a/roles/workstation/tasks/software/todoist.yml +++ /dev/null @@ -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 diff --git a/roles/workstation/tasks/software/ulauncher.yml b/roles/workstation/tasks/software/ulauncher.yml deleted file mode 100644 index 46d5d80..0000000 --- a/roles/workstation/tasks/software/ulauncher.yml +++ /dev/null @@ -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 diff --git a/roles/workstation/tasks/software/vagrant.yml b/roles/workstation/tasks/software/vagrant.yml deleted file mode 100644 index 57efc9d..0000000 --- a/roles/workstation/tasks/software/vagrant.yml +++ /dev/null @@ -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 diff --git a/roles/workstation/tasks/software/virtualbox.yml b/roles/workstation/tasks/software/virtualbox.yml deleted file mode 100644 index 8e93d2c..0000000 --- a/roles/workstation/tasks/software/virtualbox.yml +++ /dev/null @@ -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 diff --git a/roles/workstation/tasks/software/vivaldi.yml b/roles/workstation/tasks/software/vivaldi.yml deleted file mode 100644 index b8d66f9..0000000 --- a/roles/workstation/tasks/software/vivaldi.yml +++ /dev/null @@ -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 diff --git a/roles/workstation/tasks/software/vlc.yml b/roles/workstation/tasks/software/vlc.yml deleted file mode 100644 index e09c892..0000000 --- a/roles/workstation/tasks/software/vlc.yml +++ /dev/null @@ -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 diff --git a/roles/workstation/tasks/software/xonotic.yml b/roles/workstation/tasks/software/xonotic.yml deleted file mode 100644 index 0b20190..0000000 --- a/roles/workstation/tasks/software/xonotic.yml +++ /dev/null @@ -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 diff --git a/roles/workstation/tasks/users/rene.yml b/roles/workstation/tasks/users/rene.yml deleted file mode 100644 index a2cc502..0000000 --- a/roles/workstation/tasks/users/rene.yml +++ /dev/null @@ -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 diff --git a/roles/workstation/vars/main.yml b/roles/workstation/vars/main.yml deleted file mode 100644 index e69de29..0000000 diff --git a/tasks/basetools/main.yml b/tasks/basetools/main.yml deleted file mode 100644 index 4dc9baf..0000000 --- a/tasks/basetools/main.yml +++ /dev/null @@ -1,3 +0,0 @@ ---- -- name: install basetools - diff --git a/tasks/cinnamon/main.yml b/tasks/cinnamon/main.yml deleted file mode 100644 index e69de29..0000000 diff --git a/tasks/deepin/main.yml b/tasks/deepin/main.yml deleted file mode 100644 index e69de29..0000000 diff --git a/tasks/gnome/main.yml b/tasks/gnome/main.yml deleted file mode 100644 index e69de29..0000000 diff --git a/tasks/kde/main.yml b/tasks/kde/main.yml deleted file mode 100644 index e69de29..0000000 diff --git a/tasks/mate/main.yml b/tasks/mate/main.yml deleted file mode 100644 index e69de29..0000000 diff --git a/tasks/users/main.yml b/tasks/users/main.yml deleted file mode 100644 index cfe6754..0000000 --- a/tasks/users/main.yml +++ /dev/null @@ -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 diff --git a/tasks/xfce/main.yml b/tasks/xfce/main.yml deleted file mode 100644 index e69de29..0000000 diff --git a/tasks/zsh/main.yml b/tasks/zsh/main.yml deleted file mode 100644 index 706e459..0000000 --- a/tasks/zsh/main.yml +++ /dev/null @@ -1,9 +0,0 @@ -zsh -zsh-autosuggestions -zsh-completions -zsh-doc -zsh-history-substring-search -zsh-lovers -zsh-syntax-highlighting -zsh-theme-powerlevel9k -zshdb diff --git a/templates/wlan_auto_toggle.j2 b/templates/wlan_auto_toggle.j2 deleted file mode 100755 index c38835e..0000000 --- a/templates/wlan_auto_toggle.j2 +++ /dev/null @@ -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