Merge branch 'master' of ssh://git_opytex/lafrite/Ansible_workstation

This commit is contained in:
2019-06-10 18:51:14 +02:00
12 changed files with 6575 additions and 3 deletions

View File

@@ -23,7 +23,6 @@
- ntop
- iotop
- glances
- ranger
- nmap
- nfs-utils
- sshpass
@@ -35,7 +34,6 @@
- ntfs-3g
- git-annex
- cifs-utils
- vifm
- gnupg
state: present
tags:

View File

@@ -82,3 +82,18 @@
become: yes
become_user: aur_builder
- name: Download st
git:
repo: https://git.opytex.org/lafrite/st.git
dest: /home/aur_builder/st
register: st_update
- name: Install st
command: "makepkg -si --noconfirm"
args:
chdir: "/home/aur_builder/st/"
when: st_update is changed
become: yes
become_user: aur_builder

View File

@@ -7,6 +7,7 @@
group: "{{ item.group }}"
with_items: "{{ me }}"
# Zsh config
- name: Download antibody
get_url:
url: https://raw.githubusercontent.com/getantibody/installer/master/install
@@ -51,6 +52,40 @@
with_items: "{{ me }}"
when: prompt == 'zsh'
# Fish config
- name: Create fish config directory
file:
dest: /home/{{ item.username }}/.config/fish/
state: directory
with_items: "{{ me }}"
when: prompt == 'fish'
- name: Copy config.fish
template:
src: files/dotfiles/config.fish
dest: /home/{{ item.username }}/.config/fish/
owner: "{{ item.username }}"
group: "{{ item.group }}"
with_items: "{{ me }}"
when: prompt == 'fish'
register: fishconfig
- name: Copy fisher plugin list
template:
src: files/dotfiles/fishfile
dest: /home/{{ item.username }}/.config/fish/
owner: "{{ item.username }}"
group: "{{ item.group }}"
with_items: "{{ me }}"
when: prompt == 'fish'
register: fishplugin
- name: Run fisher update
shell: fisher
become_user: "{{ me }}"
when: fishconfig.changed or fishplugin.changed
# Vim config
- name: Copy .vim/
copy:
src: files/dotfiles/vim/
@@ -81,6 +116,7 @@
group: "{{ item.group }}"
with_items: "{{ me }}"
# Ssh config
- name: Creates .ssh
file:
path: /home/{{ item.username }}/.ssh/
@@ -105,6 +141,7 @@
group: "{{ item.group }}"
with_items: "{{ me }}"
# Git config
- name: Copy gitconfig
template:
src: files/dotfiles/gitconfig

View File

@@ -6,6 +6,7 @@
with_items: "{{ me }}"
when: not minimal
# Tmux
- name: Clone TPM (tmux plugin manager)
git:
repo: https://github.com/tmux-plugins/tpm
@@ -29,6 +30,7 @@
group: "{{ item.group }}"
with_items: "{{ me }}"
# Mocp
- name: Install mocp (Archlinux)
pacman:
name:
@@ -44,6 +46,7 @@
group: "{{ item.group }}"
with_items: "{{ me }}"
# Newsboat
- name: Install newsboat (Archlinux)
pacman:
name:
@@ -59,6 +62,23 @@
group: "{{ item.group }}"
with_items: "{{ me }}"
# vifm
- name: Install vifm (Archlinux)
pacman:
name:
- vifm
state: present
when: ansible_distribution != 'Debian'
- name: Vifm config folder
copy:
src: files/dotfiles/vifm/
dest: /home/{{ item.username }}/.config/vifm
owner: "{{ item.username }}"
group: "{{ item.group }}"
with_items: "{{ me }}"
# Mail, contact and calendar
- name: Install calendar and contact synchronisation tools (Archlinux)
pacman:
name: