Add hsmusers group before client installation
This patch moves the creation of the hsmusers group so that it happens before the Luna client software is installed. This will ensure that the installer re-uses the GID we want instead of choosing an arbitrary value. Change-Id: I7652c12aceb39a07e57ceb975d5f2b8e38f780b8
This commit is contained in:
parent
b43bb87352
commit
f82c4666c9
@ -5,6 +5,18 @@
|
||||
state: directory
|
||||
mode: '755'
|
||||
|
||||
- name: Create hsmusers group
|
||||
ansible.builtin.group:
|
||||
name: hsmusers
|
||||
gid: "{{ lunasa_group_id }}"
|
||||
|
||||
- name: Create hsmusers user
|
||||
ansible.builtin.user:
|
||||
name: hsmusers
|
||||
uid: "{{ lunasa_user_id }}"
|
||||
group: "{{ lunasa_group_id }}"
|
||||
create_home: false
|
||||
|
||||
- name: Download Lunasa client tarball
|
||||
ansible.builtin.get_url:
|
||||
url: "{{ lunasa_client_tarball_location }}"
|
||||
|
@ -3,18 +3,6 @@
|
||||
ansible.builtin.debug:
|
||||
msg: "Registering client: {{ client_name }} [host: {{ client_host }}, CN: {{ client_cert_cn }}] with HSM: {{ hsm_hostname }}"
|
||||
|
||||
- name: Create hsmusers group
|
||||
ansible.builtin.group:
|
||||
name: hsmusers
|
||||
gid: "{{ lunasa_group_id }}"
|
||||
|
||||
- name: Create hsmusers user
|
||||
ansible.builtin.user:
|
||||
name: hsmusers
|
||||
uid: "{{ lunasa_user_id }}"
|
||||
group: "{{ lunasa_group_id }}"
|
||||
create_home: false
|
||||
|
||||
- name: Get the hsm server cert from the hsm_server
|
||||
ansible.builtin.shell: >
|
||||
sshpass -p '{{ hsm_admin_password }}'
|
||||
|
Loading…
x
Reference in New Issue
Block a user