Skip to content

Commit

Permalink
added var for .bashrc/.profile
Browse files Browse the repository at this point in the history
  • Loading branch information
andre-ebert-sva committed May 3, 2024
1 parent 1a7d40c commit 95c7237
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tasks/create-users.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,13 @@
- name: Setup user profiles
ansible.builtin.blockinfile:
block: "{{ item.profile }}"
dest: "{{ item.home | default('/home/' + item.username) }}/.profile"
dest: "{{ item.home | default('/home/' + item.username) }}/{{ profile_name }}"
owner: "{{ item.username }}"
group: "{{ item.group | default(item.username if users_create_per_user_group else users_group) }}"
mode: 0644
create: true
marker_begin: "<!-- BEGIN USERS SETUP -->"
marker_end: "<!-- BEGIN USERS SETUP -->"
when: users_create_homedirs and item.profile is defined
with_items: "{{ users }}"

Expand Down

0 comments on commit 95c7237

Please sign in to comment.