Added a tip about how to run the provisioning from within the VM
This commit is contained in:
parent
5e3f7329d2
commit
781683a998
2 changed files with 52 additions and 0 deletions
13
README.md
13
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.
|
||||
|
||||
|
|
39
provisioning/roles/jotbe.dev-tools/tasks/main.yml
Normal file
39
provisioning/roles/jotbe.dev-tools/tasks/main.yml
Normal file
|
@ -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
|
Loading…
Add table
Reference in a new issue