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:
|
gather_subset:
|
||||||
- distribution
|
- distribution
|
||||||
- distribution_release
|
- distribution_release
|
||||||
|
- kernel
|
||||||
- virtualization_type
|
- virtualization_type
|
||||||
|
|
||||||
- name: '[setup] merge with custom vars'
|
- name: '[setup] merge with custom vars'
|
||||||
|
@ -53,6 +54,8 @@
|
||||||
- libtool
|
- libtool
|
||||||
- libxss1 # draw.io
|
- libxss1 # draw.io
|
||||||
- libxtst6 # draw.io
|
- libxtst6 # draw.io
|
||||||
|
- linux-headers-amd64
|
||||||
|
- "linux-headers-{{ ansible_facts['kernel'] }}"
|
||||||
- make
|
- make
|
||||||
- mariadb-client
|
- mariadb-client
|
||||||
- pipx
|
- pipx
|
||||||
|
@ -62,6 +65,7 @@
|
||||||
- python3-virtualenv
|
- python3-virtualenv
|
||||||
- shellcheck
|
- shellcheck
|
||||||
- sqlite3
|
- sqlite3
|
||||||
|
- vagrant
|
||||||
- valgrind
|
- valgrind
|
||||||
- xdg-utils # draw.io
|
- xdg-utils # draw.io
|
||||||
state: present
|
state: present
|
||||||
|
@ -214,6 +218,30 @@
|
||||||
state: absent
|
state: absent
|
||||||
when: helm_stat.state is match("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'
|
- name: '[custom] install Docker CE repository'
|
||||||
become: true
|
become: true
|
||||||
block:
|
block:
|
||||||
|
|
Loading…
Add table
Reference in a new issue