feat(development): added vagrant and virtualbox
This commit is contained in:
parent
44e391d2bc
commit
7e617bc471
1 changed files with 28 additions and 0 deletions
|
@ -4,6 +4,7 @@
|
|||
gather_subset:
|
||||
- distribution
|
||||
- distribution_release
|
||||
- kernel
|
||||
- virtualization_type
|
||||
|
||||
- name: '[setup] merge with custom vars'
|
||||
|
@ -53,6 +54,8 @@
|
|||
- libtool
|
||||
- libxss1 # draw.io
|
||||
- libxtst6 # draw.io
|
||||
- linux-headers-amd64
|
||||
- "linux-headers-{{ ansible_facts['kernel'] }}"
|
||||
- make
|
||||
- mariadb-client
|
||||
- pipx
|
||||
|
@ -62,6 +65,7 @@
|
|||
- python3-virtualenv
|
||||
- shellcheck
|
||||
- sqlite3
|
||||
- vagrant
|
||||
- valgrind
|
||||
- xdg-utils # draw.io
|
||||
state: present
|
||||
|
@ -214,6 +218,30 @@
|
|||
state: absent
|
||||
when: helm_stat.state is match("absent")
|
||||
|
||||
- name: '[vbox] install Virtualbox'
|
||||
become: true
|
||||
block:
|
||||
- name: '[vbox] add repository key'
|
||||
ansible.builtin.get_url:
|
||||
url: https://www.virtualbox.org/download/oracle_vbox_2016.asc
|
||||
dest: /etc/apt/trusted.gpg.d/virtualbox.asc
|
||||
mode: '0644'
|
||||
|
||||
- name: '[apt key] add repository'
|
||||
ansible.builtin.apt_repository:
|
||||
repo: "deb [arch=amd64 signed-by=/etc/apt/trusted.gpg.d/virtualbox.asc] https://download.virtualbox.org/virtualbox/{{ ansible_facts['distribution'] | lower }} {{ ansible_facts['distribution_release']}} contrib"
|
||||
state: present
|
||||
filename: virtualbox
|
||||
update_cache: true
|
||||
|
||||
- name: '[apt] install Virtualbox'
|
||||
ansible.builtin.apt:
|
||||
force_apt_get: true
|
||||
cache_valid_time: 3600
|
||||
pkg:
|
||||
- "virtualbox-{{ development.virtualbox_version }}"
|
||||
state: present
|
||||
|
||||
- name: '[custom] install Docker CE repository'
|
||||
become: true
|
||||
block:
|
||||
|
|
Loading…
Add table
Reference in a new issue