Skip to content

Commit

Permalink
Make control and platform users groups a variable. Add control to sud…
Browse files Browse the repository at this point in the history
…o group
  • Loading branch information
jpugh-miax committed Jan 31, 2025
1 parent 9007eea commit e5401e8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions roles/operations.users/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ operations_admin_users: []

operations_control_user: control
operations_control_home: /var/control
operations_control_user_groups: docker,sudo

operations_platform_user: platform
operations_platform_home: /var/platform
operations_platform_user_groups: docker
4 changes: 2 additions & 2 deletions roles/operations.users/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
shell: /bin/bash
system: true
generate_ssh_key: true
groups: docker
groups: "{{ operations_platform_user_groups }}"

- name: Create Platform home directory
file:
Expand All @@ -34,7 +34,7 @@
user:
name: "{{ operations_control_user }}"
group: "{{ operations_control_user }}"
groups: docker
groups: "{{ operations_control_user_groups }}"
home: "{{ operations_control_home }}"
uid: "{{ operations_control_user_uid | default(omit) }}"
shell: /bin/bash
Expand Down

0 comments on commit e5401e8

Please sign in to comment.