simplify script invocation

This commit is contained in:
Pim Kunis 2023-01-16 22:04:27 +01:00
parent 3eae0dff79
commit e41c34591f
15 changed files with 18 additions and 62 deletions

5
Makefile Normal file
View file

@ -0,0 +1,5 @@
all:
ansible-playbook playbooks/all.yml
%:
ansible-playbook --extra-vars "enable_roles=['$@']" playbooks/all.yml

View file

@ -4,3 +4,15 @@ full_name: "{{ first_name }} {{ last_name }}"
email: pim@kunis.nl email: pim@kunis.nl
vscodium_extensions: vscodium_extensions:
- shd101wyy.markdown-preview-enhanced - shd101wyy.markdown-preview-enhanced
enable_roles:
- bash
- alacritty
- wireguard
- asdf
- neovim
- signal
- virtualbox
- vscodium
- syncthing
- strawberry
- nicotine

View file

@ -1,4 +0,0 @@
- name: Install alacritty
hosts: self
roles:
- alacritty

View file

@ -2,21 +2,8 @@
hosts: self hosts: self
roles: roles:
- system - system
vars:
my_roles:
- bash
- alacritty
- wireguard
- asdf
- neovim
- signal
- virtualbox
- vscodium
- syncthing
- strawberry
- nicotine
tasks: tasks:
- include_tasks: "../library/rescue_role.yml" - include_tasks: "../library/rescue_role.yml"
loop: "{{ my_roles }}" loop: "{{ enable_roles }}"
loop_control: loop_control:
loop_var: item_my_role loop_var: item_my_role

View file

@ -1,4 +0,0 @@
- name: Install asdf
hosts: self
roles:
- asdf

View file

@ -1,4 +0,0 @@
- name: Install bash
hosts: self
roles:
- bash

View file

@ -1,4 +0,0 @@
- name: Install neovim
hosts: self
roles:
- neovim

View file

@ -1,4 +0,0 @@
- name: Install nicotine+
hosts: self
roles:
- nicotine

View file

@ -1,4 +0,0 @@
- name: Install Signal
hosts: self
roles:
- signal

View file

@ -1,4 +0,0 @@
- name: Install strawberry
hosts: self
roles:
- strawberry

View file

@ -1,4 +0,0 @@
- name: Install Syncthing
hosts: self
roles:
- syncthing

View file

@ -1,4 +0,0 @@
- name: Configure system
hosts: self
roles:
- system

View file

@ -1,4 +0,0 @@
- name: Install VirtualBox
hosts: self
roles:
- virtualbox

View file

@ -1,4 +0,0 @@
- name: Install VSCodium
hosts: self
roles:
- vscodium

View file

@ -1,4 +0,0 @@
- name: Install wireguard
hosts: self
roles:
- wireguard