From 028773c140a974f741d6b4ab5a78f381f2df7a68 Mon Sep 17 00:00:00 2001 From: Haroon Khel <34969545+Haroon-Khel@users.noreply.github.com> Date: Thu, 5 Dec 2024 20:10:18 +0800 Subject: [PATCH] aixPb: Fixes for Users task in aix playbook (#3087) * remove localhost delegation from jenkins key task * fix condition * remove unnecessary warning * remove warning message for jenkins key --------- Co-authored-by: Martijn Verburg --- .../roles/users/tasks/jenkins.yml | 8 -------- .../AdoptOpenJDK_AIX_Playbook/roles/users/tasks/zeus.yml | 5 ----- 2 files changed, 13 deletions(-) diff --git a/ansible/playbooks/AdoptOpenJDK_AIX_Playbook/roles/users/tasks/jenkins.yml b/ansible/playbooks/AdoptOpenJDK_AIX_Playbook/roles/users/tasks/jenkins.yml index 153b6bfd26..c6c7cf587d 100644 --- a/ansible/playbooks/AdoptOpenJDK_AIX_Playbook/roles/users/tasks/jenkins.yml +++ b/ansible/playbooks/AdoptOpenJDK_AIX_Playbook/roles/users/tasks/jenkins.yml @@ -15,13 +15,5 @@ state: present key: "{{ lookup('file', '{{ Jenkins_User_SSHKey }}') }}" when: pubkey is defined and pubkey.stat.exists - delegate_to: localhost register: jenkins_pubkey tags: jenkins_user - -- name: Warn about missing authorization for jenkins - debug: - msg: "{{ Jenkins_User_SSHKey }} not included in authorizedkeys" - when: jenkins_pubkey is defined and - (jenkins_pubkey.skipped == true or jenkins_pubkey.failed == true) - tags: jenkins_user diff --git a/ansible/playbooks/AdoptOpenJDK_AIX_Playbook/roles/users/tasks/zeus.yml b/ansible/playbooks/AdoptOpenJDK_AIX_Playbook/roles/users/tasks/zeus.yml index 244b1fbf6f..e4ba0c3f93 100644 --- a/ansible/playbooks/AdoptOpenJDK_AIX_Playbook/roles/users/tasks/zeus.yml +++ b/ansible/playbooks/AdoptOpenJDK_AIX_Playbook/roles/users/tasks/zeus.yml @@ -31,8 +31,3 @@ state: present regexp: '^zeus' line: 'zeus ALL=(ALL) NOPASSWD: ALL' - -- name: Warn about missing authorization for zeus - debug: - msg: "{{ Zeus_User_SSHKey }} not included in authorizedkeys" - when: Superuser_Account == "Enabled" and zeus_pubkey.skipped