From 255c8369b1abeca2e05a20eff9f416f8894f8cad Mon Sep 17 00:00:00 2001 From: kuduk Date: Fri, 15 Mar 2024 15:34:48 +0100 Subject: [PATCH] Fixing asserts as per CVE-2023-5764 (#14) --- tasks/main.yml | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/tasks/main.yml b/tasks/main.yml index 00868d7..ec78a75 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -1,20 +1,20 @@ --- # tasks file for ansible-pdc - name: Assert mandatory variables have been set - ansible.builtin.assert: { that: "{{ item }} is defined" } - with_items: - - pdc_administrator_username - - pdc_administrator_password - - ansible_windows_domain_member - - pdc_dns_nics - - pdc_dns_servers - - pdc_domain - - pdc_netbios - - pdc_domain_safe_mode_password - - pdc_domain_functional_level - - pdc_forest_functional_level - - pdc_required_psmodules - - pdc_required_features + ansible.builtin.assert: + that: + - pdc_administrator_username is defined + - pdc_administrator_password is defined + - ansible_windows_domain_member is defined + - pdc_dns_nics is defined + - pdc_dns_servers is defined + - pdc_domain is defined + - pdc_netbios is defined + - pdc_domain_safe_mode_password is defined + - pdc_domain_functional_level is defined + - pdc_forest_functional_level is defined + - pdc_required_psmodules is defined + - pdc_required_features is defined - name: Ensure the local user {{ pdc_administrator_username }} has the password specified for {{ pdc_netbios }}\{{ pdc_administrator_username }} ansible.windows.win_user: