lvdvdcss handbrake
This commit is contained in:
parent
502cc6f663
commit
de3ba99106
4 changed files with 53 additions and 6 deletions
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
devices.csv
|
||||||
|
devices.ini
|
21
create_inventory.yml
Normal file
21
create_inventory.yml
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
- hosts: localhost
|
||||||
|
gather_facts: false
|
||||||
|
become: false
|
||||||
|
vars:
|
||||||
|
csv_hosts: "{{ out.stdout_lines|map('split', ';')|groupby('0') }}"
|
||||||
|
ini_hosts: |
|
||||||
|
{% for group in csv_hosts %}
|
||||||
|
[{{ group.0 }}]
|
||||||
|
{% for host in group.1|map(attribute='1') %}
|
||||||
|
{{ host }}
|
||||||
|
{% endfor %}
|
||||||
|
|
||||||
|
{% endfor %}
|
||||||
|
tasks:
|
||||||
|
- shell: scp linuxadmin@server:/etc/linuxmuster/sophomorix/default-school/devices.csv .
|
||||||
|
- shell: cat devices.csv | grep -v ^# | grep -v ^$
|
||||||
|
register: out
|
||||||
|
- copy:
|
||||||
|
dest: devices.ini
|
||||||
|
content: "{{ ini_hosts }}"
|
||||||
|
|
|
@ -13,12 +13,6 @@
|
||||||
line: '\1No'
|
line: '\1No'
|
||||||
backrefs: yes
|
backrefs: yes
|
||||||
|
|
||||||
- name: Disable cups-browsed
|
|
||||||
ansible.builtin.systemd:
|
|
||||||
name: cups-browsed.service
|
|
||||||
state: stopped
|
|
||||||
enabled: no
|
|
||||||
|
|
||||||
- name: Configure pam_mount sysvol mount
|
- name: Configure pam_mount sysvol mount
|
||||||
blockinfile:
|
blockinfile:
|
||||||
dest: /etc/security/pam_mount.conf.xml
|
dest: /etc/security/pam_mount.conf.xml
|
||||||
|
|
|
@ -15,6 +15,24 @@
|
||||||
vtype: string
|
vtype: string
|
||||||
when: mirror_msfonts is defined and mirror_msfonts | length > 0
|
when: mirror_msfonts is defined and mirror_msfonts | length > 0
|
||||||
|
|
||||||
|
- name: Preseed libdvd-pkg
|
||||||
|
ansible.builtin.debconf:
|
||||||
|
name: libdvd-pkg
|
||||||
|
question: libdvd-pkg/build
|
||||||
|
value: "true"
|
||||||
|
vtype: boolean
|
||||||
|
ansible.builtin.debconf:
|
||||||
|
name: libdvd-pkg
|
||||||
|
question: libdvd-pkg/post-invoke_hook-install
|
||||||
|
value: "true"
|
||||||
|
vtype: boolean
|
||||||
|
ansible.builtin.debconf:
|
||||||
|
name: libdvd-pkg
|
||||||
|
question: libdvd-pkg/post-invoke_hook-remove
|
||||||
|
value: "false"
|
||||||
|
vtype: boolean
|
||||||
|
|
||||||
|
|
||||||
- name: Install desktop EDU packages and some more
|
- name: Install desktop EDU packages and some more
|
||||||
apt:
|
apt:
|
||||||
name:
|
name:
|
||||||
|
@ -30,11 +48,23 @@
|
||||||
- tmux
|
- tmux
|
||||||
- tree
|
- tree
|
||||||
- ttf-mscorefonts-installer
|
- ttf-mscorefonts-installer
|
||||||
|
- libdvd-pkg
|
||||||
|
- handbrake
|
||||||
|
- slic3r-prusa
|
||||||
autoremove: true
|
autoremove: true
|
||||||
state: latest
|
state: latest
|
||||||
environment:
|
environment:
|
||||||
http_proxy: ''
|
http_proxy: ''
|
||||||
|
|
||||||
|
- name: Build libdvdcss
|
||||||
|
ansible.builtin.shell:
|
||||||
|
cmd: dpkg-reconfigure -f noninteractive libdvd-pkg
|
||||||
|
|
||||||
|
|
||||||
|
- name: Remove cups-browsed
|
||||||
|
ansible.builtin.apt:
|
||||||
|
name: cups-browsed
|
||||||
|
state: absent
|
||||||
|
|
||||||
- name: Make qgm share directory
|
- name: Make qgm share directory
|
||||||
file:
|
file:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue