Adding option to disable the password for the manage account
This commit is contained in:
parent
bc4845d87f
commit
3282c7f311
2 changed files with 9 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -27,6 +27,12 @@
|
|||
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:
|
||||
file: core_motd.yml
|
||||
|
|
Loading…
Reference in a new issue