mirror of
https://github.com/morten-olsen/configs.git
synced 2026-02-08 00:46:24 +01:00
cleanup
This commit is contained in:
3
playbooks/roles/env_develop/meta/main.yml
Normal file
3
playbooks/roles/env_develop/meta/main.yml
Normal file
@@ -0,0 +1,3 @@
|
||||
---
|
||||
dependencies:
|
||||
- role: base_info
|
||||
33
playbooks/roles/env_develop/tasks/install.yml
Normal file
33
playbooks/roles/env_develop/tasks/install.yml
Normal file
@@ -0,0 +1,33 @@
|
||||
---
|
||||
- name: "Unload vars : {{ context }}"
|
||||
ansible.builtin.include_vars: ../vars/empty.yml
|
||||
tags:
|
||||
- install
|
||||
|
||||
- name: "Load vars : {{ context }}"
|
||||
ansible.builtin.include_vars: "{{ item }}"
|
||||
tags:
|
||||
- install
|
||||
with_first_found:
|
||||
- files:
|
||||
- "{{ ansible_distribution }}-{{ ansible_distribution_release }}.yml"
|
||||
- "{{ ansible_distribution }}.yml"
|
||||
- "{{ ansible_os_family }}.yml"
|
||||
- default.yml
|
||||
paths: ../vars/{{ context }}
|
||||
skip: true
|
||||
|
||||
- name: "Install dependencies : {{ context }}"
|
||||
tags:
|
||||
- install
|
||||
when: desktop_pkgs
|
||||
ansible.builtin.package:
|
||||
name: "{{ dev_pkgs }}"
|
||||
|
||||
- name: "Install casks : {{ context }}"
|
||||
tags:
|
||||
- install
|
||||
when: dev_casks
|
||||
community.general.homebrew_cask:
|
||||
name: "{{ dev_casks }}"
|
||||
state: installed
|
||||
20
playbooks/roles/env_develop/tasks/main.yml
Normal file
20
playbooks/roles/env_develop/tasks/main.yml
Normal file
@@ -0,0 +1,20 @@
|
||||
---
|
||||
- name: "Load vars : {{ context }}"
|
||||
ansible.builtin.include_vars: "{{ item }}"
|
||||
tags:
|
||||
- install
|
||||
with_first_found:
|
||||
- files:
|
||||
- "{{ ansible_distribution }}-{{ ansible_distribution_release }}.yml"
|
||||
- "{{ ansible_distribution }}.yml"
|
||||
- "{{ ansible_os_family }}.yml"
|
||||
- default.yml
|
||||
paths: ../vars
|
||||
skip: true
|
||||
|
||||
- name: "Install dependencies"
|
||||
tags:
|
||||
- install
|
||||
when: env_develop_pkgs
|
||||
ansible.builtin.package:
|
||||
name: "{{ env_develop_pkgs }}"
|
||||
4
playbooks/roles/env_develop/vars/default.yml
Normal file
4
playbooks/roles/env_develop/vars/default.yml
Normal file
@@ -0,0 +1,4 @@
|
||||
---
|
||||
env_develop_pkgs:
|
||||
- rustup
|
||||
- python3
|
||||
Reference in New Issue
Block a user