Fix lint nagging for zsh and bash roles

This commit is contained in:
Tunui Franken 2022-11-09 09:05:36 +01:00
parent 3a72d8da53
commit 6c8d6e1ac7
2 changed files with 19 additions and 18 deletions

View file

@ -14,21 +14,22 @@
when: ansible_facts['distribution'] == 'Debian'
- name: Copy rc files
copy: src={{ item.src }} dest={{ item.dest }} backup=true
copy: src={{ item.src }} dest={{ item.dest }} backup=true mode=0644
with_items:
- { src: 'inputrc', dest: '~/.inputrc' }
- { src: 'bash_profile.ansible', dest: '~/.bash_profile.ansible' }
- { src: 'bashrc.ansible', dest: '~/.bashrc.ansible' }
- {src: 'inputrc', dest: '~/.inputrc'}
- {src: 'bash_profile.ansible', dest: '~/.bash_profile.ansible'}
- {src: 'bashrc.ansible', dest: '~/.bashrc.ansible'}
- name: Source rc.ansible files
lineinfile: path={{ item.path }} line={{ item.line }} create=true insertbefore=BOF
lineinfile: path={{ item.path }} line={{ item.line }} mode=0644 create=true insertbefore=BOF
with_items:
- { path: '~/.bashrc', line: '. "$HOME"/.bashrc.ansible' }
- { path: '~/.bash_profile', line: '. "$HOME"/.bash_profile.ansible' }
- {path: '~/.bashrc', line: '. "$HOME"/.bashrc.ansible'}
- {path: '~/.bash_profile', line: '. "$HOME"/.bash_profile.ansible'}
- name: Clone bash-git-prompt
git:
repo: https://github.com/magicmonty/bash-git-prompt.git
dest: ~/.bash-git-prompt
clone: yes
update: no
clone: true
version: master
update: false

View file

@ -22,16 +22,16 @@
when: ansible_facts['distribution'] == 'Debian'
- name: Copy files
copy: src={{ item.src }} dest={{ item.dest }} backup=true
copy: src={{ item.src }} dest={{ item.dest }} backup=true mode=0644
with_items:
- { src: 'zshrc', dest: '~/.zshrc' }
- { src: 'zshenv', dest: '~/.zshenv' }
- { src: 'zprofile', dest: '~/.zprofile' }
- { src: 'p10k.zsh', dest: '~/.p10k.zsh' }
- {src: 'zshrc', dest: '~/.zshrc'}
- {src: 'zshenv', dest: '~/.zshenv'}
- {src: 'zprofile', dest: '~/.zprofile'}
- {src: 'p10k.zsh', dest: '~/.p10k.zsh'}
- name: Clone repos
git: repo={{ item.repo }} dest={{ item.dest }} clone=yes version={{ item.version }} update=no
git: repo={{ item.repo }} dest={{ item.dest }} clone=true version={{ item.version }} update=false
with_items:
- { repo: 'https://github.com/softmoth/zsh-vim-mode.git', dest: '~/.git_clones/zsh-vim-mode', version: 'main' }
- { repo: 'https://github.com/zsh-users/zsh-autosuggestions.git', dest: '~/.git_clones/zsh-autosuggestions', version: 'master' }
- { repo: 'https://github.com/zsh-users/zsh-syntax-highlighting.git', dest: '~/.git_clones/zsh-syntax-highlighting', version: 'master' }
- {repo: 'https://github.com/softmoth/zsh-vim-mode.git', dest: '~/.git_clones/zsh-vim-mode', version: 'main'}
- {repo: 'https://github.com/zsh-users/zsh-autosuggestions.git', dest: '~/.git_clones/zsh-autosuggestions', version: 'master'}
- {repo: 'https://github.com/zsh-users/zsh-syntax-highlighting.git', dest: '~/.git_clones/zsh-syntax-highlighting', version: 'master'}