Compare commits

...
Sign in to create a new pull request.

4 commits

Author SHA1 Message Date
Gašper Fele-Žorž
2115422933 Change CIFS homes mountpoint, options 2026-04-13 12:55:18 +02:00
6c371cdff2 Merge pull request 'Updated VP-63774' (#5) from andraz.juvan/classroom:varprog/initial-packages into master
Reviewed-on: rc/classroom#5
Reviewed-by: polz <Gasper.FeleZorz@fri.uni-lj.si>
2026-04-09 11:53:27 +00:00
aJuvan
7ec5141a3e
Tested and fixed VP-63774 2026-04-09 10:50:03 +02:00
aJuvan
ed09d8d86c
Added initial packages 2026-04-07 18:36:49 +02:00
16 changed files with 98 additions and 3 deletions

View file

@ -2,3 +2,8 @@
# matevz.pesek@fri.uni-lj.si
dependencies:
- c_development
- docker
- pwntools
- netcat
- ropr
- pwndbg

View file

@ -47,6 +47,11 @@
owner: root
mode: 0600
- name: Fix apparmor HOMEDIRS
template:
src: apparmor_cifs_homes
dest: "/etc/apparmor.d/tunables/home.d/cifs_homes"
#- name: Configure libpam-mount
# copy:
# src: pam_mount.conf.xml
@ -60,7 +65,13 @@
command: pam-auth-update --disable mkhomedir
become: true
- name: Create kstart service
- name: Use sssd for cifs idmap
file:
state: link
src: /usr/lib/x86_64-linux-gnu/cifs-utils/cifs_idmap_sss.so
path: /etc/alternatives/idmap-plugin
- name: Create service to get and renew machine kerberos tickets
copy:
src: kstart.service
dest: /etc/systemd/system/kstart.service
@ -70,14 +81,19 @@
src: kstart.service
dest: /etc/systemd/system/kstart.service
- name: Create profiles directory
file:
path: /home/profiles
state: directory
- name: Add mount - cifs_home
mount:
boot: true
fstype: cifs
src: "//ucilnicesmb.fri1.uni-lj.si/ucilnice_d"
path: /mnt/cifs_home
path: /remote_home
state: mounted
opts: "cruid=0,username={{ inventory_hostname }}-linux@FRI1.UNI-LJ.SI,sec=krb5i,nobrl,sfu,nostrictsync,cache=loose,mfsymlinks,dir_mode=0700,file_mode=0700,fsc,multiuser,x-systemd.requires=kstart.service"
opts: "cruid=0,username={{ inventory_hostname }}-linux@FRI1.UNI-LJ.SI,sec=krb5i,nobrl,sfu,cifsacl,setuids,fsc,multiuser,actimeo=65536,nostrictsync,cache=loose,resilienthandles,noatime,x-systemd.requires=kstart.service"
- name: Restart sssd
service:

View file

@ -0,0 +1,4 @@
- import_tasks: main_win.yml
when: ansible_os_family == 'Windows'
- import_tasks: main_lin.yml
when: ansible_os_family == 'Debian'

View file

@ -0,0 +1,4 @@
- name: Install netcat
apt:
name: netcat-openbsd
state: latest

View file

@ -0,0 +1,4 @@
- name: Install netcat
win_chocolatey:
name: netcat
state: latest

View file

@ -0,0 +1,2 @@
dependencies:
- c_development

View file

@ -0,0 +1,4 @@
- import_tasks: main_win.yml
when: ansible_os_family == 'Windows'
- import_tasks: main_lin.yml
when: ansible_os_family == 'Debian'

View file

@ -0,0 +1,25 @@
- name: Install dependencies
apt:
name:
- git
- name: Download pwndbg
command:
cmd: git clone https://github.com/pwndbg/pwndbg
creates: /opt/pwndbg
chdir: /opt
- name: Pull latest pwndbg
command:
cmd: git pull
chdir: /opt/pwndbg
- name: Install pwndbg
command:
cmd: ./setup.sh
chdir: /opt/pwndbg
- name: Update folder permissions (to allow lock files)
file:
mode: '0777'
path: /opt/pwndbg/.venv

View file

@ -0,0 +1,3 @@
- name: pwndbg uninstallable
debug:
msg: "This task is not installable on Windows. Skipping."

2
roles/ropr/meta/main.yml Normal file
View file

@ -0,0 +1,2 @@
dependencies:
- rust

View file

@ -0,0 +1,4 @@
- import_tasks: main_win.yml
when: ansible_os_family == 'Windows'
- import_tasks: main_lin.yml
when: ansible_os_family == 'Debian'

View file

@ -0,0 +1,4 @@
- name: Install ropr
ansible.builtin.command:
cmd: cargo install ropr --root /usr/local
creates: /usr/local/bin/ropr

View file

@ -0,0 +1,3 @@
- name: Uninstallable
debug:
msg: "This task is not installable on Windows. Skipping."

View file

@ -0,0 +1,4 @@
- import_tasks: main_win.yml
when: ansible_os_family == 'Windows'
- import_tasks: main_lin.yml
when: ansible_os_family == 'Debian'

View file

@ -0,0 +1,7 @@
- name: Install rust tools
apt:
name:
- rustc
- cargo
- rustfmt
state: latest

View file

@ -0,0 +1,4 @@
- name: Install rust
win_chocolatey:
name: rust
state: latest