Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create acctsvc as a system account on OOD #364

Merged
merged 3 commits into from
Aug 11, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 1 addition & 18 deletions roles/ood_user_reg_ops/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,8 @@
- name: Get UID and GID of RegUser from OHPC
stat:
path: /home/{{ RegUser_app_user }}
register: RegUser_stat

- name: Create Group for RegUser on OOD
group:
gid: "{{ RegUser_stat.stat.gid }}"
name: "{{ RegUser_app_user }}"
state: present

- name: Create RegUser on OOD
user:
name: "{{ RegUser_app_user }}"
comment: "{{ RegUser_app_user_full_name }}"
shell: /bin/bash
uid: "{{ RegUser_stat.stat.uid }}"
group: "{{ RegUser_app_user }}"
createhome: no
state: present

- name: Restart service httpd24, in all cases
service:
name: httpd24-httpd
state: restarted
system: yes