Add names to tasks
This commit is contained in:
parent
f83b029c80
commit
f99b1cdba0
21 changed files with 73 additions and 55 deletions
|
@ -14,7 +14,6 @@
|
|||
- import_tasks: tasks/shell.yml
|
||||
- import_tasks: tasks/fonts.yml
|
||||
- import_tasks: tasks/power-saving.yml
|
||||
- import_tasks: tasks/display.yml
|
||||
- import_tasks: tasks/javascript.yml
|
||||
- import_tasks: tasks/applications.yml
|
||||
- import_tasks: tasks/boot.yml
|
||||
|
|
|
@ -8,7 +8,8 @@
|
|||
with_items:
|
||||
- 'dex'
|
||||
|
||||
- file:
|
||||
- name: "Autostart services"
|
||||
file:
|
||||
src: "/etc/xdg/autostart/{{ item }}.desktop"
|
||||
dest: "{{ home }}/.config/autostart/{{ item }}.desktop"
|
||||
mode: 0644
|
||||
|
@ -25,7 +26,8 @@
|
|||
- 'lxqt-policykit-agent'
|
||||
- 'solaar'
|
||||
|
||||
- file:
|
||||
- name: "Autostart applications"
|
||||
file:
|
||||
src: "/usr/share/applications/{{ item }}.desktop"
|
||||
dest: "{{ home }}/.config/autostart/{{ item }}.desktop"
|
||||
mode: 0644
|
||||
|
|
|
@ -12,11 +12,13 @@
|
|||
- 'lightdm-slick-greeter'
|
||||
- 'os-prober'
|
||||
|
||||
- service:
|
||||
- name: "Enable lightdm"
|
||||
service:
|
||||
name: "lightdm"
|
||||
enabled: true
|
||||
|
||||
- modprobe:
|
||||
- name: "Disable PC Speaker"
|
||||
modprobe:
|
||||
name: pcspkr
|
||||
state: absent
|
||||
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
- user:
|
||||
- name: "Remove aur_builder user"
|
||||
user:
|
||||
name: aur_builder
|
||||
state: absent
|
||||
|
|
|
@ -10,12 +10,13 @@
|
|||
- 'ngrok'
|
||||
|
||||
|
||||
- service:
|
||||
- name: "Enable redis"
|
||||
service:
|
||||
name: "redis"
|
||||
enabled: true
|
||||
|
||||
|
||||
- name: "DabApps Dotfiles"
|
||||
- name: "Clone DabApps Dotfiles"
|
||||
git:
|
||||
repo: git@github.com:dabapps/dotfiles
|
||||
dest: "{{ home }}/Projects/dotfiles"
|
||||
|
@ -23,7 +24,8 @@
|
|||
become: true
|
||||
become_user: "{{ user }}"
|
||||
|
||||
- file:
|
||||
- name: "Install DabApps EditorConfig"
|
||||
file:
|
||||
src: "{{ home }}/Projects/dotfiles/.editorconfig"
|
||||
dest: "{{ home }}/Projects/.editorconfig"
|
||||
mode: 0644
|
||||
|
|
|
@ -24,7 +24,8 @@
|
|||
mode: 0644
|
||||
owner: "{{ user }}"
|
||||
|
||||
- template:
|
||||
- name: "Install git config"
|
||||
template:
|
||||
src: ./files/gitconfig.conf
|
||||
dest: "{{ home }}/.gitconfig"
|
||||
mode: 0644
|
||||
|
|
|
@ -1,12 +0,0 @@
|
|||
- name: "Install display packages"
|
||||
aur:
|
||||
skip_installed: true
|
||||
name: "{{ item }}"
|
||||
become: true
|
||||
become_user: aur_builder
|
||||
when: "item not in installed_packages.stdout_lines"
|
||||
with_items:
|
||||
- 'arandr'
|
||||
- 'lxappearance'
|
||||
- 'lxrandr'
|
||||
- 'redshift'
|
|
@ -16,7 +16,8 @@
|
|||
- 'ttf-ms-fonts'
|
||||
- 'ttf-wps-fonts'
|
||||
|
||||
- file:
|
||||
- name: Install font configurations
|
||||
file:
|
||||
src: "/etc/fonts/conf.avail/{{ item }}"
|
||||
dest: "/etc/fonts/conf.d/{{ item }}"
|
||||
mode: 0644
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
- copy:
|
||||
- name: "Add nautilus file templates"
|
||||
copy:
|
||||
src: ./files/Templates
|
||||
dest: "{{ home }}/Templates"
|
||||
mode: 0755
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
become_user: aur_builder
|
||||
when: "item not in installed_packages.stdout_lines"
|
||||
with_items:
|
||||
- 'arandr'
|
||||
- 'betterlockscreen'
|
||||
- 'brightnessctl'
|
||||
- 'compton'
|
||||
|
@ -15,10 +16,13 @@
|
|||
- 'flameshot'
|
||||
- 'i3-gaps'
|
||||
- 'i3lock-color-git'
|
||||
- 'lxappearance'
|
||||
- 'lxrandr'
|
||||
- 'lxqt-policykit'
|
||||
- 'numix-gtk-theme'
|
||||
- 'aur/polybar'
|
||||
- 'qt5-styleplugins'
|
||||
- 'redshift'
|
||||
- 'rofi'
|
||||
- 'tbg'
|
||||
- 'xdotool'
|
||||
|
|
|
@ -12,13 +12,15 @@
|
|||
- 'libinput-gestures'
|
||||
- 'solaar'
|
||||
|
||||
- copy:
|
||||
- name: Install mouse config
|
||||
copy:
|
||||
src: ./files/touchpad.conf
|
||||
dest: /usr/share/X11/xorg.conf.d/30-touchpad.conf
|
||||
mode: 0644
|
||||
owner: "{{ user }}"
|
||||
|
||||
- copy:
|
||||
- name: Install libinput-gestures config
|
||||
copy:
|
||||
src: ./files/libinput-gestures.conf
|
||||
dest: /etc/libinput-gestures.conf
|
||||
mode: 0644
|
||||
|
|
|
@ -15,7 +15,8 @@
|
|||
- 'turtl'
|
||||
|
||||
|
||||
- file:
|
||||
- name: Create dotfiles directory
|
||||
file:
|
||||
state: directory
|
||||
path: "{{ home }}/.dotfiles"
|
||||
owner: "{{ user }}"
|
||||
|
|
|
@ -8,6 +8,7 @@
|
|||
with_items:
|
||||
- ntp
|
||||
|
||||
- service:
|
||||
- name: Enable NTP service
|
||||
service:
|
||||
name: "ntpd"
|
||||
enabled: true
|
||||
|
|
|
@ -19,18 +19,20 @@
|
|||
when: "item not in pacman_keys.stdout"
|
||||
with_items: "{{ keys }}"
|
||||
|
||||
- copy:
|
||||
- name: Install pacman config
|
||||
copy:
|
||||
src: ./files/pacman.conf
|
||||
dest: /etc/pacman.conf
|
||||
mode: 0644
|
||||
|
||||
- user:
|
||||
- name: Create aur_builder user
|
||||
user:
|
||||
name: aur_builder
|
||||
group: wheel
|
||||
password_lock: true
|
||||
shell: /bin/false
|
||||
|
||||
- name: sudoers file
|
||||
- name: Allow aur_builder user to run pacman as root
|
||||
lineinfile:
|
||||
path: /etc/sudoers.d/11-install-aur_builder
|
||||
line: 'aur_builder ALL=(ALL) NOPASSWD: /usr/bin/pacman'
|
||||
|
|
|
@ -29,7 +29,8 @@
|
|||
name: nbfc
|
||||
enabled: true
|
||||
|
||||
- copy:
|
||||
- name: Install TLP config
|
||||
copy:
|
||||
src: ./files/tlp.conf
|
||||
dest: /etc/default/tlp
|
||||
mode: 0644
|
||||
|
|
|
@ -12,7 +12,8 @@
|
|||
- 'python2-pip'
|
||||
- 'python2-virtualenv'
|
||||
|
||||
- file:
|
||||
- name: Create pyenv directory
|
||||
file:
|
||||
state: directory
|
||||
path: '/opt/pyenv'
|
||||
owner: "{{ user }}"
|
||||
|
|
|
@ -11,18 +11,21 @@
|
|||
- 'wireguard-tools'
|
||||
- 'opensnitch-git'
|
||||
|
||||
- copy:
|
||||
- name: Install assh config
|
||||
copy:
|
||||
src: ./files/assh.yml
|
||||
dest: "{{ home }}/.ssh/assh.yml"
|
||||
mode: 0644
|
||||
owner: "{{ user }}"
|
||||
|
||||
- copy:
|
||||
- name: Install opensnitch config
|
||||
copy:
|
||||
src: ./files/opensnitch.json
|
||||
dest: "{{ home }}/.opensnitch/ui-config.json"
|
||||
mode: 0644
|
||||
owner: "{{ user }}"
|
||||
|
||||
- service:
|
||||
- name: Enable opensnitch
|
||||
service:
|
||||
name: "opensnitchd"
|
||||
enabled: true
|
||||
|
|
|
@ -36,7 +36,8 @@
|
|||
- 'zsh-syntax-highlighting'
|
||||
|
||||
|
||||
- template:
|
||||
- name: Install ZSH config
|
||||
template:
|
||||
src: ./files/zshrc/.zshrc
|
||||
dest: "{{ home }}/.zshrc"
|
||||
mode: 0644
|
||||
|
@ -45,21 +46,24 @@
|
|||
backup: true
|
||||
trim_blocks: false
|
||||
|
||||
- template:
|
||||
- name: Install global environmetn variables
|
||||
template:
|
||||
src: ./files/global-environment
|
||||
dest: /etc/environment
|
||||
mode: 0644
|
||||
owner: root
|
||||
group: root
|
||||
|
||||
- template:
|
||||
- name: Install tmux config
|
||||
template:
|
||||
src: ./files/tmux.conf
|
||||
dest: "{{ home }}/.tmux.conf"
|
||||
mode: 0755
|
||||
owner: "{{ user }}"
|
||||
group: users
|
||||
|
||||
- git:
|
||||
- name: Install tmux themepack
|
||||
git:
|
||||
repo: https://github.com/jimeh/tmux-themepack.git
|
||||
dest: "{{ home }}/.tmux/plugins/tmux-themepack"
|
||||
force: true
|
||||
|
@ -96,7 +100,8 @@
|
|||
mode: 0644
|
||||
owner: "{{ user }}"
|
||||
|
||||
- copy:
|
||||
- name: Install tmuxinator config
|
||||
copy:
|
||||
src: ./files/tmuxinator
|
||||
dest: "{{ home }}/.config/tmuxinator"
|
||||
mode: 0755
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
- user:
|
||||
- name: Make me
|
||||
user:
|
||||
name: "{{ user }}"
|
||||
home: "{{ home }}"
|
||||
comment: Jake Howard
|
||||
|
@ -10,8 +11,3 @@
|
|||
- users
|
||||
- video
|
||||
- wheel
|
||||
|
||||
- file:
|
||||
state: directory
|
||||
path: '{{ home }}/Projects'
|
||||
owner: "{{ user }}"
|
||||
|
|
|
@ -9,22 +9,24 @@
|
|||
- 'gvim'
|
||||
- 'vim-pathogen'
|
||||
|
||||
|
||||
- copy:
|
||||
- name: Install vimrc
|
||||
copy:
|
||||
src: ./files/vimrc
|
||||
dest: "{{ home }}/.vimrc"
|
||||
mode: 0644
|
||||
owner: "{{ user }}"
|
||||
group: users
|
||||
|
||||
- copy:
|
||||
- name: Install vimrc for root user
|
||||
copy:
|
||||
src: ./files/vimrc
|
||||
dest: /root/.vimrc
|
||||
mode: 0644
|
||||
owner: root
|
||||
group: users
|
||||
|
||||
- file:
|
||||
- name: Create vim packages directory
|
||||
file:
|
||||
path: '{{ home }}/.vim/bundle'
|
||||
state: directory
|
||||
owner: "{{ user }}"
|
||||
|
|
|
@ -9,19 +9,22 @@
|
|||
- 'community/code'
|
||||
- 'universal-ctags-git'
|
||||
|
||||
- file:
|
||||
- name: Create VSCode user directory
|
||||
file:
|
||||
path: '{{ home }}/.config/Code - OSS/User'
|
||||
state: directory
|
||||
owner: "{{ user }}"
|
||||
mode: 0755
|
||||
|
||||
- copy:
|
||||
- name: Install VSCode settings
|
||||
copy:
|
||||
src: ./files/vscode-settings.json
|
||||
dest: "{{ home }}/.config/Code - OSS/User/settings.json"
|
||||
mode: 0644
|
||||
owner: "{{ user }}"
|
||||
|
||||
- copy:
|
||||
- name: Install VSCode keybindings
|
||||
copy:
|
||||
src: ./files/vscode-keybindings.json
|
||||
dest: "{{ home }}/.config/Code - OSS/User/keybindings.json"
|
||||
mode: 0644
|
||||
|
@ -70,7 +73,7 @@
|
|||
when: "item not in vscode_extensions.stdout_lines"
|
||||
with_items: "{{ requested_vscode_extensions }}"
|
||||
|
||||
- name: "Remove unversioned VSCode extensions"
|
||||
- name: "Remove unwanted VSCode extensions"
|
||||
shell: "code --uninstall-extension {{ item }}"
|
||||
become: true
|
||||
become_user: "{{ user }}"
|
||||
|
|
Loading…
Reference in a new issue