diff --git a/roles/VP-63774/meta/main.yml b/roles/VP-63774/meta/main.yml index a9a0892..7f2ec2b 100644 --- a/roles/VP-63774/meta/main.yml +++ b/roles/VP-63774/meta/main.yml @@ -2,8 +2,3 @@ # matevz.pesek@fri.uni-lj.si dependencies: - c_development - - docker - - pwntools - - netcat - - ropr - - pwndbg diff --git a/roles/ad_joined/tasks/main_lin.yml b/roles/ad_joined/tasks/main_lin.yml index cfb19ef..a7f7e68 100644 --- a/roles/ad_joined/tasks/main_lin.yml +++ b/roles/ad_joined/tasks/main_lin.yml @@ -47,11 +47,6 @@ 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 @@ -65,13 +60,7 @@ command: pam-auth-update --disable mkhomedir become: true -- 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 +- name: Create kstart service copy: src: kstart.service dest: /etc/systemd/system/kstart.service @@ -81,19 +70,14 @@ 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: /remote_home + path: /mnt/cifs_home state: mounted - 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" + 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" - name: Restart sssd service: diff --git a/roles/netcat/tasks/main.yml b/roles/netcat/tasks/main.yml deleted file mode 100644 index 3077b7e..0000000 --- a/roles/netcat/tasks/main.yml +++ /dev/null @@ -1,4 +0,0 @@ -- import_tasks: main_win.yml - when: ansible_os_family == 'Windows' -- import_tasks: main_lin.yml - when: ansible_os_family == 'Debian' diff --git a/roles/netcat/tasks/main_lin.yml b/roles/netcat/tasks/main_lin.yml deleted file mode 100644 index 5a02200..0000000 --- a/roles/netcat/tasks/main_lin.yml +++ /dev/null @@ -1,4 +0,0 @@ -- name: Install netcat - apt: - name: netcat-openbsd - state: latest diff --git a/roles/netcat/tasks/main_win.yml b/roles/netcat/tasks/main_win.yml deleted file mode 100644 index 834f5bd..0000000 --- a/roles/netcat/tasks/main_win.yml +++ /dev/null @@ -1,4 +0,0 @@ -- name: Install netcat - win_chocolatey: - name: netcat - state: latest diff --git a/roles/pwndbg/meta/main.yml b/roles/pwndbg/meta/main.yml deleted file mode 100644 index 93ee277..0000000 --- a/roles/pwndbg/meta/main.yml +++ /dev/null @@ -1,2 +0,0 @@ -dependencies: - - c_development diff --git a/roles/pwndbg/tasks/main.yml b/roles/pwndbg/tasks/main.yml deleted file mode 100644 index 3077b7e..0000000 --- a/roles/pwndbg/tasks/main.yml +++ /dev/null @@ -1,4 +0,0 @@ -- import_tasks: main_win.yml - when: ansible_os_family == 'Windows' -- import_tasks: main_lin.yml - when: ansible_os_family == 'Debian' diff --git a/roles/pwndbg/tasks/main_lin.yml b/roles/pwndbg/tasks/main_lin.yml deleted file mode 100644 index ae97948..0000000 --- a/roles/pwndbg/tasks/main_lin.yml +++ /dev/null @@ -1,25 +0,0 @@ -- 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 diff --git a/roles/pwndbg/tasks/main_win.yml b/roles/pwndbg/tasks/main_win.yml deleted file mode 100644 index b530adb..0000000 --- a/roles/pwndbg/tasks/main_win.yml +++ /dev/null @@ -1,3 +0,0 @@ -- name: pwndbg uninstallable - debug: - msg: "This task is not installable on Windows. Skipping." diff --git a/roles/ropr/meta/main.yml b/roles/ropr/meta/main.yml deleted file mode 100644 index ad01fbb..0000000 --- a/roles/ropr/meta/main.yml +++ /dev/null @@ -1,2 +0,0 @@ -dependencies: - - rust diff --git a/roles/ropr/tasks/main.yml b/roles/ropr/tasks/main.yml deleted file mode 100644 index 3077b7e..0000000 --- a/roles/ropr/tasks/main.yml +++ /dev/null @@ -1,4 +0,0 @@ -- import_tasks: main_win.yml - when: ansible_os_family == 'Windows' -- import_tasks: main_lin.yml - when: ansible_os_family == 'Debian' diff --git a/roles/ropr/tasks/main_lin.yml b/roles/ropr/tasks/main_lin.yml deleted file mode 100644 index 7c42795..0000000 --- a/roles/ropr/tasks/main_lin.yml +++ /dev/null @@ -1,4 +0,0 @@ -- name: Install ropr - ansible.builtin.command: - cmd: cargo install ropr --root /usr/local - creates: /usr/local/bin/ropr diff --git a/roles/ropr/tasks/main_win.yml b/roles/ropr/tasks/main_win.yml deleted file mode 100644 index 2a379d0..0000000 --- a/roles/ropr/tasks/main_win.yml +++ /dev/null @@ -1,3 +0,0 @@ -- name: Uninstallable - debug: - msg: "This task is not installable on Windows. Skipping." diff --git a/roles/rust/tasks/main.yml b/roles/rust/tasks/main.yml deleted file mode 100644 index 3077b7e..0000000 --- a/roles/rust/tasks/main.yml +++ /dev/null @@ -1,4 +0,0 @@ -- import_tasks: main_win.yml - when: ansible_os_family == 'Windows' -- import_tasks: main_lin.yml - when: ansible_os_family == 'Debian' diff --git a/roles/rust/tasks/main_lin.yml b/roles/rust/tasks/main_lin.yml deleted file mode 100644 index b3eb406..0000000 --- a/roles/rust/tasks/main_lin.yml +++ /dev/null @@ -1,7 +0,0 @@ -- name: Install rust tools - apt: - name: - - rustc - - cargo - - rustfmt - state: latest diff --git a/roles/rust/tasks/main_win.yml b/roles/rust/tasks/main_win.yml deleted file mode 100644 index 3cbe0ef..0000000 --- a/roles/rust/tasks/main_win.yml +++ /dev/null @@ -1,4 +0,0 @@ -- name: Install rust - win_chocolatey: - name: rust - state: latest