Add vars include to linroom, winroom

This commit is contained in:
Gašper Fele-Žorž 2024-08-24 14:56:10 +02:00
parent 6f6643a0e5
commit 7bc7891837
11 changed files with 46 additions and 6 deletions

View file

@ -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

View file

@ -3,4 +3,4 @@
# Windows, VMware Workstation 16.2.4 Player, wireshark
dependencies:
- role: wireshark
- role: vmware_player
- role: virtualbox

View file

@ -2,4 +2,4 @@
# Nejc.Ilc@fri.uni-lj.si
# Windows, VMware Workstation 16.2.4 Player
dependencies:
- role: vmware_player
- role: twincat3

View file

@ -0,0 +1,4 @@
# dependencies:
# - role: fri_base
dependencies:
- role: visualstudio19

View file

@ -0,0 +1,4 @@
- import_tasks: main_win.yml
when: ansible_connection == 'winrm'
- import_tasks: main_lin.yml
when: ansible_connection == 'ssh'

View file

@ -0,0 +1,2 @@
- name: Do not install TwinCat 3 on Linux
debug: Do not install TwinCat 3 on Linux

View 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

View file

@ -0,0 +1,4 @@
- import_tasks: main_win.yml
when: ansible_connection == 'winrm'
- import_tasks: main_lin.yml
when: ansible_connection == 'ssh'

View file

@ -0,0 +1,2 @@
- name: Do not install VisualStudio on Linux
debug: Do not install VisualStudio on Linux

View 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

View file

@ -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