From 391988597a1d98541c377068e1e11939a1ba16e2 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Tue, 11 Sep 2018 20:43:16 +0100 Subject: [PATCH] Add packages --- .circleci/config.yml | 1 + Pipfile | 3 +- dotfiles.yml | 1 + tasks/packages.yml | 172 +++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 176 insertions(+), 1 deletion(-) create mode 100644 tasks/packages.yml diff --git a/.circleci/config.yml b/.circleci/config.yml index 644c06f..c8aaef1 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -16,3 +16,4 @@ jobs: - "/home/circleci/.local/share/virtualenvs" - run: pipenv run test - run: pipenv run check + - run: pipenv run dryrun diff --git a/Pipfile b/Pipfile index 25508c9..9d7e973 100644 --- a/Pipfile +++ b/Pipfile @@ -14,5 +14,6 @@ python_version = "3.7" [scripts] deploy = "sudo ansible-playbook -i hosts dotfiles.yml" -check = "ansible-playbook -i hosts dotfiles.yml -C" +dryrun = "ansible-playbook -i hosts dotfiles.yml -C" +check = "ansible-playbook -i hosts dotfiles.yml --syntax-check" test = "yamllint -sc yamllint.yml yamllint.yml dotfiles.yml tasks/ vars.yml" diff --git a/dotfiles.yml b/dotfiles.yml index 0cf4201..3953564 100644 --- a/dotfiles.yml +++ b/dotfiles.yml @@ -4,6 +4,7 @@ - ping: - include_vars: file: vars.yml + - import_tasks: tasks/packages.yml - import_tasks: tasks/common.yml - import_tasks: tasks/config.yml - import_tasks: tasks/vim.yml diff --git a/tasks/packages.yml b/tasks/packages.yml new file mode 100644 index 0000000..fb9387f --- /dev/null +++ b/tasks/packages.yml @@ -0,0 +1,172 @@ +- user: + name: aur_builder + group: wheel + +- lineinfile: + path: /etc/sudoers.d/11-install-aur_builder + line: 'aur_builder ALL=(ALL) NOPASSWD: /usr/bin/pacman' + create: true + validate: 'visudo -cf %s' + +- name: "Install yay" + aur: + skip_installed: true + name: yay + become: aur_builder + +- name: "Install initial packages" + aur: + use: yay + skip_installed: true + name: "{{ item }}" + become: aur_builder + with_items: + - 'i3-gaps' + - 'ttf-google-fonts-git' + - 'i3lock-color-git' + +- name: "Install packages" + aur: + use: yay + skip_installed: true + upgrade: true + name: "{{ item }}" + become: aur_builder + with_items: + - 'acpi' + - 'advanced-ssh-config' + - 'alacritty-git' + - 'android-tools' + - 'archstrike-keyring' + - 'arduino' + - 'bcm20702a1-firmware' + - 'betterlockscreen' + - 'bleachbit' + - 'blender' + - 'bluez-firmware' + - 'brave-bin' + - 'brightnessctl' + - 'calibre' + - 'caprine' + - 'caret-bin' + - 'catimg' + - 'climate' + - 'clamtk' + - 'corebird' + - 'compton' + - 'deluge' + - 'dex' + - 'dmenu' + - 'dunst' + - 'etcher' + - 'etcher-cli' + - 'exa' + - 'fasd' + - 'feedreader' + - 'feh' + - 'filezilla' + - 'firefox' + - 'firefox-developer-edition' + - 'fonts-meta-extended-lt' + - 'gimp' + - 'glogg' + - 'google-earth-pro' + - 'gparted' + - 'grub-customizer' + - 'grub2-theme-archlinux' + - 'gvim' + - 'handbrake' + - 'hexchat' + - 'htop' + - 'i3status' + - 'i3status-rust' + - 'ibus' + - 'ibus-uniemoji' + - 'inkscape' + - 'intellij-idea-ultimate-edition' + - 'intellij-idea-ultimate-edition-jre' + - 'intellij-jdk' + - 'jdk' + - 'jshon' + - 'kdenlive' + - 'keepassxc' + - 'keybase-bin' + - 'kodi' + - 'libinput' + - 'libinput-gestures' + - 'lightdm' + - 'lightdm-webkit2-greeter' + - 'lxpolkit-git' + - 'lxrandr' + - 'minecraft' + - 'mkchromecast' + - 'nextcloud-client' + - 'nnn' + - 'nodejs' + - 'numix-gtk-theme' + - 'nvm' + - 'obs-studio' + - 'oh-my-zsh-git' + - 'onlyoffice-bin' + - 'otf-fira-code' + - 'otf-font-awesome' + - 'pacaur' + - 'perl-file-mimeinfo' + - 'pigz' + - 'playerctl' + - 'postgresql' + - 'postman-bin' + - 'powertop' + - 'psensor' + - 'pulseaudio-bluetooth-a2dp-gdm-fix' + - 'pyenv' + - 'pyenv-virtualenv' + - 'python-pip' + - 'python-virtualenv' + - 'python2-pip' + - 'python2-virtualenv' + - 'qt5-styleplugins' + - 'redis' + - 'redshift' + - 'reptyr' + - 'rofi' + - 'scrcpy' + - 'screenfetch' + - 'sl' + - 'slack-desktop' + - 'slack-term' + - 'solaar' + - 'spotify' + - 'steam' + - 'sublime-text' + - 'sysstat' + - 'tbg' + - 'terminator' + - 'thefuck' + - 'thunderbird' + - 'tig' + - 'tmux' + - 'tor-browser-en' + - 'ttf-emojione' + - 'ttf-fira-code' + - 'ttf-font-awesome' + - 'ttf-ms-fonts' + - 'ttf-wps-fonts' + - 'turtl' + - 'tupload' + - 'universal-ctags-git' + - 'visual-studio-code-bin' + - 'virtualbox' + - 'vivaldi' + - 'vlc' + - 'whatsie' + - 'wps-office' + - 'wps-office-extension-english-uk-dictionary' + - 'yaourt' + - 'yubikey-manager' + - 'yubikey-personalization-gui' + - 'zeal' + - 'zsh' + - 'zsh-completions' + - 'zsh-doc' + - 'zsh-syntax-highlighting'