Add Ansible configuration and remove NixOS
All checks were successful
Nix Format Check / check-format (pull_request) Successful in 39s
All checks were successful
Nix Format Check / check-format (pull_request) Successful in 39s
This commit is contained in:
46
config/ansible/main.yml
Normal file
46
config/ansible/main.yml
Normal file
@@ -0,0 +1,46 @@
|
||||
- hosts: all
|
||||
gather_facts: true
|
||||
|
||||
tasks:
|
||||
- name: Include VSCode tasks
|
||||
ansible.builtin.import_tasks: tasks/vscode.yml
|
||||
when: hostname in ['mennos-laptop', 'mennos-desktop']
|
||||
become: true
|
||||
|
||||
- name: Include Rust tasks
|
||||
ansible.builtin.import_tasks: tasks/rust.yml
|
||||
become: true
|
||||
|
||||
- name: Include Brave tasks
|
||||
ansible.builtin.import_tasks: tasks/brave.yml
|
||||
when: hostname in ['mennos-laptop', 'mennos-desktop']
|
||||
become: true
|
||||
|
||||
- name: Include 1Password tasks
|
||||
ansible.builtin.import_tasks: tasks/1password.yml
|
||||
when: hostname in ['mennos-laptop', 'mennos-desktop']
|
||||
become: true
|
||||
|
||||
- name: Include symlinks tasks
|
||||
ansible.builtin.import_tasks: tasks/symlinks.yml
|
||||
|
||||
- name: Include flatpaks tasks
|
||||
ansible.builtin.import_tasks: tasks/flatpaks.yml
|
||||
when: hostname in ['mennos-laptop', 'mennos-desktop']
|
||||
|
||||
- name: Gather package facts
|
||||
ansible.builtin.package_facts:
|
||||
manager: auto
|
||||
become: true
|
||||
|
||||
- name: Ensure common packages are installed
|
||||
ansible.builtin.package:
|
||||
name:
|
||||
- git
|
||||
- vim
|
||||
- pipx
|
||||
- trash-cli
|
||||
- curl
|
||||
- wget
|
||||
state: present
|
||||
become: true
|
Reference in New Issue
Block a user