Skip to content

Commit

Permalink
delete default password of created user
Browse files Browse the repository at this point in the history
  • Loading branch information
gelocraft committed Dec 17, 2024
1 parent 1c3ae1c commit 4e0077e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ansible/playbook.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,15 @@
upgrade: safe
update_cache: true

- name: Create User
- name: "Create User {{ username }}"
ansible.builtin.user:
name: "{{ username }}"
groups: sudo
create_home: true

- name: "Delete default password of {{ username }}"
ansible.builtin.shell: "passwd --delete {{ username }}"

- name: Clone user dotfiles
ansible.builtin.git:
repo: "https://github.com/{{ dotfiles_repo }}"
Expand Down

0 comments on commit 4e0077e

Please sign in to comment.