mirror of
https://github.com/eoli3n/dotfiles
synced 2024-06-07 15:26:06 +02:00
37 lines
873 B
YAML
37 lines
873 B
YAML
---
|
|
- name: Install common packages
|
|
package:
|
|
name:
|
|
- curl
|
|
- wget
|
|
- jq
|
|
- most
|
|
- fzf
|
|
- rsync
|
|
- git
|
|
- fish
|
|
- neovim
|
|
- screen
|
|
state: present
|
|
become: yes
|
|
ignore_errors: yes
|
|
when: meta == "common"
|
|
|
|
- name: Test host packages file
|
|
stat:
|
|
path: "{{ role_path }}/tasks/by_host/{{ ansible_hostname }}/main.yml"
|
|
register: host_file
|
|
|
|
- name: Include host packages
|
|
include_tasks: "{{ role_path }}/tasks/by_host/{{ ansible_hostname }}/main.yml"
|
|
when: host_file.stat.exists
|
|
|
|
- name: Test distribution packages file
|
|
stat:
|
|
path: "{{ role_path }}/tasks/by_os/{{ ansible_distribution|lower }}/main.yml"
|
|
register: distribution_file
|
|
|
|
- name: Include distribution packages
|
|
include_tasks: "{{ role_path }}/tasks/by_os/{{ ansible_distribution|lower }}/main.yml"
|
|
when: distribution_file.stat.exists
|