diff --git a/README.md b/README.md index f19a321..fbb9694 100644 --- a/README.md +++ b/README.md @@ -96,3 +96,16 @@ Vagrant will bootstrap a VM, install Ansible und run the provisioning from withi ## Default user By default, a `vagrant` user will be provisioned (if not already available) and used throughout the provisioning. The default password is `vagrant`. + +## Tips + +### Run the provisioning from within the VM on demand + +Open a terminal and run: + +``` +ansible-playbook -i /vagrant/provisioning/inventory.sample /vagrant/provisioning/playbook.yml -c local +``` + +This will not try to connect to itself via SSH using the defined IP address but instead uses the local connection. + diff --git a/provisioning/roles/jotbe.dev-tools/tasks/main.yml b/provisioning/roles/jotbe.dev-tools/tasks/main.yml new file mode 100644 index 0000000..16a83f4 --- /dev/null +++ b/provisioning/roles/jotbe.dev-tools/tasks/main.yml @@ -0,0 +1,39 @@ +--- +# tasks file for jotbe.dev-tools + +- name: Add key for Sublime Text repo + apt_key: + url: https://download.sublimetext.com/sublimehq-pub.gpg + state: present + +- name: Add repository for Sublime Text + apt_repository: + repo: deb https://download.sublimetext.com/ apt/stable/ + state: present + +- name: Add key for VSCodium repo + apt_key: + url: https://gitlab.com/paulcarroty/vscodium-deb-rpm-repo/raw/master/pub.gpg + state: present + +- name: Add repository for VSCodium + apt_repository: + repo: deb https://gitlab.com/paulcarroty/vscodium-deb-rpm-repo/raw/repos/debs/ vscodium main + state: present + +- name: Update apt cache + apt: + update_cache: yes + cache_valid_time: 7200 + +- name: Install Sublime Text + apt: + pkg: + - sublime-text + register: sublime_text_installed + +- name: Install VSCodium + apt: + pkg: + - codium + register: vscodium_installed