Refactor user management in Ansible playbooks to standardize on keeper_user
- Updated user addition tasks across multiple playbooks (mcp_switchboard, mcpo, neo4j, neo4j_mcp, openwebui, postgresql, rabbitmq, searxng, smtp4dev) to replace references to ansible_user and remote_user with keeper_user. - Modified PostgreSQL deployment to create directories and manage files under keeper_user's home. - Enhanced documentation to clarify account taxonomy and usage of keeper_user in playbooks. - Introduced new deployment for Agent S, including environment setup, desktop environment installation, XRDP configuration, and accessibility support. - Added staging playbook for preparing release tarballs from local repositories. - Created templates for XRDP configuration and environment activation scripts. - Removed obsolete sunwait documentation.
This commit is contained in:
@@ -45,10 +45,10 @@
|
||||
create_home: false
|
||||
shell: /usr/sbin/nologin
|
||||
|
||||
- name: Add ansible_user to casdoor group
|
||||
- name: Add keeper_user to casdoor group
|
||||
become: true
|
||||
ansible.builtin.user:
|
||||
name: "{{ ansible_user }}"
|
||||
name: "{{ keeper_user }}"
|
||||
groups: "{{ casdoor_group }}"
|
||||
append: true
|
||||
|
||||
|
||||
@@ -54,10 +54,10 @@
|
||||
# Remove User and Group
|
||||
# -------------------------------------------------------------------------
|
||||
|
||||
- name: Remove ponos from casdoor group
|
||||
- name: Remove keeper_user from casdoor group
|
||||
become: true
|
||||
ansible.builtin.command:
|
||||
cmd: gpasswd -d ponos {{ casdoor_group }}
|
||||
cmd: gpasswd -d {{ keeper_user }} {{ casdoor_group }}
|
||||
register: gpasswd_result
|
||||
changed_when: gpasswd_result.rc == 0
|
||||
failed_when: false
|
||||
|
||||
Reference in New Issue
Block a user