From 67c4b8ebf4e4f8dafb6d4e008479f84811562b26 Mon Sep 17 00:00:00 2001 From: William Graef Date: Tue, 23 Apr 2024 08:54:08 -0400 Subject: [PATCH] add install user to olcne grp --- ocne/deploy-ocne-quick.yaml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/ocne/deploy-ocne-quick.yaml b/ocne/deploy-ocne-quick.yaml index afd8797..3012e10 100644 --- a/ocne/deploy-ocne-quick.yaml +++ b/ocne/deploy-ocne-quick.yaml @@ -118,6 +118,17 @@ become_user: "{{ username }}" register: ocne_provision + + - name: Add user to olcne group + ansible.builtin.user: + name: "{{ username }}" + groups: olcne + append: true + when: ocne_provision.stat.exists + + - name: Reset ssh connection to allow user changes to affect 'current login user' + ansible.builtin.meta: reset_connection + - name: Save out ocne config ansible.builtin.shell: | olcnectl module instances --api-server "{{ operator_node }}":8091 --environment-name myenvironment --update-config