diff --git a/SSH_Agent/main.py b/SSH_Agent/main.py index b99e371..c07ad26 100755 --- a/SSH_Agent/main.py +++ b/SSH_Agent/main.py @@ -1,21 +1,24 @@ -#! /usr/bin/env python3.12 -import subprocess, os +#! /usr/bin/env python3.13 +import os +import subprocess -def import_ssh_keys_to_agent(privat_key = str): + +def import_ssh_keys_to_agent(privat_key=str): try: - run_add_key = subprocess.run( - [ "/usr/bin/ssh-add","-q", privat_key], - shell=False, - text=False, - stdout=subprocess.PIPE, - stderr=subprocess.PIPE, - timeout=10,) + run_add_key = subprocess.run( + ["/usr/bin/ssh-add", "-q", privat_key], + shell=False, + text=False, + stdout=subprocess.PIPE, + stderr=subprocess.PIPE, + timeout=10, + ) except subprocess.TimeoutExpired: - print("\n","Timeout, No Import :", privat_key) + print("\n", "Timeout, No Import :", privat_key) return False - -# print(run_add_key) + + # print(run_add_key) if run_add_key.returncode == 0: return True else: @@ -25,23 +28,23 @@ def import_ssh_keys_to_agent(privat_key = str): def check_key_exist(ssh_pub=str): if not os.path.exists(ssh_pub): return False - run_check_key = subprocess.run( - [ "/usr/bin/ssh-add","-L"], - shell=False, - text=False, - stdout=subprocess.PIPE, - stderr=subprocess.PIPE,) + run_check_key = subprocess.run( + ["/usr/bin/ssh-add", "-L"], + shell=False, + text=False, + stdout=subprocess.PIPE, + stderr=subprocess.PIPE, + ) - list_agent_pubs = str(run_check_key.stdout,encoding="utf-8").splitlines() + list_agent_pubs = str(run_check_key.stdout, encoding="utf-8").splitlines() read_input_pub = open(ssh_pub) - READ_FILE_PUB = read_input_pub.read() - count=0 + READ_FILE_PUB = read_input_pub.read() + count = 0 for pub in list_agent_pubs: - count = count +1 + count = count + 1 if READ_FILE_PUB == pub + "\n": return True return False - if __name__ == "__main__": diff --git a/create_ps/create_ps.py b/create_ps/create_ps.py new file mode 100755 index 0000000..816d1d5 --- /dev/null +++ b/create_ps/create_ps.py @@ -0,0 +1,32 @@ +#! /usr/bin/env python +import string +import secrets + + +def create_password(long=int(10), sonder="!#$%&()*+-/:;<=>?@[]_{|}"): + print("Sonderzeichen:", sonder) + alle = string.ascii_letters + string.digits + sonder + + while True: + tx = "" + anz = [0, 0, 0, 0] + for i in range(long): + zeichen = secrets.choice(alle) + tx += zeichen + if zeichen in string.ascii_lowercase: + anz[0] += 1 + elif zeichen in string.ascii_uppercase: + anz[1] += 1 + elif zeichen in string.digits: + anz[2] += 1 + else: + anz[3] += 1 + # print("Anzahl:", anz) + if 0 not in anz: + break + + return tx + + +if __name__ == "__main__": + print(create_password(long=20)) diff --git a/movie-db/.ipynb_checkpoints/README-checkpoint.md b/movie-db/.ipynb_checkpoints/README-checkpoint.md new file mode 100644 index 0000000..6efa3b9 --- /dev/null +++ b/movie-db/.ipynb_checkpoints/README-checkpoint.md @@ -0,0 +1,7 @@ +Folgende Punkte + +- erstellen eine SQlite DB +- Die DB soll folgende Tabellen haben Genre, MyList, +- Die Anzeige soll über Flask angezeigt werden + +Weitere Schritte folgen !!! diff --git a/movie-db/.ipynb_checkpoints/moviedb_func-checkpoint.py b/movie-db/.ipynb_checkpoints/moviedb_func-checkpoint.py new file mode 100644 index 0000000..a82ed89 --- /dev/null +++ b/movie-db/.ipynb_checkpoints/moviedb_func-checkpoint.py @@ -0,0 +1,69 @@ +import DBcm + + +def create_movie_database(db_name="movie_db.db"): + + create_my_list = """ + create table if not exists movie_list ( + id integer not null primary key autoincrement, + titel varchar(64) not null, + genre_id integer not null, + regie_id integer not null + ) + """ + + create_genre = """ + create table if not exists genre ( + id integer not null primary key autoincrement, + name varchar(64) not null + ) + """ + + create_regie = """ + create table if not exists regie ( + id integer not null primary key autoincrement, + surname varchar(64) not null, + lastname varchr(64) not null + ) + """ + + create_medium = """ + create table if not exists medium ( + id integer not null primary key autoincrement, + medium varchar(64) not null + ) + """ + + with DBcm.UseDatabase(db_name) as db: + db.execute(create_my_list) + db.execute(create_genre) + db.execute(create_regie) + db.execute(create_medium) + + +def all_genres(db_name="movie_db.db"): + ALL_GENRE = "SELECT * from genre" + with DBcm.UseDatabase(db_name) as db: + db.execute(ALL_GENRE) + all_genre = [i[1] for i in db.fetchall()] + return all_genre + + +def search_genre_id(db_name="movie_db.db", genre_name=str): + GENRE_QUERY = """ + select id from genre + where name = ? + """ + try: + with DBcm.UseDatabase(db_name) as db: + db.execute(GENRE_QUERY, (genre_name,)) + genre_id = db.fetchone()[0] + return int(genre_id) + except: + return int(0) + + +if __name__ == "__main__": + create_movie_database() + print(all_genres()) + print(search_genre_id(genre_name="war")) diff --git a/movie-db/.ipynb_checkpoints/test_jup-checkpoint.ipynb b/movie-db/.ipynb_checkpoints/test_jup-checkpoint.ipynb new file mode 100644 index 0000000..4dca615 --- /dev/null +++ b/movie-db/.ipynb_checkpoints/test_jup-checkpoint.ipynb @@ -0,0 +1,534 @@ +{ + "cells": [ + { + "cell_type": "code", + "execution_count": 1, + "id": "5263a987-da36-46d7-a2e7-d0658cda09c1", + "metadata": {}, + "outputs": [], + "source": [ + "import DBcm" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "id": "3f6b0763-4106-4bfa-9aef-7afbd180c6d4", + "metadata": {}, + "outputs": [], + "source": [ + "db_name = \"movie_db.db\"\n", + "\n", + "create_my_list = \"\"\"\n", + " create table if not exists movie_list (\n", + " id integer not null primary key autoincrement,\n", + " titel varchar(64) not null,\n", + " genre_id integer not null,\n", + " regie_id integer not null\n", + " \n", + " )\n", + "\n", + "\"\"\"\n", + "\n", + "create_genre = \"\"\"\n", + " create table if not exists genre (\n", + " id integer not null primary key autoincrement,\n", + " name varchar(64) not null\n", + " )\n", + "\"\"\"\n", + "\n", + "create_regie = \"\"\"\n", + " create table if not exists regie (\n", + " id integer not null primary key autoincrement,\n", + " surname varchar(64) not null,\n", + " lastname varchr(64) not null\n", + " )\n", + "\"\"\"\n", + "\n", + "\n", + "with DBcm.UseDatabase(db_name) as db: \n", + " db.execute(create_my_list)\n", + " db.execute(create_genre)\n", + " db.execute(create_regie)\n", + " " + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "id": "376ef812-97b5-45ba-8ef1-eb8d7829494a", + "metadata": {}, + "outputs": [], + "source": [ + "# ADDed Genre values\n", + "\n", + "ADD_GENRE_VALUE = \"\"\"\n", + " INSERT INTO genre(name)\n", + " SELECT ?\n", + " WHERE NOT EXISTS (SELECT 1 FROM genre WHERE name = ?);\n", + " \"\"\"\n", + "\n", + "with open(\"genre_list\", \"r\") as fs: \n", + " for genre_value in fs.readlines():\n", + " with DBcm.UseDatabase(db_name) as db:\n", + " db.execute(ADD_GENRE_VALUE, (genre_value.strip(), genre_value.strip()))\n", + " " + ] + }, + { + "cell_type": "code", + "execution_count": 27, + "id": "63b16a41-88bf-4832-a26c-09180832f597", + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "['action', 'adventure', 'animation', 'biography', 'comedy', 'crime', 'cult movie', 'disney', 'documentary', 'drama', 'erotic', 'family', 'fantasy', 'film-noir', 'gangster', 'gay and lesbian', 'history', 'horror', 'military', 'music', 'musical', 'mystery', 'nature', 'neo-noir', 'period', 'pixar', 'road movie', 'romance', 'sci-fi', 'short', 'spy', 'super hero', 'thriller', 'visually stunning', 'war', 'western']\n" + ] + } + ], + "source": [ + "def all_genres():\n", + " ALL_GENRE = \"\"\"\n", + " SELECT * from genre \n", + " \"\"\" \n", + " with DBcm.UseDatabase(db_name) as db:\n", + " db.execute(ALL_GENRE)\n", + " all_genre = [i[1] for i in db.fetchall()]\n", + " \n", + " return all_genre\n", + "\n", + "print(all_genres())\n", + " " + ] + }, + { + "cell_type": "code", + "execution_count": 36, + "id": "89b20b5f-34aa-4490-a4c0-c186c9fa30bd", + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "1\n", + "36\n" + ] + } + ], + "source": [ + "def search_genre_id(genre_name):\n", + " GENRE_QUERY = \"\"\"\n", + " select id from genre\n", + " where name = ?\n", + " \"\"\"\n", + " try:\n", + " with DBcm.UseDatabase(db_name) as db:\n", + " db.execute(GENRE_QUERY,(genre_name,))\n", + " genre_id = db.fetchone()[0]\n", + " return int(genre_id)\n", + " except:\n", + " return int(0)\n", + "\n", + "\n", + "def search_medium_id(genre_name):\n", + " GENRE_QUERY = \"\"\"\n", + " select id from genre\n", + " where medium = ?\n", + " \"\"\"\n", + " try:\n", + " with DBcm.UseDatabase(db_name) as db:\n", + " db.execute(GENRE_QUERY,(genre_name,))\n", + " genre_id = db.fetchone()[0]\n", + " return int(genre_id)\n", + " except:\n", + " return int(0)\n", + "\n", + "print(search_genre_id(genre_name=\"action\"))\n", + "print(search_genre_id(genre_name=\"western\"))" + ] + }, + { + "cell_type": "code", + "execution_count": 18, + "id": "c70d91a5-7855-465d-a4a6-daebc065ee37", + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "0-John-Smith\n", + "1-James-Johnson\n", + "2-William-Williams\n", + "3-Michael-Brown\n", + "4-David-Davis\n", + "5-Richard-Miller\n", + "6-Joseph-Wilson\n", + "7-Charles-Moore\n", + "8-Thomas-Taylor\n", + "9-Daniel-Anderson\n", + "10-Paul-Thomas\n", + "11-Mark-Jackson\n", + "12-Donna-White\n", + "13-Michelle-Harris\n", + "14-Laura-Martin\n", + "15-Sara-Thompson\n", + "16-Ana-Garcia\n", + "17-Carlos-Rodriguez\n", + "18-Maria-Martinez\n", + "19-Jose-Hernandez\n", + "20-Luis-Lopez\n", + "21-Rosa-Gonzalez\n", + "22-Pedro-Perez\n", + "23-Miguel-Sanchez\n", + "24-Juan-Ramirez\n", + "25-Ana-Flores\n", + "26-Isabella-Cruz\n", + "27-Victor-Rivera\n", + "28-Kevin-Lee\n", + "29-Brian-Walker\n", + "30-Emily-Hall\n", + "31-Ryan-Allen\n", + "32-Aaron-Young\n", + "33-Jeffrey-King\n", + "34-Joshua-Wright\n", + "35-Brandon-Scott\n", + "36-Frank-Turner\n", + "37-Gregory-Carter\n", + "38-Samuel-Phillips\n", + "39-Chris-Evans\n", + "40-Anthony-Collins\n", + "41-Eric-Stewart\n", + "42-Frank-Snyder\n", + "43-Thomas-Baker\n", + "44-Jeremy-Nelson\n", + "45-Steven-Roberts\n", + "46-Edward-Campbell\n", + "47-Ryan-Miller\n", + "48-Jacob-Davis\n", + "49-David-Garcia\n", + "50-Sophia-Rodriguez\n", + "51-Emma-Martinez\n", + "52-Noah-Hernandez\n", + "53-Ava-Lopez\n", + "54-Ethan-Gonzalez\n", + "55-Mia-Perez\n", + "56-William-Sanchez\n", + "57-James-Ramirez\n", + "58-Olivia-Flores\n", + "59-Lucas-Cruz\n", + "60-Isabella-Rivera\n", + "61-David-Lee\n", + "62-Sophie-Walker\n", + "63-Matthew-Hall\n", + "64-Emma-Allen\n", + "65-Ryan-Young\n", + "66-Ava-King\n", + "67-Ethan-Wright\n", + "68-Mia-Scott\n", + "69-William-Turner\n", + "70-James-Carter\n", + "71-Olivia-Phillips\n", + "72-Lucas-Evans\n", + "73-Sophie-Collins\n", + "74-Noah-Stewart\n", + "75-Ava-Snyder\n", + "76-Ethan-Baker\n", + "77-Mia-Nelson\n", + "78-Noah-Roberts\n", + "79-Emma-Campbell\n", + "80-William-Miller\n", + "81-James-Davis\n", + "82-Olivia-Garcia\n", + "83-Lucas-Rodriguez\n", + "84-Sophie-Martinez\n", + "85-Noah-Hernandez\n", + "86-Ava-Lopez\n", + "87-Ethan-Gonzalez\n", + "88-Mia-Perez\n", + "89-William-Sanchez\n", + "90-James-Ramirez\n", + "91-Olivia-Flores\n", + "92-Lucas-Cruz\n", + "93-Isabella-Rivera\n", + "94-David-Lee\n", + "95-Sophie-Walker\n", + "96-Matthew-Hall\n", + "97-Emma-Allen\n", + "98-Ryan-Young\n", + "99-Ava-King\n", + "100-Ethan-Wright\n", + "101-Mia-Scott\n", + "102-William-Turner\n", + "103-James-Carter\n", + "104-Olivia-Phillips\n", + "105-Lucas-Evans\n", + "106-Sophie-Collins\n", + "107-Noah-Stewart\n", + "108-Ava-Snyder\n", + "109-Ethan-Baker\n", + "110-Mia-Nelson\n", + "111-Noah-Roberts\n", + "112-Emma-Campbell\n", + "113-William-Miller\n", + "114-James-Davis\n", + "115-Olivia-Garcia\n", + "116-Lucas-Rodriguez\n", + "117-Sophie-Martinez\n", + "118-Noah-Hernandez\n", + "119-Ava-Lopez\n", + "120-Ethan-Gonzalez\n", + "121-Mia-Perez\n", + "122-William-Sanchez\n", + "123-James-Ramirez\n", + "124-Olivia-Flores\n", + "125-Lucas-Cruz\n", + "126-Isabella-Rivera\n", + "127-David-Lee\n", + "128-Sophie-Walker\n", + "129-Matthew-Hall\n", + "130-Emma-Allen\n", + "131-Ryan-Young\n", + "132-Ava-King\n", + "133-Ethan-Wright\n", + "134-Mia-Scott\n", + "135-William-Turner\n", + "136-James-Carter\n", + "137-Olivia-Phillips\n", + "138-Lucas-Evans\n", + "139-Sophie-Collins\n", + "140-Noah-Stewart\n", + "141-Ava-Snyder\n", + "142-Ethan-Baker\n", + "143-Mia-Nelson\n", + "144-Noah-Roberts\n", + "145-Emma-Campbell\n", + "146-William-Miller\n", + "147-James-Davis\n", + "148-Olivia-Garcia\n", + "149-Lucas-Rodriguez\n", + "150-Sophie-Martinez\n", + "151-Noah-Hernandez\n", + "152-Ava-Lopez\n", + "153-Ethan-Gonzalez\n", + "154-Mia-Perez\n", + "155-William-Sanchez\n", + "156-James-Ramirez\n", + "157-Olivia-Flores\n", + "158-Lucas-Cruz\n", + "159-Isabella-Rivera\n", + "160-David-Lee\n", + "161-Sophie-Walker\n", + "162-Matthew-Hall\n", + "163-Emma-Allen\n", + "164-Ryan-Young\n", + "165-Ava-King\n", + "166-Ethan-Wright\n", + "167-Mia-Scott\n", + "168-William-Turner\n", + "169-James-Carter\n", + "170-Olivia-Phillips\n", + "171-Lucas-Evans\n", + "172-Sophie-Collins\n", + "173-Noah-Stewart\n", + "174-Ava-Snyder\n", + "175-Ethan-Baker\n", + "176-Mia-Nelson\n", + "177-Noah-Roberts\n", + "178-Emma-Campbell\n", + "179-William-Miller\n", + "180-James-Davis\n", + "181-Olivia-Garcia\n", + "182-Lucas-Rodriguez\n", + "183-Sophie-Martinez\n", + "184-Noah-Hernandez\n", + "185-Ava-Lopez\n", + "186-Ethan-Gonzalez\n", + "187-Mia-Perez\n", + "188-William-Sanchez\n", + "189-James-Ramirez\n", + "190-Olivia-Flores\n", + "191-Lucas-Cruz\n", + "192-Isabella-Rivera\n", + "193-David-Lee\n", + "194-Sophie-Walker\n", + "195-Matthew-Hall\n", + "196-Emma-Allen\n", + "197-Ryan-Young\n", + "198-Ava-King\n", + "199-Ethan-Wright\n", + "200-Mia-Scott\n", + "201-William-Turner\n", + "202-James-Carter\n", + "203-Olivia-Phillips\n", + "204-Lucas-Evans\n", + "205-Sophie-Collins\n", + "206-Noah-Stewart\n", + "207-Ava-Snyder\n", + "208-Ethan-Baker\n", + "209-Mia-Nelson\n", + "210-Noah-Roberts\n", + "211-Emma-Campbell\n", + "212-William-Miller\n", + "213-James-Davis\n", + "214-Olivia-Garcia\n", + "215-Lucas-Rodriguez\n", + "216-Sophie-Martinez\n", + "217-Noah-Hernandez\n", + "218-Ava-Lopez\n", + "219-Ethan-Gonzalez\n", + "220-Mia-Perez\n", + "221-William-Sanchez\n", + "222-James-Ramirez\n", + "223-Olivia-Flores\n", + "224-Lucas-Cruz\n", + "225-Isabella-Rivera\n", + "226-David-Lee\n", + "227-Sophie-Walker\n", + "228-Matthew-Hall\n", + "229-Emma-Allen\n", + "230-Ryan-Young\n", + "231-Ava-King\n", + "232-Ethan-Wright\n", + "233-Mia-Scott\n", + "234-William-Turner\n", + "235-James-Carter\n", + "236-Olivia-Phillips\n", + "237-Lucas-Evans\n", + "238-Sophie-Collins\n", + "239-Noah-Stewart\n", + "240-Ava-Snyder\n", + "241-Ethan-Baker\n", + "242-Mia-Nelson\n", + "243-Noah-Roberts\n", + "244-Emma-Campbell\n", + "245-William-Miller\n", + "246-James-Davis\n", + "247-Olivia-Garcia\n", + "248-Lucas-Rodriguez\n", + "249-Sophie-Martinez\n", + "250-Noah-Hernandez\n", + "251-Ava-Lopez\n", + "252-Ethan-Gonzalez\n", + "253-Mia-Perez\n", + "254-William-Sanchez\n", + "255-James-Ramirez\n", + "256-Olivia-Flores\n", + "257-Lucas-Cruz\n", + "258-Isabella-Rivera\n", + "259-David-Lee\n", + "260-Sophie-Walker\n", + "261-Matthew-Hall\n", + "262-Emma-Allen\n", + "263-Ryan-Young\n", + "264-Ava-King\n", + "265-Ethan-Wright\n", + "266-Mia-Scott\n", + "267-William-Turner\n", + "268-James-Carter\n", + "269-Olivia-Phillips\n", + "270-Lucas-Evans\n", + "271-Sophie-Collins\n", + "272-Noah-Stewart\n", + "273-Ava-Snyder\n", + "274-Ethan-Baker\n", + "275-Mia-Nelson\n", + "276-Noah-Roberts\n", + "277-Emma-Campbell\n", + "278-William-Miller\n", + "279-James-Davis\n", + "280-Olivia-Garcia\n", + "281-Lucas-Rodriguez\n", + "282-Sophie-Martinez\n", + "283-Noah-Hernandez\n", + "284-Ava-Lopez\n", + "285-Ethan-Gonzalez\n", + "286-Mia-Perez\n", + "287-William-Sanchez\n", + "288-James-Ramirez\n", + "289-Olivia-Flores\n", + "290-Lucas-Cruz\n", + "291-Isabella-Rivera\n", + "292-David-Lee\n", + "293-Sophie-Walker\n", + "294-Matthew-Hall\n", + "295-Emma-Allen\n", + "296-Ryan-Young\n", + "297-Ava-King\n", + "298-Ethan-Wright\n", + "299-Mia-Scott\n", + "300-William-Turner\n", + "301-James-Carter\n", + "302-Olivia-Phillips\n", + "303-Lucas-Evans\n", + "304-Sophie-Collins\n", + "305-Noah-Stewart\n", + "306-Ava-Snyder\n", + "307-Ethan-Baker\n", + "308-Mia-Nelson\n", + "309-Noah-Roberts\n", + "310-Emma-Campbell\n", + "311-William-Miller\n", + "312-James-Davis\n", + "313-Olivia-Garcia\n", + "314-Lucas-Rodriguez\n", + "315-Sophie-Martinez\n", + "316-Noah-Hernandez\n", + "317-Ava-Lopez\n", + "318-Ethan-Gonzalez\n", + "319-Mia-Perez\n", + "320-William-Sanchez\n", + "321-James-Ramirez\n", + "322-Olivia-Flores\n", + "323-Lucas-Cruz\n", + "324-Isabella-Rivera\n", + "325-David-Lee\n", + "326-Sophie-Walker\n" + ] + } + ], + "source": [ + "import pandas as pd\n", + "usecols = [\"Name\", \"Vorname\"]\n", + "air = pd.read_csv(\"regie_name.csv\", usecols=usecols)\n", + "\n", + "for count, (i, b) in enumerate(zip(air[\"Name\"], air[\"Vorname\"])):\n", + " print(count, b, i, sep=\"-\")\n", + "\n" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "ee4b5dee-6b41-49eb-8d75-9db50d20fdef", + "metadata": {}, + "outputs": [], + "source": [] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 3 (ipykernel)", + "language": "python", + "name": "python3" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 3 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython3", + "version": "3.13.3" + } + }, + "nbformat": 4, + "nbformat_minor": 5 +} diff --git a/movie-db/README.md b/movie-db/README.md new file mode 100644 index 0000000..6efa3b9 --- /dev/null +++ b/movie-db/README.md @@ -0,0 +1,7 @@ +Folgende Punkte + +- erstellen eine SQlite DB +- Die DB soll folgende Tabellen haben Genre, MyList, +- Die Anzeige soll über Flask angezeigt werden + +Weitere Schritte folgen !!! diff --git a/movie-db/__pycache__/moviedb_func.cpython-313.pyc b/movie-db/__pycache__/moviedb_func.cpython-313.pyc new file mode 100644 index 0000000..f8aea6a Binary files /dev/null and b/movie-db/__pycache__/moviedb_func.cpython-313.pyc differ diff --git a/movie-db/genre_list b/movie-db/genre_list new file mode 100644 index 0000000..c8711eb --- /dev/null +++ b/movie-db/genre_list @@ -0,0 +1,36 @@ +action +adventure +animation +biography +comedy +crime +cult movie +disney +documentary +drama +erotic +family +fantasy +film-noir +gangster +gay and lesbian +history +horror +military +music +musical +mystery +nature +neo-noir +period +pixar +road movie +romance +sci-fi +short +spy +super hero +thriller +visually stunning +war +western diff --git a/movie-db/main.py b/movie-db/main.py new file mode 100644 index 0000000..f361dda --- /dev/null +++ b/movie-db/main.py @@ -0,0 +1,58 @@ +import flask + +import moviedb_func + +app = flask.Flask(__name__) +app.secret_key = "Start1234!" + + +@app.get("/add_movie") +def add_movie(): + return flask.render_template( + "add_movie.html", + sitename="Meine Movieliste !!!", + url="output", + select_movie="add_movie", + select_genre="add_genre", + select_medium="add_medium", + select_regie="add_regie", + data=moviedb_func.all_select(), + data_medium=moviedb_func.all_select(what_select="medium"), + data_regie=moviedb_func.all_select(what_select="regie"), + ) + + +@app.post("/output") +def csv_output(): + select_add_movie = flask.request.form["add_movie"] + select_genre = flask.request.form["add_genre"] + select_genre_id = moviedb_func.search_id( + search_name=flask.request.form["add_genre"]) + + select_medium = flask.request.form["add_medium"] + select_medium_id = moviedb_func.search_id( + search_name=flask.request.form["add_medium"], select_from="medium", select_where="medium") + select_regie = flask.request.form["add_regie"] + select_regie_id = moviedb_func.search_id( + search_name=flask.request.form["add_regie"], select_from="regie", select_where="regie") + + moviedb_func.add_movie_to_list(movie_name=select_add_movie, regie_id=select_regie_id, + medium_id=select_medium_id, genre_id=select_genre_id) + + return flask.render_template( + "output.html", + sitename="Meine Movieliste !!!", + add_movie=select_add_movie, + add_genre=select_genre, + add_medium=select_medium, + add_regie=select_regie, + add_genre_id=select_genre_id, + add_medium_id=select_medium_id, + add_regie_id=select_regie_id + # data=modify_csv.read_csv_file(), + # sum_all=modify_csv.sum_all(), + ) + + +if __name__ == "__main__": + app.run(port=5082, host="0.0.0.0", debug=True) diff --git a/movie-db/movie_db.db b/movie-db/movie_db.db new file mode 100644 index 0000000..b3e9245 Binary files /dev/null and b/movie-db/movie_db.db differ diff --git a/movie-db/moviedb_func.py b/movie-db/moviedb_func.py new file mode 100644 index 0000000..3fa4921 --- /dev/null +++ b/movie-db/moviedb_func.py @@ -0,0 +1,174 @@ +import DBcm +from mariadb import ProgrammingError +import pandas as pd +import sqlite3 + + +def create_movie_database(db_name="movie_db.db"): + + create_my_list = """ + create table if not exists movie_list ( + id integer not null primary key autoincrement, + titel varchar(64) not null, + genre_id integer not null, + regie_id integer not null, + medium_id integer not null + ) + """ + + create_genre = """ + create table if not exists genre ( + id integer not null primary key autoincrement, + name varchar(64) not null + ) + """ + + create_regie = """ + create table if not exists regie ( + id integer not null primary key autoincrement, + surname varchar(64) not null, + lastname varchar(64) not null + ) + """ + + create_medium = """ + create table if not exists medium ( + id integer not null primary key autoincrement, + medium varchar(64) not null + ) + """ + + ADD_GENRE_VALUE = """ + INSERT INTO genre(name) + SELECT ? + WHERE NOT EXISTS (SELECT 1 FROM genre WHERE name = ?); + """ + + ADD_MEDIUM_VALUE = """ + INSERT INTO medium(medium) + SELECT ? + WHERE NOT EXISTS (SELECT 1 FROM medium WHERE medium = ?); + """ + + ADD_REGIE_VALUE = """ + INSERT INTO regie (surname, lastname ) + SELECT ?, ? + WHERE NOT EXISTS + (SELECT surname, lastname + FROM regie + WHERE surname = ? AND lastname = ?); + """ + + with DBcm.UseDatabase(db_name) as db: + db.execute(create_my_list) + db.execute(create_genre) + db.execute(create_regie) + db.execute(create_medium) + + with open("genre_list", "r") as fs: + for genre_value in fs.readlines(): + with DBcm.UseDatabase(db_name) as db: + db.execute(ADD_GENRE_VALUE, + (genre_value.strip(), genre_value.strip())) + + usecols = ["Name", "Vorname"] + air = pd.read_csv("regie_name.csv", usecols=usecols) + for count, (reg_name, reg_vorname) in enumerate(zip(air["Name"], air["Vorname"])): + # print(count, reg_vorname, reg_name) + with DBcm.UseDatabase(db_name) as db: + db.execute(ADD_REGIE_VALUE, (reg_vorname, + reg_name, reg_vorname, reg_name)) + + LISTE_MEDIUM = ["BlueRay", "DVD", "Datei", + "BlueRay Steelbook", "DVD Steelbook"] + with DBcm.UseDatabase(db_name) as db: + for MEDIUM in LISTE_MEDIUM: + db.execute(ADD_MEDIUM_VALUE, (MEDIUM, MEDIUM)) + + +def all_select(db_name="movie_db.db", what_select="genre"): + ALL_SELECT = "SELECT * from " + what_select + if what_select == "genre" or what_select == "medium": + with DBcm.UseDatabase(db_name) as db: + db.execute(ALL_SELECT) + all_value = [i[1] for i in db.fetchall()] + return all_value + elif what_select == 'regie': + all_value = [] + with DBcm.UseDatabase(db_name) as db: + db.execute(ALL_SELECT) + for i in db.fetchall(): + all_value.append(i[1] + " " + i[2]) + return all_value + else: + return "Wrong Value !!!" + + +def search_id(db_name="movie_db.db", search_name=str, select_from="genre", select_where="name"): + if select_from == "regie": + split_search = search_name.split(" ") + GENRE_QUERY = f"""select id from {select_from} + where surname = ? and lastname = ?""" + with DBcm.UseDatabase(db_name) as db: + db.execute(GENRE_QUERY, (split_search[0], split_search[1],)) + regie_id = db.fetchone()[0] + return int(regie_id) + else: + try: + GENRE_QUERY = f"""select id from {select_from} + where {select_where} = ?""" + with DBcm.UseDatabase(db_name) as db: + db.execute(GENRE_QUERY, (search_name,)) + genre_id = db.fetchone()[0] + return int(genre_id) + except: + return int(0) + + +def add_movie_to_list(db_name="movie_db.db", movie_name=str, genre_id=int, regie_id=int, medium_id=int): + SQL_PARAM = f""" + INSERT INTO movie_list (titel, genre_id, regie_id, medium_id ) + SELECT ?, ?, ?, ? + WHERE NOT EXISTS + (SELECT titel FROM movie_list WHERE titel = ?); + """ + try: + with DBcm.UseDatabase(db_name) as db: + db.execute(SQL_PARAM, (movie_name.lower(), genre_id, + regie_id, medium_id, movie_name.lower(),)) + except ProgrammingError: + raise ProgrammingError("Konnte nicht in die DB schreiben") + return True + + +def show_movie_list(db_name="movie_db.db"): + SQL_PARAM = f"""SELECT + movie_list.id, + titel, + genre.name AS genre, + regie.surname as regie_surname, + regie.lastname as regie_lastname, + medium.medium + FROM movie_list + INNER JOIN genre ON movie_list.genre_id=genre.id + INNER JOIN regie ON movie_list.regie_id=regie.id + INNER JOIN medium ON movie_list.medium_id=medium.id + ; + """ + db = sqlite3.connect(db_name) + SELCET_VALUE = pd.read_sql(SQL_PARAM, db) + return_list_dict = [] + for id, titel, genre, regie_surname, regie_lastname in zip(SELCET_VALUE["id"], SELCET_VALUE["titel"], SELCET_VALUE["genre"], SELCET_VALUE["regie_surname"], SELCET_VALUE["regie_lastname"]): + return_list_dict.append( + {"id": id, "titel": titel, "genre": genre, "regie": regie_surname + " " + regie_lastname}) + return return_list_dict + + +if __name__ == "__main__": + create_movie_database() + # print(all_select()) + # id_genre = search_id( + # search_name="DVD", select_from="medium", select_where="medium") + add_movie_to_list(movie_name="Schlumpfland", + genre_id=1, regie_id=1, medium_id=1) + print(show_movie_list()) diff --git a/movie-db/regie_name.csv b/movie-db/regie_name.csv new file mode 100644 index 0000000..085201d --- /dev/null +++ b/movie-db/regie_name.csv @@ -0,0 +1,329 @@ +Name,Vorname +Rodriguez,Robert +Smith,John +Johnson,James +Williams,William +Brown,Michael +Davis,David +Miller,Richard +Wilson,Joseph +Moore,Charles +Taylor,Thomas +Anderson,Daniel +Thomas,Paul +Jackson,Mark +White,Donna +Harris,Michelle +Martin,Laura +Thompson,Sara +Garcia,Ana +Rodriguez,Carlos +Martinez,Maria +Hernandez,Jose +Lopez,Luis +Gonzalez,Rosa +Perez,Pedro +Sanchez,Miguel +Ramirez,Juan +Flores,Ana +Cruz,Isabella +Rivera,Victor +Lee,Kevin +Walker,Brian +Hall,Emily +Allen,Ryan +Young,Aaron +King,Jeffrey +Wright,Joshua +Scott,Brandon +Turner,Frank +Carter,Gregory +Phillips,Samuel +Evans,Chris +Collins,Anthony +Stewart,Eric +Snyder,Frank +Baker,Thomas +Nelson,Jeremy +Roberts,Steven +Campbell,Edward +Miller,Ryan +Davis,Jacob +Garcia,David +Rodriguez,Sophia +Martinez,Emma +Hernandez,Noah +Lopez,Ava +Gonzalez,Ethan +Perez,Mia +Sanchez,William +Ramirez,James +Flores,Olivia +Cruz,Lucas +Rivera,Isabella +Lee,David +Walker,Sophie +Hall,Matthew +Allen,Emma +Young,Ryan +King,Ava +Wright,Ethan +Scott,Mia +Turner,William +Carter,James +Phillips,Olivia +Evans,Lucas +Collins,Sophie +Stewart,Noah +Snyder,Ava +Baker,Ethan +Nelson,Mia +Roberts,Noah +Campbell,Emma +Miller,William +Davis,James +Garcia,Olivia +Rodriguez,Lucas +Martinez,Sophie +Hernandez,Noah +Lopez,Ava +Gonzalez,Ethan +Perez,Mia +Sanchez,William +Ramirez,James +Flores,Olivia +Cruz,Lucas +Rivera,Isabella +Lee,David +Walker,Sophie +Hall,Matthew +Allen,Emma +Young,Ryan +King,Ava +Wright,Ethan +Scott,Mia +Turner,William +Carter,James +Phillips,Olivia +Evans,Lucas +Collins,Sophie +Stewart,Noah +Snyder,Ava +Baker,Ethan +Nelson,Mia +Roberts,Noah +Campbell,Emma +Miller,William +Davis,James +Garcia,Olivia +Rodriguez,Lucas +Martinez,Sophie +Hernandez,Noah +Lopez,Ava +Gonzalez,Ethan +Perez,Mia +Sanchez,William +Ramirez,James +Flores,Olivia +Cruz,Lucas +Rivera,Isabella +Lee,David +Walker,Sophie +Hall,Matthew +Allen,Emma +Young,Ryan +King,Ava +Wright,Ethan +Scott,Mia +Turner,William +Carter,James +Phillips,Olivia +Evans,Lucas +Collins,Sophie +Stewart,Noah +Snyder,Ava +Baker,Ethan +Nelson,Mia +Roberts,Noah +Campbell,Emma +Miller,William +Davis,James +Garcia,Olivia +Rodriguez,Lucas +Martinez,Sophie +Hernandez,Noah +Lopez,Ava +Gonzalez,Ethan +Perez,Mia +Sanchez,William +Ramirez,James +Flores,Olivia +Cruz,Lucas +Rivera,Isabella +Lee,David +Walker,Sophie +Hall,Matthew +Allen,Emma +Young,Ryan +King,Ava +Wright,Ethan +Scott,Mia +Turner,William +Carter,James +Phillips,Olivia +Evans,Lucas +Collins,Sophie +Stewart,Noah +Snyder,Ava +Baker,Ethan +Nelson,Mia +Roberts,Noah +Campbell,Emma +Miller,William +Davis,James +Garcia,Olivia +Rodriguez,Lucas +Martinez,Sophie +Hernandez,Noah +Lopez,Ava +Gonzalez,Ethan +Perez,Mia +Sanchez,William +Ramirez,James +Flores,Olivia +Cruz,Lucas +Rivera,Isabella +Lee,David +Walker,Sophie +Hall,Matthew +Allen,Emma +Young,Ryan +King,Ava +Wright,Ethan +Scott,Mia +Turner,William +Carter,James +Phillips,Olivia +Evans,Lucas +Collins,Sophie +Stewart,Noah +Snyder,Ava +Baker,Ethan +Nelson,Mia +Roberts,Noah +Campbell,Emma +Miller,William +Davis,James +Garcia,Olivia +Rodriguez,Lucas +Martinez,Sophie +Hernandez,Noah +Lopez,Ava +Gonzalez,Ethan +Perez,Mia +Sanchez,William +Ramirez,James +Flores,Olivia +Cruz,Lucas +Rivera,Isabella +Lee,David +Walker,Sophie +Hall,Matthew +Allen,Emma +Young,Ryan +King,Ava +Wright,Ethan +Scott,Mia +Turner,William +Carter,James +Phillips,Olivia +Evans,Lucas +Collins,Sophie +Stewart,Noah +Snyder,Ava +Baker,Ethan +Nelson,Mia +Roberts,Noah +Campbell,Emma +Miller,William +Davis,James +Garcia,Olivia +Rodriguez,Lucas +Martinez,Sophie +Hernandez,Noah +Lopez,Ava +Gonzalez,Ethan +Perez,Mia +Sanchez,William +Ramirez,James +Flores,Olivia +Cruz,Lucas +Rivera,Isabella +Lee,David +Walker,Sophie +Hall,Matthew +Allen,Emma +Young,Ryan +King,Ava +Wright,Ethan +Scott,Mia +Turner,William +Carter,James +Phillips,Olivia +Evans,Lucas +Collins,Sophie +Stewart,Noah +Snyder,Ava +Baker,Ethan +Nelson,Mia +Roberts,Noah +Campbell,Emma +Miller,William +Davis,James +Garcia,Olivia +Rodriguez,Lucas +Martinez,Sophie +Hernandez,Noah +Lopez,Ava +Gonzalez,Ethan +Perez,Mia +Sanchez,William +Ramirez,James +Flores,Olivia +Cruz,Lucas +Rivera,Isabella +Lee,David +Walker,Sophie +Hall,Matthew +Allen,Emma +Young,Ryan +King,Ava +Wright,Ethan +Scott,Mia +Turner,William +Carter,James +Phillips,Olivia +Evans,Lucas +Collins,Sophie +Stewart,Noah +Snyder,Ava +Baker,Ethan +Nelson,Mia +Roberts,Noah +Campbell,Emma +Miller,William +Davis,James +Garcia,Olivia +Rodriguez,Lucas +Martinez,Sophie +Hernandez,Noah +Lopez,Ava +Gonzalez,Ethan +Perez,Mia +Sanchez,William +Ramirez,James +Flores,Olivia +Cruz,Lucas +Rivera,Isabella +Lee,David +Walker,Sophie diff --git a/movie-db/requirements.txt b/movie-db/requirements.txt new file mode 100644 index 0000000..080cc52 --- /dev/null +++ b/movie-db/requirements.txt @@ -0,0 +1,2 @@ +flask +dbcm diff --git a/movie-db/templates/add_movie.html b/movie-db/templates/add_movie.html new file mode 100644 index 0000000..41c8b40 --- /dev/null +++ b/movie-db/templates/add_movie.html @@ -0,0 +1,31 @@ +{% extends "base.html" %} +{% block body %} +
+ +   + +   + +   + +   + + + +
+{% endblock %} diff --git a/movie-db/templates/base.html b/movie-db/templates/base.html new file mode 100644 index 0000000..e4f9d7d --- /dev/null +++ b/movie-db/templates/base.html @@ -0,0 +1,12 @@ + + + + {{ sitename }} + + +

