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