diff --git a/LICENSE b/LICENSE index 2071b23..c6a4550 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) +Copyright (c) 2021 L3D Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: diff --git a/defaults/main.yml b/defaults/main.yml new file mode 100644 index 0000000..0d98029 --- /dev/null +++ b/defaults/main.yml @@ -0,0 +1,2 @@ +--- +win_base_init__pass_prefix: 'ansible/windows' diff --git a/tasks/main.yml b/tasks/main.yml new file mode 100644 index 0000000..7c2b27c --- /dev/null +++ b/tasks/main.yml @@ -0,0 +1,3 @@ +--- +- name: create OBS User + ansible.builtin.include_tasks: obs_user.yml diff --git a/tasks/obs_user.yml b/tasks/obs_user.yml new file mode 100644 index 0000000..d32060c --- /dev/null +++ b/tasks/obs_user.yml @@ -0,0 +1,14 @@ +--- +- name: create ansible User + ansible.windows.win_user: + name: 'obs' + state: present + password: "{{ lookup('community.general.passwordstore', win_base_init__pass_prefix + '/' + inventory_hostname + '/login/obs create=true length=16 nosymbols=true') }}" + account_disabled: false + description: 'Account to run OBS at this WINDOWS host' + groups_action: 'add' + password_expired: false + password_never_expires: true + user_cannot_change_password: true + groups: + - 'Benutzer'