Adding option to disable the password for the manage account

This commit is contained in:
Tyler Hale 2022-07-09 11:32:31 -06:00
parent bc4845d87f
commit 3282c7f311
Signed by: Tyler
GPG key ID: C7CC4B910D88EF96
2 changed files with 9 additions and 0 deletions

View file

@ -11,6 +11,9 @@
# User that should have the authorized keys added
base_core_management_user: "{{ ansible_user }}"
# If enabled, the password for the management user account will be disabled
base_core_management_user_disable_password: false
# Install all available updates at runtime
base_core_install_updates: true

View file

@ -26,6 +26,12 @@
org_id: "{{ base_redhat_subscription_org_id }}"
pool: '^(Red Hat Enterprise Server|Red Hat Virtualization)$'
when: ansible_distribution == 'RedHat' and base_redhat_subscription_org_id != "" and base_redhat_subscription_activationkey != ""
- name: Disable passsword for management account
user:
name: "{{ base_core_management_user }}"
password_lock: yes
when: base_core_management_user_disable_password == true
- name: "*** MOTD Configuration ***"
include_tasks: