From ee723247d90ee4689615263cd34a50a4a9e184ea Mon Sep 17 00:00:00 2001 From: Michael Grote Date: Sat, 28 Dec 2024 20:20:18 +0100 Subject: [PATCH] ff --- host_vars/irantu.mgrote.net.yml | 23 +++++++++++++++++++++++ playbooks/0_laptop.yml | 15 +++++++++++++++ 2 files changed, 38 insertions(+) diff --git a/host_vars/irantu.mgrote.net.yml b/host_vars/irantu.mgrote.net.yml index 0ad30b4e..9b2074b2 100644 --- a/host_vars/irantu.mgrote.net.yml +++ b/host_vars/irantu.mgrote.net.yml @@ -31,6 +31,29 @@ users: public_ssh_key: ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJcBwOjanQV6sFWaTetqpl20SVe3aRzGjKbsp7hKkDCE allow_sudo: true allow_passwordless_sudo: true + - username: docker-user + password: "{{ lookup('viczem.keepass.keepass', 'docker-user_linux_password_hash', 'password') }}" + update_password: always + groups: + - ssh + - sudo + - docker + state: present + allow_sudo: true + allow_passwordless_sudo: true + uid: "5000" + +### geerlingguy.pip +pip_package: python3-pip +pip_install_packages: + - name: docker # für munin-plugin docker_ + +### geerlingguy.docker +docker_users: + - mg + - docker-user +docker_install_compose: true +docker_add_repo: true ### oefenweb.ufw ufw_rules: diff --git a/playbooks/0_laptop.yml b/playbooks/0_laptop.yml index 513d1673..f328ab1a 100644 --- a/playbooks/0_laptop.yml +++ b/playbooks/0_laptop.yml @@ -25,3 +25,18 @@ - role: oefenweb.ufw tags: ufw become: true + - role: mgrote_pip_pre_tasks + tags: "pip_pre" + become: true + - role: geerlingguy.pip + tags: "pip" + become: true + - role: geerlingguy.docker + tags: "docker" + become: true + - role: gantsign.ctop + tags: "ctop" + become: true + - role: mgrote_docker_housekeeping + tags: "housekeeping" + become: true