44 lines
1.1 KiB
YAML
44 lines
1.1 KiB
YAML
---
|
|
- name: Install Dependencies
|
|
hosts: all
|
|
pre_tasks:
|
|
- name: Update Caches
|
|
ansible.builtin.import_tasks: tasks/update-pkg-mngr-cache.yml
|
|
|
|
- name: Install Preresquites
|
|
ansible.builtin.import_tasks: tasks/install-prereqs.yml
|
|
|
|
- name: Create Needed Directories
|
|
ansible.builtin.file:
|
|
path: "{{ item }}"
|
|
state: directory
|
|
mode: 0755
|
|
loop:
|
|
- "{{ xdg_data_home }}"
|
|
- "{{ xdg_bin_home }}"
|
|
environment:
|
|
XDG_DATA_HOME: "{{ xdg_data_home }}"
|
|
XDG_CONFIG_HOME: "{{ xdg_config_home }}"
|
|
XDG_BIN_HOME: "{{ xdg_bin_home }}"
|
|
CARGO_HOME: "{{ cargo_home }}"
|
|
RUSTUP_HOME: "{{ rustup_home }}"
|
|
GOPATH: "{{ gopath }}"
|
|
PATH: "{{ ansible_env.PATH }}:{{ gopath }}/bin:{{ cargo_home }}/bin:{{ xdg_bin_home }}"
|
|
roles:
|
|
- role: git
|
|
tags:
|
|
- git
|
|
- role: deploy-files
|
|
tags:
|
|
- deploy
|
|
- role: zsh
|
|
tags:
|
|
- zsh
|
|
- role: nvim
|
|
tags:
|
|
- nvim
|
|
- role: arch-post-setup
|
|
tags:
|
|
- arch
|
|
when: ansible_facts.distribution == 'Archlinux'
|