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 - Cool neovim setup
- strawberry - strawberry
- fuzzy find - fuzzy find
- keepassxc config
- thunderbird config - thunderbird config
- some kind of tag setup with: bootstrap, update etc - some kind of tag setup with: bootstrap, update etc
- sync music collection - 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 - name: Install Erlang prerequisite APT packages
become: true become: true
apt: apt:
state: present
update_cache: true
cache_valid_time: 86400 # One day
pkg: pkg:
- build-essential - build-essential
- autoconf - autoconf
@ -33,9 +30,6 @@
- name: Install Elixir prerequisite APT packages - name: Install Elixir prerequisite APT packages
become: true become: true
apt: apt:
state: present
update_cache: true
cache_valid_time: 86400 # One day
name: unzip name: unzip
- name: Install asdf Elixir plugin - name: Install asdf Elixir plugin
shell: 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 become: true
apt_repository: apt_repository:
repo: "deb [signed-by=/etc/apt/keyrings/neovim.gpg] https://ppa.launchpadcontent.net/neovim-ppa/stable/ubuntu {{ ansible_distribution_release }} main" 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 - name: Install Neovim
become: true become: true
apt: apt:
name: neovim name: neovim
state: present

View file

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

View file

@ -7,11 +7,12 @@
become: true become: true
apt_repository: apt_repository:
repo: "deb [arch=amd64 signed-by=/etc/apt/trusted.gpg.d/signal.asc] https://updates.signal.org/desktop/apt xenial main" 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 - name: Install Signal
become: true become: true
apt: apt:
state: latest
update_cache: yes
cache_valid_time: 86400 # One day
name: signal-desktop name: signal-desktop

View file

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

View file

@ -1,9 +1,6 @@
- name: Install Syncthing - name: Install Syncthing
become: true become: true
apt: apt:
state: latest
update_cache: true
cache_valid_time: 86400
name: syncthing name: syncthing
- name: Create Syncthing configuration directory - name: Create Syncthing configuration directory
file: 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 - name: Install APT packages
become: true become: true
apt: apt:
state: latest
pkg: pkg:
- git - git
- make - make

View file

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

View file

@ -7,11 +7,12 @@
become: true become: true
apt_repository: 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" 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 - name: Install VirtualBox
become: true become: true
apt: apt:
state: latest
update_cache: yes
cache_valid_time: 86400 # One day
name: virtualbox-6.1 name: virtualbox-6.1

View file

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

View file

@ -7,13 +7,14 @@
become: true become: true
apt_repository: apt_repository:
repo: "deb [signed-by=/etc/apt/trusted.gpg.d/vscodium-archive-keyring.asc ] https://download.vscodium.com/debs vscodium main" 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 - name: Install VSCodium
become: true become: true
apt: apt:
state: latest
update_cache: yes
cache_valid_time: 86400 # One day
name: codium name: codium
- name: Check VSCodium extensions - name: Check VSCodium extensions
setup: 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 - name: Install zsh
become: true become: true
apt: apt:
state: latest
update_cache: yes
cache_valid_time: 86400 # One day
name: zsh name: zsh
- name: Set default shell to zsh - name: Set default shell to zsh
become: true become: true