diff --git a/roles/mgrote.create_users/README.md b/roles/mgrote.create_users/README.md deleted file mode 100644 index dc62efcd..00000000 --- a/roles/mgrote.create_users/README.md +++ /dev/null @@ -1,13 +0,0 @@ -## mgrote.create_users - -### Beschreibung -erstellt Nutzer. -### Funktioniert auf -- [x] Ubuntu (>=18.04) -- [x] Debian - -### Variablen + Defaults -##### Nutzer anlegen - create_user_name: 'mg' - create_user_password: 'hallowelt' - create_user_groups: 'sudo, ssh' diff --git a/roles/mgrote.create_users/defaults/main.yml b/roles/mgrote.create_users/defaults/main.yml deleted file mode 100644 index 9a6554de..00000000 --- a/roles/mgrote.create_users/defaults/main.yml +++ /dev/null @@ -1,4 +0,0 @@ ---- - create_user_name: 'mg' - create_user_password: 'hallowelt' - create_user_groups: 'sudo, ssh' diff --git a/roles/mgrote.create_users/handlers/main.yml b/roles/mgrote.create_users/handlers/main.yml deleted file mode 100644 index e69de29b..00000000 diff --git a/roles/mgrote.create_users/tasks/main.yml b/roles/mgrote.create_users/tasks/main.yml deleted file mode 100644 index 79b87d61..00000000 --- a/roles/mgrote.create_users/tasks/main.yml +++ /dev/null @@ -1,42 +0,0 @@ - - name: Erstelle Nutzer - become: yes - ansible.builtin.user: - name: "{{ create_user_name }}" - groups: "{{ create_user_groups }}" - state: present - shell: /bin/bash - password: "{{ create_user_password | password_hash('sha512') }}" - update_password: on_create -# no_log: true - - - - - name: touch ".sudo_as_admin_successful" - become: yes -# when: sudo_as_admin_successful_existiert.stat.exists == False - ansible.builtin.file: - path: /home/{{ create_user_name }}/.sudo_as_admin_successful - state: touch - access_time: preserve - modification_time: preserve -# no_log: true - # entfernt: - # To run a command as administrator (user "root"), use "sudo ". - # See "man sudo_root" for details. - # unter der motd, bevor man sich das erstmal mit sudo angemeldet hat - - - name: create .selected_editor - become: yes - ansible.builtin.template: - src: ".selected_editor" - dest: "/home/{{ create_user_name }}/.selected_editor" -# no_log: true - - # Validate the sudoers file before saving - - name: set sudo without password - become: yes - ansible.builtin.template: - src: sudoers - dest: /etc/sudoers.d/{{ create_user_name }} - validate: /usr/sbin/visudo -cf %s -# no_log: true diff --git a/roles/mgrote.create_users/templates/.selected_editor b/roles/mgrote.create_users/templates/.selected_editor deleted file mode 100644 index 46071ad8..00000000 --- a/roles/mgrote.create_users/templates/.selected_editor +++ /dev/null @@ -1,2 +0,0 @@ -{{ file_header | default () }} -SELECTED_EDITOR="/usr/bin/vim" diff --git a/roles/mgrote.create_users/templates/sudoers b/roles/mgrote.create_users/templates/sudoers deleted file mode 100644 index a7a98af4..00000000 --- a/roles/mgrote.create_users/templates/sudoers +++ /dev/null @@ -1 +0,0 @@ -%{{ create_user_name }} ALL=(ALL) NOPASSWD:ALL