Skip to content

Commit

Permalink
aixPb: Fixes for Users task in aix playbook (#3087)
Browse files Browse the repository at this point in the history
* remove localhost delegation from jenkins key task

* fix condition

* remove unnecessary warning

* remove warning message for jenkins key

---------

Co-authored-by: Martijn Verburg <[email protected]>
  • Loading branch information
Haroon-Khel and karianna authored Dec 5, 2024
1 parent a2c806e commit 028773c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 028773c

Please sign in to comment.