add dependency structure
This commit is contained in:
parent
7e7ce2bd40
commit
5d1b066d98
18 changed files with 44 additions and 35 deletions
|
@ -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
2
roles/asdf/meta/main.yml
Normal file
|
@ -0,0 +1,2 @@
|
|||
dependencies:
|
||||
- role: common
|
|
@ -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:
|
||||
|
|
8
roles/common/tasks/main.yml
Normal file
8
roles/common/tasks/main.yml
Normal 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
|
2
roles/neovim/meta/main.yml
Normal file
2
roles/neovim/meta/main.yml
Normal file
|
@ -0,0 +1,2 @@
|
|||
dependencies:
|
||||
- role: common
|
|
@ -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
|
||||
|
|
2
roles/signal/meta/main.yml
Normal file
2
roles/signal/meta/main.yml
Normal file
|
@ -0,0 +1,2 @@
|
|||
dependencies:
|
||||
- role: common
|
|
@ -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
|
||||
|
|
2
roles/syncthing/meta/main.yml
Normal file
2
roles/syncthing/meta/main.yml
Normal file
|
@ -0,0 +1,2 @@
|
|||
dependencies:
|
||||
- role: common
|
|
@ -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:
|
||||
|
|
2
roles/system/meta/main.yml
Normal file
2
roles/system/meta/main.yml
Normal file
|
@ -0,0 +1,2 @@
|
|||
dependencies:
|
||||
- role: common
|
|
@ -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
|
||||
|
|
2
roles/virtualbox/meta/main.yml
Normal file
2
roles/virtualbox/meta/main.yml
Normal file
|
@ -0,0 +1,2 @@
|
|||
dependencies:
|
||||
- role: common
|
|
@ -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
|
||||
|
|
2
roles/vscodium/meta/main.yml
Normal file
2
roles/vscodium/meta/main.yml
Normal file
|
@ -0,0 +1,2 @@
|
|||
dependencies:
|
||||
- role: common
|
|
@ -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
2
roles/zsh/meta/main.yml
Normal file
|
@ -0,0 +1,2 @@
|
|||
dependencies:
|
||||
- role: common
|
|
@ -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
|
||||
|
|
Reference in a new issue