Add vars include to linroom, winroom
This commit is contained in:
parent
6f6643a0e5
commit
7bc7891837
11 changed files with 46 additions and 6 deletions
10
linsetup.yml
10
linsetup.yml
|
@ -3,8 +3,12 @@
|
|||
become: true
|
||||
vars:
|
||||
ansible_port: 1001
|
||||
ansible_become_pass: '{{ lookup("env", "ANSIBLE_PASSWORD") }}'
|
||||
ansible_password: '{{ lookup("env", "ANSIBLE_PASSWORD") }}'
|
||||
# ansible_become_pass: '{{ lookup("env", "ANSIBLE_PASSWORD") }}'
|
||||
# ansible_password: '{{ lookup("env", "ANSIBLE_PASSWORD") }}'
|
||||
ansible_connection: 'ssh'
|
||||
vars_files:
|
||||
- vars/credentials.yml
|
||||
- vars/software_keys.yml
|
||||
roles:
|
||||
- all_classes
|
||||
# - all_classes
|
||||
- fri_base
|
||||
|
|
|
@ -3,4 +3,4 @@
|
|||
# Windows, VMware Workstation 16.2.4 Player, wireshark
|
||||
dependencies:
|
||||
- role: wireshark
|
||||
- role: vmware_player
|
||||
- role: virtualbox
|
||||
|
|
|
@ -2,4 +2,4 @@
|
|||
# Nejc.Ilc@fri.uni-lj.si
|
||||
# Windows, VMware Workstation 16.2.4 Player
|
||||
dependencies:
|
||||
- role: vmware_player
|
||||
- role: twincat3
|
||||
|
|
4
roles/twincat3/meta/main.yml
Normal file
4
roles/twincat3/meta/main.yml
Normal file
|
@ -0,0 +1,4 @@
|
|||
# dependencies:
|
||||
# - role: fri_base
|
||||
dependencies:
|
||||
- role: visualstudio19
|
4
roles/twincat3/tasks/main.yml
Normal file
4
roles/twincat3/tasks/main.yml
Normal file
|
@ -0,0 +1,4 @@
|
|||
- import_tasks: main_win.yml
|
||||
when: ansible_connection == 'winrm'
|
||||
- import_tasks: main_lin.yml
|
||||
when: ansible_connection == 'ssh'
|
2
roles/twincat3/tasks/main_lin.yml
Normal file
2
roles/twincat3/tasks/main_lin.yml
Normal file
|
@ -0,0 +1,2 @@
|
|||
- name: Do not install TwinCat 3 on Linux
|
||||
debug: Do not install TwinCat 3 on Linux
|
5
roles/twincat3/tasks/main_win.yml
Normal file
5
roles/twincat3/tasks/main_win.yml
Normal file
|
@ -0,0 +1,5 @@
|
|||
- name: Install TwinCat 3
|
||||
win_chocolatey:
|
||||
name: visualstudio2019community
|
||||
|
||||
# Maybe sometime use https://learn.microsoft.com/en-us/visualstudio/install/use-command-line-parameters-to-install-visual-studio?view=vs-2022 with the costlier version
|
4
roles/visualstudio19/tasks/main.yml
Normal file
4
roles/visualstudio19/tasks/main.yml
Normal file
|
@ -0,0 +1,4 @@
|
|||
- import_tasks: main_win.yml
|
||||
when: ansible_connection == 'winrm'
|
||||
- import_tasks: main_lin.yml
|
||||
when: ansible_connection == 'ssh'
|
2
roles/visualstudio19/tasks/main_lin.yml
Normal file
2
roles/visualstudio19/tasks/main_lin.yml
Normal file
|
@ -0,0 +1,2 @@
|
|||
- name: Do not install VisualStudio on Linux
|
||||
debug: Do not install VisualStudio on Linux
|
5
roles/visualstudio19/tasks/main_win.yml
Normal file
5
roles/visualstudio19/tasks/main_win.yml
Normal file
|
@ -0,0 +1,5 @@
|
|||
- name: Install Microsoft Visual Studio 2019
|
||||
win_chocolatey:
|
||||
name: visualstudio2019community
|
||||
|
||||
# Maybe sometime use https://learn.microsoft.com/en-us/visualstudio/install/use-command-line-parameters-to-install-visual-studio?view=vs-2022 with the costlier version
|
12
winsetup.yml
12
winsetup.yml
|
@ -1,6 +1,7 @@
|
|||
- hosts: classroom
|
||||
become: true
|
||||
become_method: runas
|
||||
debugger: on_failed
|
||||
vars:
|
||||
ansible_connection: winrm
|
||||
ansible_winrm_transport: ntlm
|
||||
|
@ -8,6 +9,15 @@
|
|||
ansible_port: 5985
|
||||
logon_type: interactive
|
||||
installers: \\ucilnicesmb.fri1.uni-lj.si\ucilnice_d\install
|
||||
vars_files:
|
||||
- vars/credentials.yml
|
||||
- vars/software_keys.yml
|
||||
roles:
|
||||
- all_classes
|
||||
# - fri_base
|
||||
- matlab
|
||||
# - all_classes
|
||||
# - android_studio
|
||||
# - octave
|
||||
# - audacity
|
||||
# - vmware_player
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue