Lint some files

This commit is contained in:
flyingscorpio@clevo 2022-05-03 18:19:56 +02:00
parent 3b853d1321
commit 68530bfed5
2 changed files with 42 additions and 42 deletions

View file

@ -3,34 +3,34 @@
hosts: localhost
connection: local
roles:
- { role: git, tags: git }
- { role: base, tags: base }
- { role: bash, tags: bash }
- { role: zsh, tags: zsh }
- { role: git-summary, tags: git-summary }
- { role: i3, tags: i3 }
- { role: kitty, tags: kitty }
- { role: pass, tags: pass }
- { role: keepass, tags: keepass }
- { role: terminator, tags: terminator }
- { role: neovim, tags: [neovim, nvim] }
- { role: ssh-agent, tags: ssh-agent }
- { role: pacman, tags: [pacman, pacman.conf] }
- { role: grub, tags: grub }
- { role: firefox, tags: firefox }
- { role: markdown, tags: markdown }
- { role: tor, tags: tor }
- { role: sudoers, tags: sudoers }
- { role: java, tags: java }
- { role: lilypond, tags: lilypond }
- { role: latex, tags: latex }
- { role: powershell, tags: powershell }
- { role: rust, tags: rust }
- { role: protonvpn, tags: protonvpn }
- { role: repos, tags: repos }
- { role: libvirt, tags: libvirt }
- { role: mariadb, tags: mariadb }
- { role: rsync-backup, tags: rsync-backup }
- { role: gitea-backup, tags: gitea-backup }
- { role: gaming, tags: gaming }
- { role: etckeeper, tags: etckeeper }
- {role: git, tags: git}
- {role: base, tags: base}
- {role: bash, tags: bash}
- {role: zsh, tags: zsh}
- {role: git-summary, tags: git-summary}
- {role: i3, tags: i3}
- {role: kitty, tags: kitty}
- {role: pass, tags: pass}
- {role: keepass, tags: keepass}
- {role: terminator, tags: terminator}
- {role: neovim, tags: [neovim, nvim]}
- {role: ssh-agent, tags: ssh-agent}
- {role: pacman, tags: [pacman, pacman.conf]}
- {role: grub, tags: grub}
- {role: firefox, tags: firefox}
- {role: markdown, tags: markdown}
- {role: tor, tags: tor}
- {role: sudoers, tags: sudoers}
- {role: java, tags: java}
- {role: lilypond, tags: lilypond}
- {role: latex, tags: latex}
- {role: powershell, tags: powershell}
- {role: rust, tags: rust}
- {role: protonvpn, tags: protonvpn}
- {role: repos, tags: repos}
- {role: libvirt, tags: libvirt}
- {role: mariadb, tags: mariadb}
- {role: rsync-backup, tags: rsync-backup}
- {role: gitea-backup, tags: gitea-backup}
- {role: gaming, tags: gaming}
- {role: etckeeper, tags: etckeeper}

View file

@ -13,7 +13,7 @@
- shellcheck
- cmake
- clang
- npm # for coc
- npm # for coc
when: ansible_facts['distribution'] == 'Archlinux'
- name: Install packages (Debian)
@ -30,7 +30,7 @@
- shellcheck
- cmake
- clang
- npm # for coc
- npm # for coc
when: ansible_facts['distribution'] == 'Debian'
# some Arch derivatives don't have the package (arch32, archarm)
@ -55,10 +55,10 @@
- name: Copy configs
copy: src={{ item.src }} dest={{ item.dest }}
with_items:
- { src: 'flake8', dest: '~/.flake8' }
- { src: 'pylintrc', dest: '~/.pylintrc' }
- { src: 'vimrc', dest: '~/.vimrc' }
- { src: 'colors', dest: '~/.vim/' }
- {src: 'flake8', dest: '~/.flake8'}
- {src: 'pylintrc', dest: '~/.pylintrc'}
- {src: 'vimrc', dest: '~/.vimrc'}
- {src: 'colors', dest: '~/.vim/'}
- name: Check if vim-plug is installed
stat:
@ -72,35 +72,35 @@
- name: Upgrade vim-plug
command:
cmd: vim +PlugUpgrade +qall
stdin: '\n' # When an error with vimrc is encountered, needs user input to continue
stdin: '\n' # On error needs user input to continue
register: result
changed_when: "'vim-plug is already up-to-date' not in result.stdout"
- name: Install plugins
command:
cmd: vim +PlugInstall +qall
stdin: '\n' # When an error with vimrc is encountered, needs user input to continue
stdin: '\n' # On error needs user input to continue
register: result
changed_when: "'Resolving deltas' in result.stdout"
- name: Update plugins
command:
cmd: vim +PlugUpdate +qall
stdin: '\n' # When an error with vimrc is encountered, needs user input to continue
stdin: '\n' # On error needs user input to continue
register: result
changed_when: "'files changed' in result.stdout"
- name: Update Coc plugins
command:
cmd: vim +CocUpdate +qall
stdin: '\n' # When an error with vimrc is encountered, needs user input to continue
stdin: '\n' # On error needs user input to continue
register: result
changed_when: "'Updated' in result.stdout"
- name: Upgrade Black
command:
cmd: vim +BlackUpgrade +qall
stdin: '\n' # When an error with vimrc is encountered, needs user input to continue
stdin: '\n' # On error needs user input to continue
register: result
# TODO: changed_when