<commit_before>- hosts: all

  tasks:
    - name: Add config lines
      become: yes
      become_user: root
      lineinfile:
        dest: '/etc/{{item.file}}'
        line: '{{item.line}}'
        state: present
        create: yes
      with_items:
        - {file: vconsole.conf, line: FONT=Lat2-Terminus16}
        - {file: vconsole.conf, line: KEYMAP=dvorak}
        - {file: locale.conf, line: LANG=en_US.UTF-8}
      tags: [config]

    - name: Render config templates
      become: yes
      become_user: root
      template:
        src: 'etc/{{item}}.j2'
        dest: /etc/{{item}}
      with_items:
        - hostname
      tags: [config]

    - name: Create dotfolders
      file:
        path: ~/.{{item}}
        state: directory
      with_items:
        - bin
        - clipmenu
        - xmonad
        - bash.d
        - Xresources.d
        - xkb/symbols
        - local/share/nvim/site/autoload
        - config/qutebrowser
        - urxvt/ext
      tags: [dotfolders]

    - name: Install dotfiles
      copy:
        src: dotfiles/{{item}}
        dest: ~/.{{item}}
      with_items:
        - Xresources
        - tmux.conf
        - xmonad/xmonad.hs
        - xkb/symbols/poskeys
        - xinitrc
        - gemrc
        - psqlrc
        - config/nvim/init.vim
        - config/qutebrowser/config.py
        - bashrc
        - inputrc
        - bash.d/prompt.bash
        - urxvt/ext/clipboard
      tags: [dotfiles]

    - name: Render dotfile templates
      template:
        src: '{{item}}.j2'
        dest: ~/.{{item}}
      with_items:
        - Xresources.d/rxvt-unicode
        - bash.d/theme.bash
        - gitconfig
      tags: [dotfiles]

    - name: Install scripts into ~/.bin
      copy:
        src: scripts/{{item}}
        dest: ~/.bin/{{item}}
        mode: 0755
      with_items:
        - print-bash-colors
        - print-tmux-colors
        - clipmenu
        - tmuxargs
        - tmuxssh
        - ttymux
        - setxkb
        - dmenu
        - mvn-autoenforce
      tags: [scripts]

    - name: Symlink odbox script
      file:
        src: '{{playbook_dir}}/files/scripts/odbox'
        dest: ~/.bin/odbox
        state: link
      tags: [scripts]

    - name: Install pacman packages
      become: yes
      become_user: root
      pacman:
        name: '{{item}}'
        state: present
      with_items:
        # Base packages
        - base
        - base-devel

        # More base
        - zip
        - parallel
        - gthumb

        # VirtualBox guest additions
        - virtualbox-guest-modules-arch
        - virtualbox-guest-utils

        # XOrg
        - xorg-server
        - xorg-xinit
        - xorg
        - xsel
        - xclip
        - arandr

        # XMonad
        - xmonad
        - xmonad-contrib
        - xcompmgr
        - unclutter
        - dmenu

        # Fonts
        - ttf-liberation

        # Terminal
        - rxvt-unicode
        - tmux

        # Tools
        - units
        - neovim
        - moreutils
        - wget
        - git
        - hub
        - ansible
        - fabric
        - openssh
        - htop
        - iftop
        - iotop
        - jq
        - unzip<commit_msg>packages: Add fzf<commit_after>- hosts: all

  tasks:
    - name: Add config lines
      become: yes
      become_user: root
      lineinfile:
        dest: '/etc/{{item.file}}'
        line: '{{item.line}}'
        state: present
        create: yes
      with_items:
        - {file: vconsole.conf, line: FONT=Lat2-Terminus16}
        - {file: vconsole.conf, line: KEYMAP=dvorak}
        - {file: locale.conf, line: LANG=en_US.UTF-8}
      tags: [config]

    - name: Render config templates
      become: yes
      become_user: root
      template:
        src: 'etc/{{item}}.j2'
        dest: /etc/{{item}}
      with_items:
        - hostname
      tags: [config]

    - name: Create dotfolders
      file:
        path: ~/.{{item}}
        state: directory
      with_items:
        - bin
        - clipmenu
        - xmonad
        - bash.d
        - Xresources.d
        - xkb/symbols
        - local/share/nvim/site/autoload
        - config/qutebrowser
        - urxvt/ext
      tags: [dotfolders]

    - name: Install dotfiles
      copy:
        src: dotfiles/{{item}}
        dest: ~/.{{item}}
      with_items:
        - Xresources
        - tmux.conf
        - xmonad/xmonad.hs
        - xkb/symbols/poskeys
        - xinitrc
        - gemrc
        - psqlrc
        - config/nvim/init.vim
        - config/qutebrowser/config.py
        - bashrc
        - inputrc
        - bash.d/prompt.bash
        - urxvt/ext/clipboard
      tags: [dotfiles]

    - name: Render dotfile templates
      template:
        src: '{{item}}.j2'
        dest: ~/.{{item}}
      with_items:
        - Xresources.d/rxvt-unicode
        - bash.d/theme.bash
        - gitconfig
      tags: [dotfiles]

    - name: Install scripts into ~/.bin
      copy:
        src: scripts/{{item}}
        dest: ~/.bin/{{item}}
        mode: 0755
      with_items:
        - print-bash-colors
        - print-tmux-colors
        - clipmenu
        - tmuxargs
        - tmuxssh
        - ttymux
        - setxkb
        - dmenu
        - mvn-autoenforce
      tags: [scripts]

    - name: Symlink odbox script
      file:
        src: '{{playbook_dir}}/files/scripts/odbox'
        dest: ~/.bin/odbox
        state: link
      tags: [scripts]

    - name: Install pacman packages
      become: yes
      become_user: root
      pacman:
        name: '{{item}}'
        state: present
      with_items:
        # Base packages
        - base
        - base-devel

        # More base
        - zip
        - parallel
        - gthumb

        # VirtualBox guest additions
        - virtualbox-guest-modules-arch
        - virtualbox-guest-utils

        # XOrg
        - xorg-server
        - xorg-xinit
        - xorg
        - xsel
        - xclip
        - arandr

        # XMonad
        - xmonad
        - xmonad-contrib
        - xcompmgr
        - unclutter
        - dmenu

        # Fonts
        - ttf-liberation

        # Terminal
        - rxvt-unicode
        - tmux

        # Tools
        - units
        - neovim
        - fzf
        - moreutils
        - wget
        - git
        - hub
        - ansible
        - fabric
        - openssh
        - htop
        - iftop
        - iotop
        - jq
        - unzip
{'fraction_non_alphanumeric': 0.10455680399500625, 'fraction_numerical': 0.003121098626716604, 'mean_word_length': 1.1463496316141997, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2292710', 'n_tokens_mistral': 2116, 'n_tokens_neox': 2039, 'n_words': 422}