{{ sitename }}

+

Es werden alle Filmtitel in einer Liste angezeigt. + {% block body %} + {% endblock %} + + diff --git a/movie-db/templates/output.html b/movie-db/templates/output.html new file mode 100644 index 0000000..edcc9d5 --- /dev/null +++ b/movie-db/templates/output.html @@ -0,0 +1,10 @@ +{% extends "base.html" %} + + {% block body %} +

+ Film = {{ add_movie }}
+ Genre = {{ add_genre }}   genre_id = {{ add_genre_id }}
+ Medium = {{ add_medium }}   medium_id = {{add_medium_id }}
+ Regie = {{ add_regie }}   reg_id = {{ add_regie_id }}
+

+ {% endblock %} diff --git a/movie-db/test_jup.ipynb b/movie-db/test_jup.ipynb new file mode 100644 index 0000000..44f840e --- /dev/null +++ b/movie-db/test_jup.ipynb @@ -0,0 +1,650 @@ +{ + "cells": [ + { + "cell_type": "code", + "execution_count": 1, + "id": "5263a987-da36-46d7-a2e7-d0658cda09c1", + "metadata": {}, + "outputs": [], + "source": [ + "import DBcm" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "id": "3f6b0763-4106-4bfa-9aef-7afbd180c6d4", + "metadata": {}, + "outputs": [], + "source": [ + "db_name = \"movie_db.db\"\n", + "\n", + "create_my_list = \"\"\"\n", + " create table if not exists movie_list (\n", + " id integer not null primary key autoincrement,\n", + " titel varchar(64) not null,\n", + " genre_id integer not null,\n", + " regie_id integer not null\n", + " \n", + " )\n", + "\n", + "\"\"\"\n", + "\n", + "create_genre = \"\"\"\n", + " create table if not exists genre (\n", + " id integer not null primary key autoincrement,\n", + " name varchar(64) not null\n", + " )\n", + "\"\"\"\n", + "\n", + "create_regie = \"\"\"\n", + " create table if not exists regie (\n", + " id integer not null primary key autoincrement,\n", + " surname varchar(64) not null,\n", + " lastname varchr(64) not null\n", + " )\n", + "\"\"\"\n", + "\n", + "\n", + "with DBcm.UseDatabase(db_name) as db: \n", + " db.execute(create_my_list)\n", + " db.execute(create_genre)\n", + " db.execute(create_regie)\n", + " " + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "id": "376ef812-97b5-45ba-8ef1-eb8d7829494a", + "metadata": {}, + "outputs": [], + "source": [ + "# ADDed Genre values\n", + "\n", + "ADD_GENRE_VALUE = \"\"\"\n", + " INSERT INTO genre(name)\n", + " SELECT ?\n", + " WHERE NOT EXISTS (SELECT 1 FROM genre WHERE name = ?);\n", + " \"\"\"\n", + "\n", + "with open(\"genre_list\", \"r\") as fs: \n", + " for genre_value in fs.readlines():\n", + " with DBcm.UseDatabase(db_name) as db:\n", + " db.execute(ADD_GENRE_VALUE, (genre_value.strip(), genre_value.strip()))\n", + " " + ] + }, + { + "cell_type": "code", + "execution_count": 27, + "id": "63b16a41-88bf-4832-a26c-09180832f597", + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "['action', 'adventure', 'animation', 'biography', 'comedy', 'crime', 'cult movie', 'disney', 'documentary', 'drama', 'erotic', 'family', 'fantasy', 'film-noir', 'gangster', 'gay and lesbian', 'history', 'horror', 'military', 'music', 'musical', 'mystery', 'nature', 'neo-noir', 'period', 'pixar', 'road movie', 'romance', 'sci-fi', 'short', 'spy', 'super hero', 'thriller', 'visually stunning', 'war', 'western']\n" + ] + } + ], + "source": [ + "def all_genres():\n", + " ALL_GENRE = \"\"\"\n", + " SELECT * from genre \n", + " \"\"\" \n", + " with DBcm.UseDatabase(db_name) as db:\n", + " db.execute(ALL_GENRE)\n", + " all_genre = [i[1] for i in db.fetchall()]\n", + " \n", + " return all_genre\n", + "\n", + "print(all_genres())\n", + " " + ] + }, + { + "cell_type": "code", + "execution_count": 36, + "id": "89b20b5f-34aa-4490-a4c0-c186c9fa30bd", + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "1\n", + "36\n" + ] + } + ], + "source": [ + "def search_genre_id(genre_name):\n", + " GENRE_QUERY = \"\"\"\n", + " select id from genre\n", + " where name = ?\n", + " \"\"\"\n", + " try:\n", + " with DBcm.UseDatabase(db_name) as db:\n", + " db.execute(GENRE_QUERY,(genre_name,))\n", + " genre_id = db.fetchone()[0]\n", + " return int(genre_id)\n", + " except:\n", + " return int(0)\n", + "\n", + "\n", + "def search_medium_id(genre_name):\n", + " GENRE_QUERY = \"\"\"\n", + " select id from genre\n", + " where medium = ?\n", + " \"\"\"\n", + " try:\n", + " with DBcm.UseDatabase(db_name) as db:\n", + " db.execute(GENRE_QUERY,(genre_name,))\n", + " genre_id = db.fetchone()[0]\n", + " return int(genre_id)\n", + " except:\n", + " return int(0)\n", + "\n", + "print(search_genre_id(genre_name=\"action\"))\n", + "print(search_genre_id(genre_name=\"western\"))" + ] + }, + { + "cell_type": "code", + "execution_count": 18, + "id": "c70d91a5-7855-465d-a4a6-daebc065ee37", + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "0-John-Smith\n", + "1-James-Johnson\n", + "2-William-Williams\n", + "3-Michael-Brown\n", + "4-David-Davis\n", + "5-Richard-Miller\n", + "6-Joseph-Wilson\n", + "7-Charles-Moore\n", + "8-Thomas-Taylor\n", + "9-Daniel-Anderson\n", + "10-Paul-Thomas\n", + "11-Mark-Jackson\n", + "12-Donna-White\n", + "13-Michelle-Harris\n", + "14-Laura-Martin\n", + "15-Sara-Thompson\n", + "16-Ana-Garcia\n", + "17-Carlos-Rodriguez\n", + "18-Maria-Martinez\n", + "19-Jose-Hernandez\n", + "20-Luis-Lopez\n", + "21-Rosa-Gonzalez\n", + "22-Pedro-Perez\n", + "23-Miguel-Sanchez\n", + "24-Juan-Ramirez\n", + "25-Ana-Flores\n", + "26-Isabella-Cruz\n", + "27-Victor-Rivera\n", + "28-Kevin-Lee\n", + "29-Brian-Walker\n", + "30-Emily-Hall\n", + "31-Ryan-Allen\n", + "32-Aaron-Young\n", + "33-Jeffrey-King\n", + "34-Joshua-Wright\n", + "35-Brandon-Scott\n", + "36-Frank-Turner\n", + "37-Gregory-Carter\n", + "38-Samuel-Phillips\n", + "39-Chris-Evans\n", + "40-Anthony-Collins\n", + "41-Eric-Stewart\n", + "42-Frank-Snyder\n", + "43-Thomas-Baker\n", + "44-Jeremy-Nelson\n", + "45-Steven-Roberts\n", + "46-Edward-Campbell\n", + "47-Ryan-Miller\n", + "48-Jacob-Davis\n", + "49-David-Garcia\n", + "50-Sophia-Rodriguez\n", + "51-Emma-Martinez\n", + "52-Noah-Hernandez\n", + "53-Ava-Lopez\n", + "54-Ethan-Gonzalez\n", + "55-Mia-Perez\n", + "56-William-Sanchez\n", + "57-James-Ramirez\n", + "58-Olivia-Flores\n", + "59-Lucas-Cruz\n", + "60-Isabella-Rivera\n", + "61-David-Lee\n", + "62-Sophie-Walker\n", + "63-Matthew-Hall\n", + "64-Emma-Allen\n", + "65-Ryan-Young\n", + "66-Ava-King\n", + "67-Ethan-Wright\n", + "68-Mia-Scott\n", + "69-William-Turner\n", + "70-James-Carter\n", + "71-Olivia-Phillips\n", + "72-Lucas-Evans\n", + "73-Sophie-Collins\n", + "74-Noah-Stewart\n", + "75-Ava-Snyder\n", + "76-Ethan-Baker\n", + "77-Mia-Nelson\n", + "78-Noah-Roberts\n", + "79-Emma-Campbell\n", + "80-William-Miller\n", + "81-James-Davis\n", + "82-Olivia-Garcia\n", + "83-Lucas-Rodriguez\n", + "84-Sophie-Martinez\n", + "85-Noah-Hernandez\n", + "86-Ava-Lopez\n", + "87-Ethan-Gonzalez\n", + "88-Mia-Perez\n", + "89-William-Sanchez\n", + "90-James-Ramirez\n", + "91-Olivia-Flores\n", + "92-Lucas-Cruz\n", + "93-Isabella-Rivera\n", + "94-David-Lee\n", + "95-Sophie-Walker\n", + "96-Matthew-Hall\n", + "97-Emma-Allen\n", + "98-Ryan-Young\n", + "99-Ava-King\n", + "100-Ethan-Wright\n", + "101-Mia-Scott\n", + "102-William-Turner\n", + "103-James-Carter\n", + "104-Olivia-Phillips\n", + "105-Lucas-Evans\n", + "106-Sophie-Collins\n", + "107-Noah-Stewart\n", + "108-Ava-Snyder\n", + "109-Ethan-Baker\n", + "110-Mia-Nelson\n", + "111-Noah-Roberts\n", + "112-Emma-Campbell\n", + "113-William-Miller\n", + "114-James-Davis\n", + "115-Olivia-Garcia\n", + "116-Lucas-Rodriguez\n", + "117-Sophie-Martinez\n", + "118-Noah-Hernandez\n", + "119-Ava-Lopez\n", + "120-Ethan-Gonzalez\n", + "121-Mia-Perez\n", + "122-William-Sanchez\n", + "123-James-Ramirez\n", + "124-Olivia-Flores\n", + "125-Lucas-Cruz\n", + "126-Isabella-Rivera\n", + "127-David-Lee\n", + "128-Sophie-Walker\n", + "129-Matthew-Hall\n", + "130-Emma-Allen\n", + "131-Ryan-Young\n", + "132-Ava-King\n", + "133-Ethan-Wright\n", + "134-Mia-Scott\n", + "135-William-Turner\n", + "136-James-Carter\n", + "137-Olivia-Phillips\n", + "138-Lucas-Evans\n", + "139-Sophie-Collins\n", + "140-Noah-Stewart\n", + "141-Ava-Snyder\n", + "142-Ethan-Baker\n", + "143-Mia-Nelson\n", + "144-Noah-Roberts\n", + "145-Emma-Campbell\n", + "146-William-Miller\n", + "147-James-Davis\n", + "148-Olivia-Garcia\n", + "149-Lucas-Rodriguez\n", + "150-Sophie-Martinez\n", + "151-Noah-Hernandez\n", + "152-Ava-Lopez\n", + "153-Ethan-Gonzalez\n", + "154-Mia-Perez\n", + "155-William-Sanchez\n", + "156-James-Ramirez\n", + "157-Olivia-Flores\n", + "158-Lucas-Cruz\n", + "159-Isabella-Rivera\n", + "160-David-Lee\n", + "161-Sophie-Walker\n", + "162-Matthew-Hall\n", + "163-Emma-Allen\n", + "164-Ryan-Young\n", + "165-Ava-King\n", + "166-Ethan-Wright\n", + "167-Mia-Scott\n", + "168-William-Turner\n", + "169-James-Carter\n", + "170-Olivia-Phillips\n", + "171-Lucas-Evans\n", + "172-Sophie-Collins\n", + "173-Noah-Stewart\n", + "174-Ava-Snyder\n", + "175-Ethan-Baker\n", + "176-Mia-Nelson\n", + "177-Noah-Roberts\n", + "178-Emma-Campbell\n", + "179-William-Miller\n", + "180-James-Davis\n", + "181-Olivia-Garcia\n", + "182-Lucas-Rodriguez\n", + "183-Sophie-Martinez\n", + "184-Noah-Hernandez\n", + "185-Ava-Lopez\n", + "186-Ethan-Gonzalez\n", + "187-Mia-Perez\n", + "188-William-Sanchez\n", + "189-James-Ramirez\n", + "190-Olivia-Flores\n", + "191-Lucas-Cruz\n", + "192-Isabella-Rivera\n", + "193-David-Lee\n", + "194-Sophie-Walker\n", + "195-Matthew-Hall\n", + "196-Emma-Allen\n", + "197-Ryan-Young\n", + "198-Ava-King\n", + "199-Ethan-Wright\n", + "200-Mia-Scott\n", + "201-William-Turner\n", + "202-James-Carter\n", + "203-Olivia-Phillips\n", + "204-Lucas-Evans\n", + "205-Sophie-Collins\n", + "206-Noah-Stewart\n", + "207-Ava-Snyder\n", + "208-Ethan-Baker\n", + "209-Mia-Nelson\n", + "210-Noah-Roberts\n", + "211-Emma-Campbell\n", + "212-William-Miller\n", + "213-James-Davis\n", + "214-Olivia-Garcia\n", + "215-Lucas-Rodriguez\n", + "216-Sophie-Martinez\n", + "217-Noah-Hernandez\n", + "218-Ava-Lopez\n", + "219-Ethan-Gonzalez\n", + "220-Mia-Perez\n", + "221-William-Sanchez\n", + "222-James-Ramirez\n", + "223-Olivia-Flores\n", + "224-Lucas-Cruz\n", + "225-Isabella-Rivera\n", + "226-David-Lee\n", + "227-Sophie-Walker\n", + "228-Matthew-Hall\n", + "229-Emma-Allen\n", + "230-Ryan-Young\n", + "231-Ava-King\n", + "232-Ethan-Wright\n", + "233-Mia-Scott\n", + "234-William-Turner\n", + "235-James-Carter\n", + "236-Olivia-Phillips\n", + "237-Lucas-Evans\n", + "238-Sophie-Collins\n", + "239-Noah-Stewart\n", + "240-Ava-Snyder\n", + "241-Ethan-Baker\n", + "242-Mia-Nelson\n", + "243-Noah-Roberts\n", + "244-Emma-Campbell\n", + "245-William-Miller\n", + "246-James-Davis\n", + "247-Olivia-Garcia\n", + "248-Lucas-Rodriguez\n", + "249-Sophie-Martinez\n", + "250-Noah-Hernandez\n", + "251-Ava-Lopez\n", + "252-Ethan-Gonzalez\n", + "253-Mia-Perez\n", + "254-William-Sanchez\n", + "255-James-Ramirez\n", + "256-Olivia-Flores\n", + "257-Lucas-Cruz\n", + "258-Isabella-Rivera\n", + "259-David-Lee\n", + "260-Sophie-Walker\n", + "261-Matthew-Hall\n", + "262-Emma-Allen\n", + "263-Ryan-Young\n", + "264-Ava-King\n", + "265-Ethan-Wright\n", + "266-Mia-Scott\n", + "267-William-Turner\n", + "268-James-Carter\n", + "269-Olivia-Phillips\n", + "270-Lucas-Evans\n", + "271-Sophie-Collins\n", + "272-Noah-Stewart\n", + "273-Ava-Snyder\n", + "274-Ethan-Baker\n", + "275-Mia-Nelson\n", + "276-Noah-Roberts\n", + "277-Emma-Campbell\n", + "278-William-Miller\n", + "279-James-Davis\n", + "280-Olivia-Garcia\n", + "281-Lucas-Rodriguez\n", + "282-Sophie-Martinez\n", + "283-Noah-Hernandez\n", + "284-Ava-Lopez\n", + "285-Ethan-Gonzalez\n", + "286-Mia-Perez\n", + "287-William-Sanchez\n", + "288-James-Ramirez\n", + "289-Olivia-Flores\n", + "290-Lucas-Cruz\n", + "291-Isabella-Rivera\n", + "292-David-Lee\n", + "293-Sophie-Walker\n", + "294-Matthew-Hall\n", + "295-Emma-Allen\n", + "296-Ryan-Young\n", + "297-Ava-King\n", + "298-Ethan-Wright\n", + "299-Mia-Scott\n", + "300-William-Turner\n", + "301-James-Carter\n", + "302-Olivia-Phillips\n", + "303-Lucas-Evans\n", + "304-Sophie-Collins\n", + "305-Noah-Stewart\n", + "306-Ava-Snyder\n", + "307-Ethan-Baker\n", + "308-Mia-Nelson\n", + "309-Noah-Roberts\n", + "310-Emma-Campbell\n", + "311-William-Miller\n", + "312-James-Davis\n", + "313-Olivia-Garcia\n", + "314-Lucas-Rodriguez\n", + "315-Sophie-Martinez\n", + "316-Noah-Hernandez\n", + "317-Ava-Lopez\n", + "318-Ethan-Gonzalez\n", + "319-Mia-Perez\n", + "320-William-Sanchez\n", + "321-James-Ramirez\n", + "322-Olivia-Flores\n", + "323-Lucas-Cruz\n", + "324-Isabella-Rivera\n", + "325-David-Lee\n", + "326-Sophie-Walker\n" + ] + } + ], + "source": [ + "import pandas as pd\n", + "usecols = [\"Name\", \"Vorname\"]\n", + "air = pd.read_csv(\"regie_name.csv\", usecols=usecols)\n", + "\n", + "for count, (i, b) in enumerate(zip(air[\"Name\"], air[\"Vorname\"])):\n", + " print(count, b, i, sep=\"-\")\n", + "\n" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "id": "ee4b5dee-6b41-49eb-8d75-9db50d20fdef", + "metadata": {}, + "outputs": [ + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
NameVorname
0SmithJohn
1JohnsonJames
2WilliamsWilliam
3BrownMichael
4DavisDavid
\n", + "
" + ], + "text/plain": [ + " Name Vorname\n", + "0 Smith John\n", + "1 Johnson James\n", + "2 Williams William\n", + "3 Brown Michael\n", + "4 Davis David" + ] + }, + "execution_count": 3, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "import pandas as pd\n", + "air = pd.read_csv(\"regie_name.csv\", nrows=5)\n", + "air" + ] + }, + { + "cell_type": "code", + "execution_count": 7, + "id": "8017742d-3b8e-4847-b5a3-4f28e0c9057a", + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Name\n", + "Flores 10.0\n", + "Davis 10.0\n", + "Gonzalez 10.0\n", + "Garcia 10.0\n", + "Cruz 10.0\n", + " ... \n", + "Taylor 1.0\n", + "White 1.0\n", + "Thompson 1.0\n", + "Wilson 1.0\n", + "Williams 1.0\n", + "Length: 47, dtype: float64\n" + ] + } + ], + "source": [ + "chunker = pd.read_csv(\"regie_name.csv\", chunksize=1000)\n", + "tot = pd.Series([], dtype='int64')\n", + "for piece in chunker:\n", + " tot = tot.add(piece[\"Name\"].value_counts(), fill_value=0)\n", + "tot = tot.sort_values(ascending=False)\n", + "print(tot)" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "d7531f34-19a6-4606-88f2-1c4fdd3b0b7d", + "metadata": {}, + "outputs": [], + "source": [] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 3 (ipykernel)", + "language": "python", + "name": "python3" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 3 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython3", + "version": "3.13.3" + } + }, + "nbformat": 4, + "nbformat_minor": 5 +} diff --git a/play_ansible/inv_plugin/ansible_inv_main.py b/play_ansible/inv_plugin/ansible_inv_main.py index 2a80adc..6c6aaf0 100755 --- a/play_ansible/inv_plugin/ansible_inv_main.py +++ b/play_ansible/inv_plugin/ansible_inv_main.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python3.12 +#! /usr/bin/env python3 import csv import errno @@ -14,7 +14,8 @@ def scan(ip): arp_request = scapy.ARP(pdst=ip) broadcast = scapy.Ether(dst="ff:ff:ff:ff:ff:ff") arp_request_broadcast = broadcast / arp_request - answered_list = scapy.srp(arp_request_broadcast, timeout=1, verbose=False)[0] + answered_list = scapy.srp(arp_request_broadcast, + timeout=1, verbose=False)[0] results = [] for element in answered_list: result = { @@ -45,7 +46,8 @@ def scan_csv(csvfile=str, colm="hostname"): for count, row in enumerate(csv_reader, 1): hostlist.append(row[colm]) else: - raise FileNotFoundError(errno.ENOENT, os.strerror(errno.ENOENT), csvfile) + raise FileNotFoundError( + errno.ENOENT, os.strerror(errno.ENOENT), csvfile) return tuple(hostlist) @@ -70,7 +72,8 @@ if __name__ == "__main__": # if len(sys.argv) == 1: ip_list = create_ip_list() man_list = scan_csv( - csvfile=os.path.dirname(os.path.realpath(__file__)) + "/hostname_manuel.csv" + csvfile=os.path.dirname(os.path.realpath( + __file__)) + "/hostname_manuel.csv" ) output = { "_meta": { diff --git a/play_ansible/inv_plugin/fact/ras-dan-01.local b/play_ansible/inv_plugin/fact/ras-dan-01.local new file mode 100644 index 0000000..84a0ec2 --- /dev/null +++ b/play_ansible/inv_plugin/fact/ras-dan-01.local @@ -0,0 +1,1946 @@ +ansible_all_ipv4_addresses: +- 10.50.0.3 +- 169.254.35.235 +- 192.168.50.150 +- 169.254.133.112 +- 169.254.172.16 +- 169.254.23.169 +- 172.19.0.1 +- 172.20.0.1 +- 172.18.0.1 +- 172.17.0.1 +ansible_all_ipv6_addresses: +- fe80::b194:fab8:769c:a673 +- 2003:f7:d728:94be:eb0c:cd4a:afa5:d887 +- fe80::afca:a5e8:8235:32d2 +- fe80::2025:49fc:a242:da2c +- fe80::fc1c:da35:d596:a553 +- fe80::4f4d:6179:89b9:51cf +- fe80::ac83:1ff:fe8e:deee +- fe80::c0c5:c5ff:fedd:56b3 +- fe80::445c:eff:fe5d:6764 +- fe80::30ab:f1ff:fe5e:26b5 +ansible_apparmor: + status: disabled +ansible_architecture: aarch64 +ansible_bios_date: '' +ansible_bios_vendor: '' +ansible_bios_version: '' +ansible_board_asset_tag: '' +ansible_board_name: '' +ansible_board_serial: '' +ansible_board_vendor: '' +ansible_board_version: '' +ansible_br_060a64b42914: + active: true + device: br-060a64b42914 + features: + esp_hw_offload: off [fixed] + esp_tx_csum_hw_offload: off [fixed] + fcoe_mtu: off [fixed] + generic_receive_offload: 'on' + generic_segmentation_offload: 'on' + highdma: 'on' + hsr_dup_offload: off [fixed] + hsr_fwd_offload: off [fixed] + hsr_tag_ins_offload: off [fixed] + hsr_tag_rm_offload: off [fixed] + hw_tc_offload: off [fixed] + l2_fwd_offload: off [fixed] + large_receive_offload: off [fixed] + loopback: off [fixed] + macsec_hw_offload: off [fixed] + netns_local: on [fixed] + ntuple_filters: off [fixed] + receive_hashing: off [fixed] + rx_all: off [fixed] + rx_checksumming: off [fixed] + rx_fcs: off [fixed] + rx_gro_hw: off [fixed] + rx_gro_list: 'off' + rx_udp_gro_forwarding: 'off' + rx_udp_tunnel_port_offload: off [fixed] + rx_vlan_filter: off [fixed] + rx_vlan_offload: off [fixed] + rx_vlan_stag_filter: off [fixed] + rx_vlan_stag_hw_parse: off [fixed] + scatter_gather: 'on' + tcp_segmentation_offload: 'on' + tls_hw_record: off [fixed] + tls_hw_rx_offload: off [fixed] + tls_hw_tx_offload: off [fixed] + tx_checksum_fcoe_crc: off [fixed] + tx_checksum_ip_generic: 'on' + tx_checksum_ipv4: off [fixed] + tx_checksum_ipv6: off [fixed] + tx_checksum_sctp: off [fixed] + tx_checksumming: 'on' + tx_esp_segmentation: 'on' + tx_fcoe_segmentation: off [requested on] + tx_gre_csum_segmentation: 'on' + tx_gre_segmentation: 'on' + tx_gso_list: 'on' + tx_gso_partial: 'on' + tx_gso_robust: off [requested on] + tx_ipxip4_segmentation: 'on' + tx_ipxip6_segmentation: 'on' + tx_lockless: on [fixed] + tx_nocache_copy: 'off' + tx_scatter_gather: 'on' + tx_scatter_gather_fraglist: 'on' + tx_sctp_segmentation: 'on' + tx_tcp6_segmentation: 'on' + tx_tcp_ecn_segmentation: 'on' + tx_tcp_mangleid_segmentation: 'on' + tx_tcp_segmentation: 'on' + tx_tunnel_remcsum_segmentation: 'on' + tx_udp_segmentation: 'on' + tx_udp_tnl_csum_segmentation: 'on' + tx_udp_tnl_segmentation: 'on' + tx_vlan_offload: 'on' + tx_vlan_stag_hw_insert: 'on' + vlan_challenged: off [fixed] + hw_timestamp_filters: [] + id: 8000.c2c5c5dd56b3 + interfaces: + - veth286f3d4 + ipv4: + address: 172.20.0.1 + broadcast: 172.20.255.255 + netmask: 255.255.0.0 + network: 172.20.0.0 + prefix: '16' + ipv6: + - address: fe80::c0c5:c5ff:fedd:56b3 + prefix: '64' + scope: link + macaddress: c2:c5:c5:dd:56:b3 + mtu: 1500 + promisc: false + speed: 10000 + stp: false + timestamping: [] + type: bridge +ansible_br_5bafd5795d0f: + active: true + device: br-5bafd5795d0f + features: + esp_hw_offload: off [fixed] + esp_tx_csum_hw_offload: off [fixed] + fcoe_mtu: off [fixed] + generic_receive_offload: 'on' + generic_segmentation_offload: 'on' + highdma: 'on' + hsr_dup_offload: off [fixed] + hsr_fwd_offload: off [fixed] + hsr_tag_ins_offload: off [fixed] + hsr_tag_rm_offload: off [fixed] + hw_tc_offload: off [fixed] + l2_fwd_offload: off [fixed] + large_receive_offload: off [fixed] + loopback: off [fixed] + macsec_hw_offload: off [fixed] + netns_local: on [fixed] + ntuple_filters: off [fixed] + receive_hashing: off [fixed] + rx_all: off [fixed] + rx_checksumming: off [fixed] + rx_fcs: off [fixed] + rx_gro_hw: off [fixed] + rx_gro_list: 'off' + rx_udp_gro_forwarding: 'off' + rx_udp_tunnel_port_offload: off [fixed] + rx_vlan_filter: off [fixed] + rx_vlan_offload: off [fixed] + rx_vlan_stag_filter: off [fixed] + rx_vlan_stag_hw_parse: off [fixed] + scatter_gather: 'on' + tcp_segmentation_offload: 'on' + tls_hw_record: off [fixed] + tls_hw_rx_offload: off [fixed] + tls_hw_tx_offload: off [fixed] + tx_checksum_fcoe_crc: off [fixed] + tx_checksum_ip_generic: 'on' + tx_checksum_ipv4: off [fixed] + tx_checksum_ipv6: off [fixed] + tx_checksum_sctp: off [fixed] + tx_checksumming: 'on' + tx_esp_segmentation: 'on' + tx_fcoe_segmentation: off [requested on] + tx_gre_csum_segmentation: 'on' + tx_gre_segmentation: 'on' + tx_gso_list: 'on' + tx_gso_partial: 'on' + tx_gso_robust: off [requested on] + tx_ipxip4_segmentation: 'on' + tx_ipxip6_segmentation: 'on' + tx_lockless: on [fixed] + tx_nocache_copy: 'off' + tx_scatter_gather: 'on' + tx_scatter_gather_fraglist: 'on' + tx_sctp_segmentation: 'on' + tx_tcp6_segmentation: 'on' + tx_tcp_ecn_segmentation: 'on' + tx_tcp_mangleid_segmentation: 'on' + tx_tcp_segmentation: 'on' + tx_tunnel_remcsum_segmentation: 'on' + tx_udp_segmentation: 'on' + tx_udp_tnl_csum_segmentation: 'on' + tx_udp_tnl_segmentation: 'on' + tx_vlan_offload: 'on' + tx_vlan_stag_hw_insert: 'on' + vlan_challenged: off [fixed] + hw_timestamp_filters: [] + id: 8000.ae83018edeee + interfaces: + - veth2277be2 + ipv4: + address: 172.19.0.1 + broadcast: 172.19.255.255 + netmask: 255.255.0.0 + network: 172.19.0.0 + prefix: '16' + ipv6: + - address: fe80::ac83:1ff:fe8e:deee + prefix: '64' + scope: link + macaddress: ae:83:01:8e:de:ee + mtu: 1500 + promisc: false + speed: 10000 + stp: false + timestamping: [] + type: bridge +ansible_br_8cd22c3dd142: + active: true + device: br-8cd22c3dd142 + features: + esp_hw_offload: off [fixed] + esp_tx_csum_hw_offload: off [fixed] + fcoe_mtu: off [fixed] + generic_receive_offload: 'on' + generic_segmentation_offload: 'on' + highdma: 'on' + hsr_dup_offload: off [fixed] + hsr_fwd_offload: off [fixed] + hsr_tag_ins_offload: off [fixed] + hsr_tag_rm_offload: off [fixed] + hw_tc_offload: off [fixed] + l2_fwd_offload: off [fixed] + large_receive_offload: off [fixed] + loopback: off [fixed] + macsec_hw_offload: off [fixed] + netns_local: on [fixed] + ntuple_filters: off [fixed] + receive_hashing: off [fixed] + rx_all: off [fixed] + rx_checksumming: off [fixed] + rx_fcs: off [fixed] + rx_gro_hw: off [fixed] + rx_gro_list: 'off' + rx_udp_gro_forwarding: 'off' + rx_udp_tunnel_port_offload: off [fixed] + rx_vlan_filter: off [fixed] + rx_vlan_offload: off [fixed] + rx_vlan_stag_filter: off [fixed] + rx_vlan_stag_hw_parse: off [fixed] + scatter_gather: 'on' + tcp_segmentation_offload: 'on' + tls_hw_record: off [fixed] + tls_hw_rx_offload: off [fixed] + tls_hw_tx_offload: off [fixed] + tx_checksum_fcoe_crc: off [fixed] + tx_checksum_ip_generic: 'on' + tx_checksum_ipv4: off [fixed] + tx_checksum_ipv6: off [fixed] + tx_checksum_sctp: off [fixed] + tx_checksumming: 'on' + tx_esp_segmentation: 'on' + tx_fcoe_segmentation: off [requested on] + tx_gre_csum_segmentation: 'on' + tx_gre_segmentation: 'on' + tx_gso_list: 'on' + tx_gso_partial: 'on' + tx_gso_robust: off [requested on] + tx_ipxip4_segmentation: 'on' + tx_ipxip6_segmentation: 'on' + tx_lockless: on [fixed] + tx_nocache_copy: 'off' + tx_scatter_gather: 'on' + tx_scatter_gather_fraglist: 'on' + tx_sctp_segmentation: 'on' + tx_tcp6_segmentation: 'on' + tx_tcp_ecn_segmentation: 'on' + tx_tcp_mangleid_segmentation: 'on' + tx_tcp_segmentation: 'on' + tx_tunnel_remcsum_segmentation: 'on' + tx_udp_segmentation: 'on' + tx_udp_tnl_csum_segmentation: 'on' + tx_udp_tnl_segmentation: 'on' + tx_vlan_offload: 'on' + tx_vlan_stag_hw_insert: 'on' + vlan_challenged: off [fixed] + hw_timestamp_filters: [] + id: 8000.465c0e5d6764 + interfaces: + - veth7027ebb + - veth9549a2a + ipv4: + address: 172.18.0.1 + broadcast: 172.18.255.255 + netmask: 255.255.0.0 + network: 172.18.0.0 + prefix: '16' + ipv6: + - address: fe80::445c:eff:fe5d:6764 + prefix: '64' + scope: link + macaddress: 46:5c:0e:5d:67:64 + mtu: 1500 + promisc: false + speed: 10000 + stp: false + timestamping: [] + type: bridge +ansible_chassis_asset_tag: '' +ansible_chassis_serial: '' +ansible_chassis_vendor: '' +ansible_chassis_version: '' +ansible_cmdline: + 8250.nr_uarts: '0' + coherent_pool: 1M + console: tty1 + fsck.repair: 'yes' + root: PARTUUID=57766a69-02 + rootfstype: ext4 + rootwait: true + smsc95xx.macaddr: D8:3A:DD:18:8C:63 + snd_bcm2835.enable_hdmi: '0' + snd_bcm2835.enable_headphones: '1' + vc_mem.mem_base: '0x3ec00000' + vc_mem.mem_size: '0x40000000' +ansible_date_time: + date: '2025-05-15' + day: '15' + epoch: '1747314851' + epoch_int: '1747314851' + hour: '15' + iso8601: '2025-05-15T13:14:11Z' + iso8601_basic: 20250515T151411272348 + iso8601_basic_short: 20250515T151411 + iso8601_micro: '2025-05-15T13:14:11.272348Z' + minute: '14' + month: '05' + second: '11' + time: '15:14:11' + tz: CEST + tz_dst: CEST + tz_offset: '+0200' + weekday: Donnerstag + weekday_number: '4' + weeknumber: '19' + year: '2025' +ansible_default_ipv4: + address: 192.168.50.150 + alias: wlan0 + broadcast: 192.168.50.255 + gateway: 192.168.50.1 + interface: wlan0 + macaddress: d8:3a:dd:18:8c:64 + mtu: 1500 + netmask: 255.255.255.0 + network: 192.168.50.0 + prefix: '24' + type: ether +ansible_default_ipv6: + address: 2003:f7:d728:94be:eb0c:cd4a:afa5:d887 + gateway: fe80::1 + interface: wlan0 + macaddress: d8:3a:dd:18:8c:64 + mtu: 1500 + prefix: '64' + scope: global + type: ether +ansible_device_links: + ids: + mmcblk0: + - mmc-SD256_0x7bc20c6c + mmcblk0p1: + - mmc-SD256_0x7bc20c6c-part1 + mmcblk0p2: + - mmc-SD256_0x7bc20c6c-part2 + labels: + mmcblk0p1: + - bootfs + mmcblk0p2: + - rootfs + masters: {} + uuids: + mmcblk0p1: + - 0B22-2966 + mmcblk0p2: + - 3ad7386b-e1ae-4032-ae33-0c40f5ecc4ac +ansible_devices: + loop0: + holders: [] + host: '' + links: + ids: [] + labels: [] + masters: [] + uuids: [] + model: null + partitions: {} + removable: '0' + rotational: '1' + sas_address: null + sas_device_handle: null + scheduler_mode: none + sectors: 0 + sectorsize: '512' + size: 0.00 Bytes + support_discard: '0' + vendor: null + virtual: 1 + loop1: + holders: [] + host: '' + links: + ids: [] + labels: [] + masters: [] + uuids: [] + model: null + partitions: {} + removable: '0' + rotational: '1' + sas_address: null + sas_device_handle: null + scheduler_mode: none + sectors: 0 + sectorsize: '512' + size: 0.00 Bytes + support_discard: '0' + vendor: null + virtual: 1 + loop2: + holders: [] + host: '' + links: + ids: [] + labels: [] + masters: [] + uuids: [] + model: null + partitions: {} + removable: '0' + rotational: '1' + sas_address: null + sas_device_handle: null + scheduler_mode: none + sectors: 0 + sectorsize: '512' + size: 0.00 Bytes + support_discard: '0' + vendor: null + virtual: 1 + loop3: + holders: [] + host: '' + links: + ids: [] + labels: [] + masters: [] + uuids: [] + model: null + partitions: {} + removable: '0' + rotational: '1' + sas_address: null + sas_device_handle: null + scheduler_mode: none + sectors: 0 + sectorsize: '512' + size: 0.00 Bytes + support_discard: '0' + vendor: null + virtual: 1 + loop4: + holders: [] + host: '' + links: + ids: [] + labels: [] + masters: [] + uuids: [] + model: null + partitions: {} + removable: '0' + rotational: '1' + sas_address: null + sas_device_handle: null + scheduler_mode: none + sectors: 0 + sectorsize: '512' + size: 0.00 Bytes + support_discard: '0' + vendor: null + virtual: 1 + loop5: + holders: [] + host: '' + links: + ids: [] + labels: [] + masters: [] + uuids: [] + model: null + partitions: {} + removable: '0' + rotational: '1' + sas_address: null + sas_device_handle: null + scheduler_mode: none + sectors: 0 + sectorsize: '512' + size: 0.00 Bytes + support_discard: '0' + vendor: null + virtual: 1 + loop6: + holders: [] + host: '' + links: + ids: [] + labels: [] + masters: [] + uuids: [] + model: null + partitions: {} + removable: '0' + rotational: '1' + sas_address: null + sas_device_handle: null + scheduler_mode: none + sectors: 0 + sectorsize: '512' + size: 0.00 Bytes + support_discard: '0' + vendor: null + virtual: 1 + loop7: + holders: [] + host: '' + links: + ids: [] + labels: [] + masters: [] + uuids: [] + model: null + partitions: {} + removable: '0' + rotational: '1' + sas_address: null + sas_device_handle: null + scheduler_mode: none + sectors: 0 + sectorsize: '512' + size: 0.00 Bytes + support_discard: '0' + vendor: null + virtual: 1 + mmcblk0: + holders: [] + host: '' + links: + ids: + - mmc-SD256_0x7bc20c6c + labels: [] + masters: [] + uuids: [] + model: null + partitions: + mmcblk0p1: + holders: [] + links: + ids: + - mmc-SD256_0x7bc20c6c-part1 + labels: + - bootfs + masters: [] + uuids: + - 0B22-2966 + sectors: 524288 + sectorsize: 512 + size: 256.00 MB + start: '8192' + uuid: 0B22-2966 + mmcblk0p2: + holders: [] + links: + ids: + - mmc-SD256_0x7bc20c6c-part2 + labels: + - rootfs + masters: [] + uuids: + - 3ad7386b-e1ae-4032-ae33-0c40f5ecc4ac + sectors: 499212288 + sectorsize: 512 + size: 238.04 GB + start: '532480' + uuid: 3ad7386b-e1ae-4032-ae33-0c40f5ecc4ac + removable: '0' + rotational: '0' + sas_address: null + sas_device_handle: null + scheduler_mode: mq-deadline + sectors: 499744768 + sectorsize: '512' + serial: '0x7bc20c6c' + size: 238.30 GB + support_discard: '4194304' + vendor: null + virtual: 1 + ram0: + holders: [] + host: '' + links: + ids: [] + labels: [] + masters: [] + uuids: [] + model: null + partitions: {} + removable: '0' + rotational: '0' + sas_address: null + sas_device_handle: null + scheduler_mode: '' + sectors: 8192 + sectorsize: '512' + size: 4.00 MB + support_discard: '0' + vendor: null + virtual: 1 + ram1: + holders: [] + host: '' + links: + ids: [] + labels: [] + masters: [] + uuids: [] + model: null + partitions: {} + removable: '0' + rotational: '0' + sas_address: null + sas_device_handle: null + scheduler_mode: '' + sectors: 8192 + sectorsize: '512' + size: 4.00 MB + support_discard: '0' + vendor: null + virtual: 1 + ram10: + holders: [] + host: '' + links: + ids: [] + labels: [] + masters: [] + uuids: [] + model: null + partitions: {} + removable: '0' + rotational: '0' + sas_address: null + sas_device_handle: null + scheduler_mode: '' + sectors: 8192 + sectorsize: '512' + size: 4.00 MB + support_discard: '0' + vendor: null + virtual: 1 + ram11: + holders: [] + host: '' + links: + ids: [] + labels: [] + masters: [] + uuids: [] + model: null + partitions: {} + removable: '0' + rotational: '0' + sas_address: null + sas_device_handle: null + scheduler_mode: '' + sectors: 8192 + sectorsize: '512' + size: 4.00 MB + support_discard: '0' + vendor: null + virtual: 1 + ram12: + holders: [] + host: '' + links: + ids: [] + labels: [] + masters: [] + uuids: [] + model: null + partitions: {} + removable: '0' + rotational: '0' + sas_address: null + sas_device_handle: null + scheduler_mode: '' + sectors: 8192 + sectorsize: '512' + size: 4.00 MB + support_discard: '0' + vendor: null + virtual: 1 + ram13: + holders: [] + host: '' + links: + ids: [] + labels: [] + masters: [] + uuids: [] + model: null + partitions: {} + removable: '0' + rotational: '0' + sas_address: null + sas_device_handle: null + scheduler_mode: '' + sectors: 8192 + sectorsize: '512' + size: 4.00 MB + support_discard: '0' + vendor: null + virtual: 1 + ram14: + holders: [] + host: '' + links: + ids: [] + labels: [] + masters: [] + uuids: [] + model: null + partitions: {} + removable: '0' + rotational: '0' + sas_address: null + sas_device_handle: null + scheduler_mode: '' + sectors: 8192 + sectorsize: '512' + size: 4.00 MB + support_discard: '0' + vendor: null + virtual: 1 + ram15: + holders: [] + host: '' + links: + ids: [] + labels: [] + masters: [] + uuids: [] + model: null + partitions: {} + removable: '0' + rotational: '0' + sas_address: null + sas_device_handle: null + scheduler_mode: '' + sectors: 8192 + sectorsize: '512' + size: 4.00 MB + support_discard: '0' + vendor: null + virtual: 1 + ram2: + holders: [] + host: '' + links: + ids: [] + labels: [] + masters: [] + uuids: [] + model: null + partitions: {} + removable: '0' + rotational: '0' + sas_address: null + sas_device_handle: null + scheduler_mode: '' + sectors: 8192 + sectorsize: '512' + size: 4.00 MB + support_discard: '0' + vendor: null + virtual: 1 + ram3: + holders: [] + host: '' + links: + ids: [] + labels: [] + masters: [] + uuids: [] + model: null + partitions: {} + removable: '0' + rotational: '0' + sas_address: null + sas_device_handle: null + scheduler_mode: '' + sectors: 8192 + sectorsize: '512' + size: 4.00 MB + support_discard: '0' + vendor: null + virtual: 1 + ram4: + holders: [] + host: '' + links: + ids: [] + labels: [] + masters: [] + uuids: [] + model: null + partitions: {} + removable: '0' + rotational: '0' + sas_address: null + sas_device_handle: null + scheduler_mode: '' + sectors: 8192 + sectorsize: '512' + size: 4.00 MB + support_discard: '0' + vendor: null + virtual: 1 + ram5: + holders: [] + host: '' + links: + ids: [] + labels: [] + masters: [] + uuids: [] + model: null + partitions: {} + removable: '0' + rotational: '0' + sas_address: null + sas_device_handle: null + scheduler_mode: '' + sectors: 8192 + sectorsize: '512' + size: 4.00 MB + support_discard: '0' + vendor: null + virtual: 1 + ram6: + holders: [] + host: '' + links: + ids: [] + labels: [] + masters: [] + uuids: [] + model: null + partitions: {} + removable: '0' + rotational: '0' + sas_address: null + sas_device_handle: null + scheduler_mode: '' + sectors: 8192 + sectorsize: '512' + size: 4.00 MB + support_discard: '0' + vendor: null + virtual: 1 + ram7: + holders: [] + host: '' + links: + ids: [] + labels: [] + masters: [] + uuids: [] + model: null + partitions: {} + removable: '0' + rotational: '0' + sas_address: null + sas_device_handle: null + scheduler_mode: '' + sectors: 8192 + sectorsize: '512' + size: 4.00 MB + support_discard: '0' + vendor: null + virtual: 1 + ram8: + holders: [] + host: '' + links: + ids: [] + labels: [] + masters: [] + uuids: [] + model: null + partitions: {} + removable: '0' + rotational: '0' + sas_address: null + sas_device_handle: null + scheduler_mode: '' + sectors: 8192 + sectorsize: '512' + size: 4.00 MB + support_discard: '0' + vendor: null + virtual: 1 + ram9: + holders: [] + host: '' + links: + ids: [] + labels: [] + masters: [] + uuids: [] + model: null + partitions: {} + removable: '0' + rotational: '0' + sas_address: null + sas_device_handle: null + scheduler_mode: '' + sectors: 8192 + sectorsize: '512' + size: 4.00 MB + support_discard: '0' + vendor: null + virtual: 1 +ansible_distribution: Debian +ansible_distribution_file_parsed: true +ansible_distribution_file_path: /etc/os-release +ansible_distribution_file_variety: Debian +ansible_distribution_major_version: '11' +ansible_distribution_minor_version: '11' +ansible_distribution_release: bullseye +ansible_distribution_version: '11' +ansible_dns: + nameservers: + - 10.50.0.3 +ansible_docker0: + active: false + device: docker0 + features: + esp_hw_offload: off [fixed] + esp_tx_csum_hw_offload: off [fixed] + fcoe_mtu: off [fixed] + generic_receive_offload: 'on' + generic_segmentation_offload: 'on' + highdma: 'on' + hsr_dup_offload: off [fixed] + hsr_fwd_offload: off [fixed] + hsr_tag_ins_offload: off [fixed] + hsr_tag_rm_offload: off [fixed] + hw_tc_offload: off [fixed] + l2_fwd_offload: off [fixed] + large_receive_offload: off [fixed] + loopback: off [fixed] + macsec_hw_offload: off [fixed] + netns_local: on [fixed] + ntuple_filters: off [fixed] + receive_hashing: off [fixed] + rx_all: off [fixed] + rx_checksumming: off [fixed] + rx_fcs: off [fixed] + rx_gro_hw: off [fixed] + rx_gro_list: 'off' + rx_udp_gro_forwarding: 'off' + rx_udp_tunnel_port_offload: off [fixed] + rx_vlan_filter: off [fixed] + rx_vlan_offload: off [fixed] + rx_vlan_stag_filter: off [fixed] + rx_vlan_stag_hw_parse: off [fixed] + scatter_gather: 'on' + tcp_segmentation_offload: 'on' + tls_hw_record: off [fixed] + tls_hw_rx_offload: off [fixed] + tls_hw_tx_offload: off [fixed] + tx_checksum_fcoe_crc: off [fixed] + tx_checksum_ip_generic: 'on' + tx_checksum_ipv4: off [fixed] + tx_checksum_ipv6: off [fixed] + tx_checksum_sctp: off [fixed] + tx_checksumming: 'on' + tx_esp_segmentation: 'on' + tx_fcoe_segmentation: 'on' + tx_gre_csum_segmentation: 'on' + tx_gre_segmentation: 'on' + tx_gso_list: 'on' + tx_gso_partial: 'on' + tx_gso_robust: 'on' + tx_ipxip4_segmentation: 'on' + tx_ipxip6_segmentation: 'on' + tx_lockless: on [fixed] + tx_nocache_copy: 'off' + tx_scatter_gather: 'on' + tx_scatter_gather_fraglist: 'on' + tx_sctp_segmentation: 'on' + tx_tcp6_segmentation: 'on' + tx_tcp_ecn_segmentation: 'on' + tx_tcp_mangleid_segmentation: 'on' + tx_tcp_segmentation: 'on' + tx_tunnel_remcsum_segmentation: 'on' + tx_udp_segmentation: 'on' + tx_udp_tnl_csum_segmentation: 'on' + tx_udp_tnl_segmentation: 'on' + tx_vlan_offload: 'on' + tx_vlan_stag_hw_insert: 'on' + vlan_challenged: off [fixed] + hw_timestamp_filters: [] + id: 8000.32abf15e26b5 + interfaces: [] + ipv4: + address: 172.17.0.1 + broadcast: 172.17.255.255 + netmask: 255.255.0.0 + network: 172.17.0.0 + prefix: '16' + ipv6: + - address: fe80::30ab:f1ff:fe5e:26b5 + prefix: '64' + scope: link + macaddress: 32:ab:f1:5e:26:b5 + mtu: 1500 + promisc: false + speed: -1 + stp: false + timestamping: [] + type: bridge +ansible_domain: '' +ansible_effective_group_id: 1000 +ansible_effective_user_id: 1000 +ansible_env: + DBUS_SESSION_BUS_ADDRESS: unix:path=/run/user/1000/bus + HOME: /home/jonnybravo + LANG: de_DE.UTF-8 + LOGNAME: jonnybravo + MOTD_SHOWN: pam + OLDPWD: /home/jonnybravo + PATH: /usr/local/bin:/usr/bin:/bin:/usr/games + PWD: /home/jonnybravo + RCLONE_CONFIG: /home/jonnybravo/.rclone/rclone.conf + SHELL: /bin/zsh + SHLVL: '0' + SSH_CLIENT: 192.168.50.177 44516 22 + SSH_CONNECTION: 192.168.50.177 44516 192.168.50.150 22 + SSH_TTY: /dev/pts/1 + TERM: tmux-256color + USER: jonnybravo + XDG_RUNTIME_DIR: /run/user/1000 + XDG_SESSION_CLASS: user + XDG_SESSION_ID: '4553' + XDG_SESSION_TYPE: tty + _: /bin/sh +ansible_eth0: + active: false + device: eth0 + features: + esp_hw_offload: off [fixed] + esp_tx_csum_hw_offload: off [fixed] + fcoe_mtu: off [fixed] + generic_receive_offload: 'on' + generic_segmentation_offload: 'on' + highdma: 'on' + hsr_dup_offload: off [fixed] + hsr_fwd_offload: off [fixed] + hsr_tag_ins_offload: off [fixed] + hsr_tag_rm_offload: off [fixed] + hw_tc_offload: off [fixed] + l2_fwd_offload: off [fixed] + large_receive_offload: off [fixed] + loopback: off [fixed] + macsec_hw_offload: off [fixed] + netns_local: off [fixed] + ntuple_filters: off [fixed] + receive_hashing: off [fixed] + rx_all: off [fixed] + rx_checksumming: 'on' + rx_fcs: off [fixed] + rx_gro_hw: off [fixed] + rx_gro_list: 'off' + rx_udp_gro_forwarding: 'off' + rx_udp_tunnel_port_offload: off [fixed] + rx_vlan_filter: off [fixed] + rx_vlan_offload: off [fixed] + rx_vlan_stag_filter: off [fixed] + rx_vlan_stag_hw_parse: off [fixed] + scatter_gather: 'on' + tcp_segmentation_offload: 'off' + tls_hw_record: off [fixed] + tls_hw_rx_offload: off [fixed] + tls_hw_tx_offload: off [fixed] + tx_checksum_fcoe_crc: off [fixed] + tx_checksum_ip_generic: 'on' + tx_checksum_ipv4: off [fixed] + tx_checksum_ipv6: off [fixed] + tx_checksum_sctp: off [fixed] + tx_checksumming: 'on' + tx_esp_segmentation: off [fixed] + tx_fcoe_segmentation: off [fixed] + tx_gre_csum_segmentation: off [fixed] + tx_gre_segmentation: off [fixed] + tx_gso_list: off [fixed] + tx_gso_partial: off [fixed] + tx_gso_robust: off [fixed] + tx_ipxip4_segmentation: off [fixed] + tx_ipxip6_segmentation: off [fixed] + tx_lockless: off [fixed] + tx_nocache_copy: 'off' + tx_scatter_gather: 'on' + tx_scatter_gather_fraglist: off [fixed] + tx_sctp_segmentation: off [fixed] + tx_tcp6_segmentation: off [fixed] + tx_tcp_ecn_segmentation: off [fixed] + tx_tcp_mangleid_segmentation: off [fixed] + tx_tcp_segmentation: off [fixed] + tx_tunnel_remcsum_segmentation: off [fixed] + tx_udp_segmentation: off [fixed] + tx_udp_tnl_csum_segmentation: off [fixed] + tx_udp_tnl_segmentation: off [fixed] + tx_vlan_offload: off [fixed] + tx_vlan_stag_hw_insert: off [fixed] + vlan_challenged: off [fixed] + hw_timestamp_filters: [] + macaddress: d8:3a:dd:18:8c:63 + mtu: 1500 + pciid: fd580000.ethernet + promisc: false + speed: -1 + timestamping: [] + type: ether +ansible_fibre_channel_wwn: [] +ansible_fips: false +ansible_form_factor: '' +ansible_fqdn: ras-dan-01 +ansible_hostname: ras-dan-01 +ansible_hostnqn: '' +ansible_interfaces: +- docker0 +- veth7027ebb +- veth9549a2a +- lo +- veth2277be2 +- br-5bafd5795d0f +- veth286f3d4 +- wlan0 +- wg0 +- eth0 +- br-060a64b42914 +- br-8cd22c3dd142 +ansible_is_chroot: false +ansible_iscsi_iqn: '' +ansible_kernel: 6.1.21-v8+ +ansible_kernel_version: '#1642 SMP PREEMPT Mon Apr 3 17:24:16 BST 2023' +ansible_lo: + active: true + device: lo + features: + esp_hw_offload: off [fixed] + esp_tx_csum_hw_offload: off [fixed] + fcoe_mtu: off [fixed] + generic_receive_offload: 'on' + generic_segmentation_offload: 'on' + highdma: on [fixed] + hsr_dup_offload: off [fixed] + hsr_fwd_offload: off [fixed] + hsr_tag_ins_offload: off [fixed] + hsr_tag_rm_offload: off [fixed] + hw_tc_offload: off [fixed] + l2_fwd_offload: off [fixed] + large_receive_offload: off [fixed] + loopback: on [fixed] + macsec_hw_offload: off [fixed] + netns_local: on [fixed] + ntuple_filters: off [fixed] + receive_hashing: off [fixed] + rx_all: off [fixed] + rx_checksumming: on [fixed] + rx_fcs: off [fixed] + rx_gro_hw: off [fixed] + rx_gro_list: 'off' + rx_udp_gro_forwarding: 'off' + rx_udp_tunnel_port_offload: off [fixed] + rx_vlan_filter: off [fixed] + rx_vlan_offload: off [fixed] + rx_vlan_stag_filter: off [fixed] + rx_vlan_stag_hw_parse: off [fixed] + scatter_gather: 'on' + tcp_segmentation_offload: 'on' + tls_hw_record: off [fixed] + tls_hw_rx_offload: off [fixed] + tls_hw_tx_offload: off [fixed] + tx_checksum_fcoe_crc: off [fixed] + tx_checksum_ip_generic: on [fixed] + tx_checksum_ipv4: off [fixed] + tx_checksum_ipv6: off [fixed] + tx_checksum_sctp: on [fixed] + tx_checksumming: 'on' + tx_esp_segmentation: off [fixed] + tx_fcoe_segmentation: off [fixed] + tx_gre_csum_segmentation: off [fixed] + tx_gre_segmentation: off [fixed] + tx_gso_list: 'on' + tx_gso_partial: off [fixed] + tx_gso_robust: off [fixed] + tx_ipxip4_segmentation: off [fixed] + tx_ipxip6_segmentation: off [fixed] + tx_lockless: on [fixed] + tx_nocache_copy: off [fixed] + tx_scatter_gather: on [fixed] + tx_scatter_gather_fraglist: on [fixed] + tx_sctp_segmentation: 'on' + tx_tcp6_segmentation: 'on' + tx_tcp_ecn_segmentation: 'on' + tx_tcp_mangleid_segmentation: 'on' + tx_tcp_segmentation: 'on' + tx_tunnel_remcsum_segmentation: off [fixed] + tx_udp_segmentation: 'on' + tx_udp_tnl_csum_segmentation: off [fixed] + tx_udp_tnl_segmentation: off [fixed] + tx_vlan_offload: off [fixed] + tx_vlan_stag_hw_insert: off [fixed] + vlan_challenged: on [fixed] + hw_timestamp_filters: [] + ipv4: + address: 127.0.0.1 + broadcast: '' + netmask: 255.0.0.0 + network: 127.0.0.0 + prefix: '8' + ipv6: + - address: ::1 + prefix: '128' + scope: host + mtu: 65536 + promisc: false + timestamping: [] + type: loopback +ansible_loadavg: + 15m: 0.32 + 1m: 0.37 + 5m: 0.29 +ansible_local: {} +ansible_locally_reachable_ips: + ipv4: + - 10.50.0.3 + - 127.0.0.0/8 + - 127.0.0.1 + - 169.254.23.169 + - 169.254.35.235 + - 169.254.133.112 + - 169.254.172.16 + - 172.17.0.1 + - 172.18.0.1 + - 172.19.0.1 + - 172.20.0.1 + - 192.168.50.150 + ipv6: + - ::1 + - 2003:f7:d728:94be:eb0c:cd4a:afa5:d887 + - fe80::2025:49fc:a242:da2c + - fe80::30ab:f1ff:fe5e:26b5 + - fe80::445c:eff:fe5d:6764 + - fe80::4f4d:6179:89b9:51cf + - fe80::ac83:1ff:fe8e:deee + - fe80::afca:a5e8:8235:32d2 + - fe80::b194:fab8:769c:a673 + - fe80::c0c5:c5ff:fedd:56b3 + - fe80::fc1c:da35:d596:a553 +ansible_lsb: + codename: bullseye + description: Debian GNU/Linux 11 (bullseye) + id: Debian + major_release: '11' + release: '11' +ansible_lvm: N/A +ansible_machine: aarch64 +ansible_machine_id: 92056c90540a47d595afa99034c35d5c +ansible_memfree_mb: 133 +ansible_memory_mb: + nocache: + free: 6123 + used: 1689 + real: + free: 133 + total: 7812 + used: 7679 + swap: + cached: 0 + free: 99 + total: 99 + used: 0 +ansible_memtotal_mb: 7812 +ansible_mounts: +- block_available: 53556073 + block_size: 4096 + block_total: 61437289 + block_used: 7881216 + device: /dev/root + dump: 0 + fstype: ext4 + inode_available: 14917878 + inode_total: 15209520 + inode_used: 291642 + mount: / + options: rw,noatime + passno: 0 + size_available: 219365675008 + size_total: 251647135744 + uuid: N/A +- block_available: 114867 + block_size: 2048 + block_total: 130554 + block_used: 15687 + device: /dev/mmcblk0p1 + dump: 0 + fstype: vfat + inode_available: 0 + inode_total: 0 + inode_used: 0 + mount: /boot + options: rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,errors=remount-ro + passno: 0 + size_available: 235247616 + size_total: 267374592 + uuid: 0B22-2966 +ansible_nodename: ras-dan-01 +ansible_os_family: Debian +ansible_pkg_mgr: apt +ansible_proc_cmdline: + 8250.nr_uarts: '0' + coherent_pool: 1M + console: + - ttyS0,115200 + - tty1 + fsck.repair: 'yes' + root: PARTUUID=57766a69-02 + rootfstype: ext4 + rootwait: true + smsc95xx.macaddr: D8:3A:DD:18:8C:63 + snd_bcm2835.enable_hdmi: + - '1' + - '0' + snd_bcm2835.enable_headphones: + - '0' + - '1' + vc_mem.mem_base: '0x3ec00000' + vc_mem.mem_size: '0x40000000' +ansible_processor: +- '0' +- '1' +- '2' +- '3' +ansible_processor_cores: 1 +ansible_processor_count: 4 +ansible_processor_nproc: 4 +ansible_processor_threads_per_core: 1 +ansible_processor_vcpus: 4 +ansible_product_name: '' +ansible_product_serial: '' +ansible_product_uuid: '' +ansible_product_version: '' +ansible_python: + executable: /usr/bin/python3 + has_sslcontext: true + type: cpython + version: + major: 3 + micro: 2 + minor: 9 + releaselevel: final + serial: 0 + version_info: + - 3 + - 9 + - 2 + - final + - 0 +ansible_python_version: 3.9.2 +ansible_real_group_id: 1000 +ansible_real_user_id: 1000 +ansible_selinux: + status: disabled +ansible_selinux_python_present: true +ansible_service_mgr: systemd +ansible_ssh_host_key_dsa_public: AAAAB3NzaC1kc3MAAACBAO8iBPiEcGNTVvCaxlOIGE9nk6J9zub+bVTs47rtMIzMk/dYouHBgO6cRMjQnD7J9yDvU/HXlbBOnrIaPpJsuqAz+4/B5QrJSecRBCgNMvIDuowWARZBtfEb5RjLdXXzDinAL7Qcjp2aiQijuarFfcrm7NcTQLpkLTD++EOFlVh7AAAAFQCXeyFUboiUYlVKFqebhN+7KE5ZgwAAAIAPf3m1n9a9psyMd3hppQCQz/UAqfn8VBxYTbLAS9ruIx6G6QvEl5LHgjjrTc4Zsr8I0dDF51T5+GmxeOKtvBtZ4GUT/yhyiDqs8oGm5I4evtVoXWeUc7XUqXM2qFUV7aQUPPQBbQyf2uJON20dgZ3x+ivys/Wihl89LbNdjM674gAAAIBrtB6Wa+SrMQZarI4+HvZBDkU7AHzLNtpxgJeloaKiuUB8a0DQfk3RM7MF5Wk1hjW+7y5pT4eDdDzPDxUlKNcqVN/wo//5iPbkwpNi9IVbuP7MEd3nUHtH5XEWKjqfhPuzwPhDZtJYVmgD6HTGhAXcE+NbWOCs3J1UA7VrDiBOFg== +ansible_ssh_host_key_dsa_public_keytype: ssh-dss +ansible_ssh_host_key_ecdsa_public: AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBIHPOQr419pwRVZuqW2ro9PDnoIGuGSZkeB5LPOyWnSqih8VWPfOOYgfpkdk1DrxSLomr3t+H42zcYM42iJBvC8= +ansible_ssh_host_key_ecdsa_public_keytype: ecdsa-sha2-nistp256 +ansible_ssh_host_key_ed25519_public: AAAAC3NzaC1lZDI1NTE5AAAAIMbRbpohDG7ZthVtr/OGlUdwVeTHISCqQXGyfKy3myG6 +ansible_ssh_host_key_ed25519_public_keytype: ssh-ed25519 +ansible_ssh_host_key_rsa_public: AAAAB3NzaC1yc2EAAAADAQABAAABgQC+KRc05KerEX0jaLwmuLW798CKI/gk+zMPnq6ahG/kcO8ePD3Im8JUnswunFjO4KnV8u/P0RrX+drVr3aSqqtSJzM+vZ1on+BLmgOdeILqjr17dUjDOq0lI+iudY3zE4iqpupKoTisxWQ5UvgYmsJFv/OQe0Nsj53mSc4oELp6BYxE62MqvaWnJareiRb5wOvYKv2yUNe1r1fZzb9GdpCCKlyizqDn4qHhKsNsR+dNNDhL/JxruH8VyRFWKbobSkbQ7u55Z/zkaWJZrdpP4I6tiusTAYkauNEgD2Jdc6+JM5DLyXRc+4ba/bevdV/IId/pzWrrQps5DTZno8KMaE9gnhpE0z5gm+4h8mALq+/cyiBHwMdUeyCTM7mwLwvZwgCzOQjhs7sHYN7yiuxYFv3acY1STlZbKpQCpiBNE5AVa04+EptAnIKD5EavE5hTEkZ6SoMlcc/vgk2NBapvK/ZKGICvcggUikrREgmyuGZeR/1hGc6EOA6EZ+b5e3iVEPc= +ansible_ssh_host_key_rsa_public_keytype: ssh-rsa +ansible_swapfree_mb: 99 +ansible_swaptotal_mb: 99 +ansible_system: Linux +ansible_system_capabilities: +- '' +ansible_system_capabilities_enforced: 'True' +ansible_system_vendor: '' +ansible_systemd: + features: +PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP + +GCRYPT +GNUTLS +ACL +XZ +LZ4 +ZSTD +SECCOMP +BLKID +ELFUTILS +KMOD +IDN2 -IDN + +PCRE2 default-hierarchy=unified + version: 247 +ansible_uptime_seconds: 5104811 +ansible_user_dir: /home/jonnybravo +ansible_user_gecos: ',,,' +ansible_user_gid: 1000 +ansible_user_id: jonnybravo +ansible_user_shell: /bin/zsh +ansible_user_uid: 1000 +ansible_userspace_bits: '64' +ansible_veth2277be2: + active: true + device: veth2277be2 + features: + esp_hw_offload: off [fixed] + esp_tx_csum_hw_offload: off [fixed] + fcoe_mtu: off [fixed] + generic_receive_offload: 'off' + generic_segmentation_offload: 'on' + highdma: 'on' + hsr_dup_offload: off [fixed] + hsr_fwd_offload: off [fixed] + hsr_tag_ins_offload: off [fixed] + hsr_tag_rm_offload: off [fixed] + hw_tc_offload: off [fixed] + l2_fwd_offload: off [fixed] + large_receive_offload: off [fixed] + loopback: off [fixed] + macsec_hw_offload: off [fixed] + netns_local: off [fixed] + ntuple_filters: off [fixed] + receive_hashing: off [fixed] + rx_all: off [fixed] + rx_checksumming: 'on' + rx_fcs: off [fixed] + rx_gro_hw: off [fixed] + rx_gro_list: 'off' + rx_udp_gro_forwarding: 'off' + rx_udp_tunnel_port_offload: off [fixed] + rx_vlan_filter: off [fixed] + rx_vlan_offload: 'on' + rx_vlan_stag_filter: off [fixed] + rx_vlan_stag_hw_parse: 'on' + scatter_gather: 'on' + tcp_segmentation_offload: 'on' + tls_hw_record: off [fixed] + tls_hw_rx_offload: off [fixed] + tls_hw_tx_offload: off [fixed] + tx_checksum_fcoe_crc: off [fixed] + tx_checksum_ip_generic: 'on' + tx_checksum_ipv4: off [fixed] + tx_checksum_ipv6: off [fixed] + tx_checksum_sctp: 'on' + tx_checksumming: 'on' + tx_esp_segmentation: off [fixed] + tx_fcoe_segmentation: off [fixed] + tx_gre_csum_segmentation: 'on' + tx_gre_segmentation: 'on' + tx_gso_list: 'on' + tx_gso_partial: off [fixed] + tx_gso_robust: off [fixed] + tx_ipxip4_segmentation: 'on' + tx_ipxip6_segmentation: 'on' + tx_lockless: on [fixed] + tx_nocache_copy: 'off' + tx_scatter_gather: 'on' + tx_scatter_gather_fraglist: 'on' + tx_sctp_segmentation: 'on' + tx_tcp6_segmentation: 'on' + tx_tcp_ecn_segmentation: 'on' + tx_tcp_mangleid_segmentation: 'on' + tx_tcp_segmentation: 'on' + tx_tunnel_remcsum_segmentation: off [fixed] + tx_udp_segmentation: 'on' + tx_udp_tnl_csum_segmentation: 'on' + tx_udp_tnl_segmentation: 'on' + tx_vlan_offload: 'on' + tx_vlan_stag_hw_insert: 'on' + vlan_challenged: off [fixed] + hw_timestamp_filters: [] + ipv4: + address: 169.254.23.169 + broadcast: 169.254.255.255 + netmask: 255.255.0.0 + network: 169.254.0.0 + prefix: '16' + ipv6: + - address: fe80::4f4d:6179:89b9:51cf + prefix: '64' + scope: link + macaddress: 86:75:4c:1f:6f:01 + mtu: 1500 + promisc: true + speed: 10000 + timestamping: [] + type: ether +ansible_veth286f3d4: + active: true + device: veth286f3d4 + features: + esp_hw_offload: off [fixed] + esp_tx_csum_hw_offload: off [fixed] + fcoe_mtu: off [fixed] + generic_receive_offload: 'off' + generic_segmentation_offload: 'on' + highdma: 'on' + hsr_dup_offload: off [fixed] + hsr_fwd_offload: off [fixed] + hsr_tag_ins_offload: off [fixed] + hsr_tag_rm_offload: off [fixed] + hw_tc_offload: off [fixed] + l2_fwd_offload: off [fixed] + large_receive_offload: off [fixed] + loopback: off [fixed] + macsec_hw_offload: off [fixed] + netns_local: off [fixed] + ntuple_filters: off [fixed] + receive_hashing: off [fixed] + rx_all: off [fixed] + rx_checksumming: 'on' + rx_fcs: off [fixed] + rx_gro_hw: off [fixed] + rx_gro_list: 'off' + rx_udp_gro_forwarding: 'off' + rx_udp_tunnel_port_offload: off [fixed] + rx_vlan_filter: off [fixed] + rx_vlan_offload: 'on' + rx_vlan_stag_filter: off [fixed] + rx_vlan_stag_hw_parse: 'on' + scatter_gather: 'on' + tcp_segmentation_offload: 'on' + tls_hw_record: off [fixed] + tls_hw_rx_offload: off [fixed] + tls_hw_tx_offload: off [fixed] + tx_checksum_fcoe_crc: off [fixed] + tx_checksum_ip_generic: 'on' + tx_checksum_ipv4: off [fixed] + tx_checksum_ipv6: off [fixed] + tx_checksum_sctp: 'on' + tx_checksumming: 'on' + tx_esp_segmentation: off [fixed] + tx_fcoe_segmentation: off [fixed] + tx_gre_csum_segmentation: 'on' + tx_gre_segmentation: 'on' + tx_gso_list: 'on' + tx_gso_partial: off [fixed] + tx_gso_robust: off [fixed] + tx_ipxip4_segmentation: 'on' + tx_ipxip6_segmentation: 'on' + tx_lockless: on [fixed] + tx_nocache_copy: 'off' + tx_scatter_gather: 'on' + tx_scatter_gather_fraglist: 'on' + tx_sctp_segmentation: 'on' + tx_tcp6_segmentation: 'on' + tx_tcp_ecn_segmentation: 'on' + tx_tcp_mangleid_segmentation: 'on' + tx_tcp_segmentation: 'on' + tx_tunnel_remcsum_segmentation: off [fixed] + tx_udp_segmentation: 'on' + tx_udp_tnl_csum_segmentation: 'on' + tx_udp_tnl_segmentation: 'on' + tx_vlan_offload: 'on' + tx_vlan_stag_hw_insert: 'on' + vlan_challenged: off [fixed] + hw_timestamp_filters: [] + ipv4: + address: 169.254.133.112 + broadcast: 169.254.255.255 + netmask: 255.255.0.0 + network: 169.254.0.0 + prefix: '16' + ipv6: + - address: fe80::2025:49fc:a242:da2c + prefix: '64' + scope: link + macaddress: 8a:05:73:7f:82:19 + mtu: 1500 + promisc: true + speed: 10000 + timestamping: [] + type: ether +ansible_veth7027ebb: + active: true + device: veth7027ebb + features: + esp_hw_offload: off [fixed] + esp_tx_csum_hw_offload: off [fixed] + fcoe_mtu: off [fixed] + generic_receive_offload: 'off' + generic_segmentation_offload: 'on' + highdma: 'on' + hsr_dup_offload: off [fixed] + hsr_fwd_offload: off [fixed] + hsr_tag_ins_offload: off [fixed] + hsr_tag_rm_offload: off [fixed] + hw_tc_offload: off [fixed] + l2_fwd_offload: off [fixed] + large_receive_offload: off [fixed] + loopback: off [fixed] + macsec_hw_offload: off [fixed] + netns_local: off [fixed] + ntuple_filters: off [fixed] + receive_hashing: off [fixed] + rx_all: off [fixed] + rx_checksumming: 'on' + rx_fcs: off [fixed] + rx_gro_hw: off [fixed] + rx_gro_list: 'off' + rx_udp_gro_forwarding: 'off' + rx_udp_tunnel_port_offload: off [fixed] + rx_vlan_filter: off [fixed] + rx_vlan_offload: 'on' + rx_vlan_stag_filter: off [fixed] + rx_vlan_stag_hw_parse: 'on' + scatter_gather: 'on' + tcp_segmentation_offload: 'on' + tls_hw_record: off [fixed] + tls_hw_rx_offload: off [fixed] + tls_hw_tx_offload: off [fixed] + tx_checksum_fcoe_crc: off [fixed] + tx_checksum_ip_generic: 'on' + tx_checksum_ipv4: off [fixed] + tx_checksum_ipv6: off [fixed] + tx_checksum_sctp: 'on' + tx_checksumming: 'on' + tx_esp_segmentation: off [fixed] + tx_fcoe_segmentation: off [fixed] + tx_gre_csum_segmentation: 'on' + tx_gre_segmentation: 'on' + tx_gso_list: 'on' + tx_gso_partial: off [fixed] + tx_gso_robust: off [fixed] + tx_ipxip4_segmentation: 'on' + tx_ipxip6_segmentation: 'on' + tx_lockless: on [fixed] + tx_nocache_copy: 'off' + tx_scatter_gather: 'on' + tx_scatter_gather_fraglist: 'on' + tx_sctp_segmentation: 'on' + tx_tcp6_segmentation: 'on' + tx_tcp_ecn_segmentation: 'on' + tx_tcp_mangleid_segmentation: 'on' + tx_tcp_segmentation: 'on' + tx_tunnel_remcsum_segmentation: off [fixed] + tx_udp_segmentation: 'on' + tx_udp_tnl_csum_segmentation: 'on' + tx_udp_tnl_segmentation: 'on' + tx_vlan_offload: 'on' + tx_vlan_stag_hw_insert: 'on' + vlan_challenged: off [fixed] + hw_timestamp_filters: [] + ipv4: + address: 169.254.35.235 + broadcast: 169.254.255.255 + netmask: 255.255.0.0 + network: 169.254.0.0 + prefix: '16' + ipv6: + - address: fe80::b194:fab8:769c:a673 + prefix: '64' + scope: link + macaddress: 92:47:76:93:a1:17 + mtu: 1500 + promisc: true + speed: 10000 + timestamping: [] + type: ether +ansible_veth9549a2a: + active: true + device: veth9549a2a + features: + esp_hw_offload: off [fixed] + esp_tx_csum_hw_offload: off [fixed] + fcoe_mtu: off [fixed] + generic_receive_offload: 'off' + generic_segmentation_offload: 'on' + highdma: 'on' + hsr_dup_offload: off [fixed] + hsr_fwd_offload: off [fixed] + hsr_tag_ins_offload: off [fixed] + hsr_tag_rm_offload: off [fixed] + hw_tc_offload: off [fixed] + l2_fwd_offload: off [fixed] + large_receive_offload: off [fixed] + loopback: off [fixed] + macsec_hw_offload: off [fixed] + netns_local: off [fixed] + ntuple_filters: off [fixed] + receive_hashing: off [fixed] + rx_all: off [fixed] + rx_checksumming: 'on' + rx_fcs: off [fixed] + rx_gro_hw: off [fixed] + rx_gro_list: 'off' + rx_udp_gro_forwarding: 'off' + rx_udp_tunnel_port_offload: off [fixed] + rx_vlan_filter: off [fixed] + rx_vlan_offload: 'on' + rx_vlan_stag_filter: off [fixed] + rx_vlan_stag_hw_parse: 'on' + scatter_gather: 'on' + tcp_segmentation_offload: 'on' + tls_hw_record: off [fixed] + tls_hw_rx_offload: off [fixed] + tls_hw_tx_offload: off [fixed] + tx_checksum_fcoe_crc: off [fixed] + tx_checksum_ip_generic: 'on' + tx_checksum_ipv4: off [fixed] + tx_checksum_ipv6: off [fixed] + tx_checksum_sctp: 'on' + tx_checksumming: 'on' + tx_esp_segmentation: off [fixed] + tx_fcoe_segmentation: off [fixed] + tx_gre_csum_segmentation: 'on' + tx_gre_segmentation: 'on' + tx_gso_list: 'on' + tx_gso_partial: off [fixed] + tx_gso_robust: off [fixed] + tx_ipxip4_segmentation: 'on' + tx_ipxip6_segmentation: 'on' + tx_lockless: on [fixed] + tx_nocache_copy: 'off' + tx_scatter_gather: 'on' + tx_scatter_gather_fraglist: 'on' + tx_sctp_segmentation: 'on' + tx_tcp6_segmentation: 'on' + tx_tcp_ecn_segmentation: 'on' + tx_tcp_mangleid_segmentation: 'on' + tx_tcp_segmentation: 'on' + tx_tunnel_remcsum_segmentation: off [fixed] + tx_udp_segmentation: 'on' + tx_udp_tnl_csum_segmentation: 'on' + tx_udp_tnl_segmentation: 'on' + tx_vlan_offload: 'on' + tx_vlan_stag_hw_insert: 'on' + vlan_challenged: off [fixed] + hw_timestamp_filters: [] + ipv4: + address: 169.254.172.16 + broadcast: 169.254.255.255 + netmask: 255.255.0.0 + network: 169.254.0.0 + prefix: '16' + ipv6: + - address: fe80::fc1c:da35:d596:a553 + prefix: '64' + scope: link + macaddress: 0e:77:16:a3:5e:a2 + mtu: 1500 + promisc: true + speed: 10000 + timestamping: [] + type: ether +ansible_virtualization_role: host +ansible_virtualization_tech_guest: [] +ansible_virtualization_tech_host: +- kvm +ansible_virtualization_type: kvm +ansible_wg0: + active: true + device: wg0 + features: + esp_hw_offload: off [fixed] + esp_tx_csum_hw_offload: off [fixed] + fcoe_mtu: off [fixed] + generic_receive_offload: 'on' + generic_segmentation_offload: 'on' + highdma: 'on' + hsr_dup_offload: off [fixed] + hsr_fwd_offload: off [fixed] + hsr_tag_ins_offload: off [fixed] + hsr_tag_rm_offload: off [fixed] + hw_tc_offload: off [fixed] + l2_fwd_offload: off [fixed] + large_receive_offload: off [fixed] + loopback: off [fixed] + macsec_hw_offload: off [fixed] + netns_local: off [fixed] + ntuple_filters: off [fixed] + receive_hashing: off [fixed] + rx_all: off [fixed] + rx_checksumming: 'on' + rx_fcs: off [fixed] + rx_gro_hw: off [fixed] + rx_gro_list: 'off' + rx_udp_gro_forwarding: 'off' + rx_udp_tunnel_port_offload: off [fixed] + rx_vlan_filter: off [fixed] + rx_vlan_offload: off [fixed] + rx_vlan_stag_filter: off [fixed] + rx_vlan_stag_hw_parse: off [fixed] + scatter_gather: 'on' + tcp_segmentation_offload: 'on' + tls_hw_record: off [fixed] + tls_hw_rx_offload: off [fixed] + tls_hw_tx_offload: off [fixed] + tx_checksum_fcoe_crc: off [fixed] + tx_checksum_ip_generic: 'on' + tx_checksum_ipv4: off [fixed] + tx_checksum_ipv6: off [fixed] + tx_checksum_sctp: off [fixed] + tx_checksumming: 'on' + tx_esp_segmentation: off [fixed] + tx_fcoe_segmentation: off [fixed] + tx_gre_csum_segmentation: off [fixed] + tx_gre_segmentation: off [fixed] + tx_gso_list: 'on' + tx_gso_partial: off [fixed] + tx_gso_robust: off [fixed] + tx_ipxip4_segmentation: off [fixed] + tx_ipxip6_segmentation: off [fixed] + tx_lockless: on [fixed] + tx_nocache_copy: 'off' + tx_scatter_gather: 'on' + tx_scatter_gather_fraglist: off [fixed] + tx_sctp_segmentation: 'on' + tx_tcp6_segmentation: 'on' + tx_tcp_ecn_segmentation: 'on' + tx_tcp_mangleid_segmentation: 'on' + tx_tcp_segmentation: 'on' + tx_tunnel_remcsum_segmentation: off [fixed] + tx_udp_segmentation: 'on' + tx_udp_tnl_csum_segmentation: off [fixed] + tx_udp_tnl_segmentation: off [fixed] + tx_vlan_offload: off [fixed] + tx_vlan_stag_hw_insert: off [fixed] + vlan_challenged: off [fixed] + hw_timestamp_filters: [] + ipv4: + address: 10.50.0.3 + broadcast: '' + netmask: 255.255.255.0 + network: 10.50.0.0 + prefix: '24' + mtu: 1420 + promisc: false + timestamping: [] + type: tunnel +ansible_wlan0: + active: true + device: wlan0 + features: + esp_hw_offload: off [fixed] + esp_tx_csum_hw_offload: off [fixed] + fcoe_mtu: off [fixed] + generic_receive_offload: 'on' + generic_segmentation_offload: off [requested on] + highdma: off [fixed] + hsr_dup_offload: off [fixed] + hsr_fwd_offload: off [fixed] + hsr_tag_ins_offload: off [fixed] + hsr_tag_rm_offload: off [fixed] + hw_tc_offload: off [fixed] + l2_fwd_offload: off [fixed] + large_receive_offload: off [fixed] + loopback: off [fixed] + macsec_hw_offload: off [fixed] + netns_local: on [fixed] + ntuple_filters: off [fixed] + receive_hashing: off [fixed] + rx_all: off [fixed] + rx_checksumming: off [fixed] + rx_fcs: off [fixed] + rx_gro_hw: off [fixed] + rx_gro_list: 'off' + rx_udp_gro_forwarding: 'off' + rx_udp_tunnel_port_offload: off [fixed] + rx_vlan_filter: off [fixed] + rx_vlan_offload: off [fixed] + rx_vlan_stag_filter: off [fixed] + rx_vlan_stag_hw_parse: off [fixed] + scatter_gather: 'off' + tcp_segmentation_offload: 'off' + tls_hw_record: off [fixed] + tls_hw_rx_offload: off [fixed] + tls_hw_tx_offload: off [fixed] + tx_checksum_fcoe_crc: off [fixed] + tx_checksum_ip_generic: off [fixed] + tx_checksum_ipv4: off [fixed] + tx_checksum_ipv6: off [fixed] + tx_checksum_sctp: off [fixed] + tx_checksumming: 'off' + tx_esp_segmentation: off [fixed] + tx_fcoe_segmentation: off [fixed] + tx_gre_csum_segmentation: off [fixed] + tx_gre_segmentation: off [fixed] + tx_gso_list: off [fixed] + tx_gso_partial: off [fixed] + tx_gso_robust: off [fixed] + tx_ipxip4_segmentation: off [fixed] + tx_ipxip6_segmentation: off [fixed] + tx_lockless: off [fixed] + tx_nocache_copy: 'off' + tx_scatter_gather: off [fixed] + tx_scatter_gather_fraglist: off [fixed] + tx_sctp_segmentation: off [fixed] + tx_tcp6_segmentation: off [fixed] + tx_tcp_ecn_segmentation: off [fixed] + tx_tcp_mangleid_segmentation: off [fixed] + tx_tcp_segmentation: off [fixed] + tx_tunnel_remcsum_segmentation: off [fixed] + tx_udp_segmentation: off [fixed] + tx_udp_tnl_csum_segmentation: off [fixed] + tx_udp_tnl_segmentation: off [fixed] + tx_vlan_offload: off [fixed] + tx_vlan_stag_hw_insert: off [fixed] + vlan_challenged: off [fixed] + hw_timestamp_filters: [] + ipv4: + address: 192.168.50.150 + broadcast: 192.168.50.255 + netmask: 255.255.255.0 + network: 192.168.50.0 + prefix: '24' + ipv6: + - address: 2003:f7:d728:94be:eb0c:cd4a:afa5:d887 + prefix: '64' + scope: global + - address: fe80::afca:a5e8:8235:32d2 + prefix: '64' + scope: link + macaddress: d8:3a:dd:18:8c:64 + module: brcmfmac + mtu: 1500 + pciid: mmc1:0001:1 + promisc: false + timestamping: [] + type: ether +gather_subset: +- all +module_setup: true