Skip to content

Commit

Permalink
Enables check and diff mode on plays
Browse files Browse the repository at this point in the history
Allows copying license file and extracting user/password to run during check/diff mode.
Allows "Capture installed Java provider" & "Capture installed Java version" tasks to run during check/diff mode, so that facts are populated successfully later
Allows Postgres or MySQL Connectors to run during check/diff mode

Signed-off-by: Chuck Levesque <clevesque@cloudera.com>
  • Loading branch information
clevesque committed Nov 20, 2023
1 parent 0d97975 commit 2a4f290
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions roles/deployment/credential/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
no_log: true
vars:
__licname: "{{ cloudera_manager_license | regex_replace('(.|\n)*\"name\"\\s*:\\s*\"([^\"]*)\"(.|\n)*', '\\2') }}"
check_mode: false

- name: Set password from processed Cloudera License Content
no_log: true
Expand Down
1 change: 1 addition & 0 deletions roles/prereqs/license/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
- cloudera_manager_license_file
- "'cloudera_manager' in groups"
- inventory_hostname in groups['cloudera_manager']
check_mode: false

- name: Set license type to Enterprise if license is presented
ansible.builtin.set_fact:
Expand Down

0 comments on commit 2a4f290

Please sign in to comment.