lvdvdcss handbrake
This commit is contained in:
parent
502cc6f663
commit
de3ba99106
4 changed files with 53 additions and 6 deletions
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 }}"
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue