Commit 1ad61482 authored by Carsten Feuls's avatar Carsten Feuls

Auf Ansibleschulung geändert

parent 72f84d94
......@@ -8,16 +8,20 @@
- name: install build-essential
apt:
name: build-essential
- name: install virtualbox
apt:
deb: https://download.virtualbox.org/virtualbox/6.0.10/virtualbox-6.0_6.0.10-132072~Ubuntu~bionic_amd64.deb
- name: get kernel version
command: uname -r
register: _kernel
- name: run vboxconfig
command: vboxconfig
args:
creates: /lib/modules/{{ _kernel.stdout }}/misc/vboxdrv.ko
- name: add user
user:
name: schulung
......@@ -27,12 +31,14 @@
append: yes
update_password: always
shell: /bin/bash
- name: install vagrant
apt:
deb: https://releases.hashicorp.com/vagrant/2.2.5/vagrant_2.2.5_x86_64.deb
- name: clone vagrant vm dir
git:
repo: https://gitlab.credativ.com/de/credativ-puppetschulung-vagrant.git
repo: https://gitlab.credativ.com/de/credativ-ansibleschulung-vagrant.git
dest: /home/schulung/schulungsumgebung
update: yes
become: yes
......@@ -41,35 +47,17 @@
- name: provision vagrant env
command: vagrant up
args:
chdir: /home/schulung/schulungsumgebung/vagrant/foreman_c1_c2
become: yes
become_user: schulung
- name: stop vagrant env
command: vagrant suspend
args:
chdir: /home/schulung/schulungsumgebung/vagrant/foreman_c1_c2
become: yes
become_user: schulung
- name: provision vagrant env
command: vagrant up
args:
chdir: /home/schulung/schulungsumgebung/vagrant/puppetserver_c1_c2
chdir: /home/schulung/schulungsumgebung/vagrant
become: yes
become_user: schulung
- name: stop vagrant env
command: vagrant suspend
args:
chdir: /home/schulung/schulungsumgebung/vagrant/puppetserver_c1_c2
chdir: /home/schulung/schulungsumgebung/vagrant
become: yes
become_user: schulung
- name: install vscode
apt:
deb: https://go.microsoft.com/fwlink/?LinkID=760868
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment