add dependency structure

This commit is contained in:
Pim Kunis 2022-12-20 17:20:36 +01:00
parent 7e7ce2bd40
commit 5d1b066d98
18 changed files with 44 additions and 35 deletions

View file

@ -13,7 +13,6 @@
- Cool neovim setup
- strawberry
- fuzzy find
- keepassxc config
- thunderbird config
- some kind of tag setup with: bootstrap, update etc
- sync music collection

2
roles/asdf/meta/main.yml Normal file
View file

@ -0,0 +1,2 @@
dependencies:
- role: common

View file

@ -5,9 +5,6 @@
- name: Install Erlang prerequisite APT packages
become: true
apt:
state: present
update_cache: true
cache_valid_time: 86400 # One day
pkg:
- build-essential
- autoconf
@ -33,9 +30,6 @@
- name: Install Elixir prerequisite APT packages
become: true
apt:
state: present
update_cache: true
cache_valid_time: 86400 # One day
name: unzip
- name: Install asdf Elixir plugin
shell:

View file

@ -0,0 +1,8 @@
- name: APT upgrade
become: true
apt:
autoremove: true
upgrade: yes
state: latest
update_cache: yes
cache_valid_time: 86400 # One day

View file

@ -0,0 +1,2 @@
dependencies:
- role: common

View file

@ -8,9 +8,12 @@
become: true
apt_repository:
repo: "deb [signed-by=/etc/apt/keyrings/neovim.gpg] https://ppa.launchpadcontent.net/neovim-ppa/stable/ubuntu {{ ansible_distribution_release }} main"
state: present
register: apt_repository
- name: Update APT cache
apt:
update_cache: true
when: apt_repository.changed
- name: Install Neovim
become: true
apt:
name: neovim
state: present

View file

@ -0,0 +1,2 @@
dependencies:
- role: common

View file

@ -7,11 +7,12 @@
become: true
apt_repository:
repo: "deb [arch=amd64 signed-by=/etc/apt/trusted.gpg.d/signal.asc] https://updates.signal.org/desktop/apt xenial main"
state: present
register: apt_repository
- name: Update APT cache
apt:
update_cache: true
when: apt_repository.changed
- name: Install Signal
become: true
apt:
state: latest
update_cache: yes
cache_valid_time: 86400 # One day
name: signal-desktop

View file

@ -0,0 +1,2 @@
dependencies:
- role: common

View file

@ -1,9 +1,6 @@
- name: Install Syncthing
become: true
apt:
state: latest
update_cache: true
cache_valid_time: 86400
name: syncthing
- name: Create Syncthing configuration directory
file:

View file

@ -0,0 +1,2 @@
dependencies:
- role: common

View file

@ -1,14 +1,6 @@
- name: Update repositories
become: true
apt:
upgrade: yes
state: latest
update_cache: yes
cache_valid_time: 86400 # One day
- name: Install APT packages
become: true
apt:
state: latest
pkg:
- git
- make

View file

@ -0,0 +1,2 @@
dependencies:
- role: common

View file

@ -7,11 +7,12 @@
become: true
apt_repository:
repo: "deb [arch=amd64 signed-by=/etc/apt/trusted.gpg.d/oracle_vbox_2016.asc] https://download.virtualbox.org/virtualbox/debian {{ ansible_distribution_release }} contrib"
state: present
register: apt_repository
- name: Update APT cache
apt:
update_cache: true
when: apt_repository.changed
- name: Install VirtualBox
become: true
apt:
state: latest
update_cache: yes
cache_valid_time: 86400 # One day
name: virtualbox-6.1

View file

@ -0,0 +1,2 @@
dependencies:
- role: common

View file

@ -7,13 +7,14 @@
become: true
apt_repository:
repo: "deb [signed-by=/etc/apt/trusted.gpg.d/vscodium-archive-keyring.asc ] https://download.vscodium.com/debs vscodium main"
state: present
register: apt_repository
- name: Update APT cache
apt:
update_cache: true
when: apt_repository.changed
- name: Install VSCodium
become: true
apt:
state: latest
update_cache: yes
cache_valid_time: 86400 # One day
name: codium
- name: Check VSCodium extensions
setup:

2
roles/zsh/meta/main.yml Normal file
View file

@ -0,0 +1,2 @@
dependencies:
- role: common

View file

@ -1,9 +1,6 @@
- name: Install zsh
become: true
apt:
state: latest
update_cache: yes
cache_valid_time: 86400 # One day
name: zsh
- name: Set default shell to zsh
become: true