diff --git a/collections/ansible_collections/demo/compliance/roles/iosxeSTIG/tasks/main.yml b/collections/ansible_collections/demo/compliance/roles/iosxeSTIG/tasks/main.yml index 896cb1e34..a3aabd8ca 100644 --- a/collections/ansible_collections/demo/compliance/roles/iosxeSTIG/tasks/main.yml +++ b/collections/ansible_collections/demo/compliance/roles/iosxeSTIG/tasks/main.yml @@ -137,14 +137,14 @@ - (cmd_result.stdout|join('\n')).find('ip dns server') != -1 - iosxeSTIG_stigrule_215823_Manage # R-215823 CISC-ND-000470 -- name : stigrule_215823_disable_identd - ignore_errors: "{{ ignore_all_errors }}" - notify: "save configuration" - ios_config: - defaults: yes - lines: "{{ iosxeSTIG_stigrule_215823_disable_identd_Lines }}" - when: - - iosxeSTIG_stigrule_215823_Manage +# - name : stigrule_215823_disable_identd +# ignore_errors: "{{ ignore_all_errors }}" +# notify: "save configuration" +# ios_config: +# defaults: yes +# lines: "{{ iosxeSTIG_stigrule_215823_disable_identd_Lines }}" +# when: +# - iosxeSTIG_stigrule_215823_Manage # R-215823 CISC-ND-000470 - name : stigrule_215823_disable_finger ignore_errors: "{{ ignore_all_errors }}" @@ -378,9 +378,9 @@ - name : stigrule_215837_host ignore_errors: "{{ ignore_all_errors }}" notify: "save configuration" - ios_logging: - dest: host - name: "{{ iosxeSTIG_stigrule_215837_host_Name }}" + ios_config: + lines: + - "logging {{ iosxeSTIG_stigrule_215837_host_Name }}" when: iosxeSTIG_stigrule_215837_Manage # R-215837 CISC-ND-001000 # Please configure name IP address to a valid one. @@ -397,16 +397,18 @@ - name : stigrule_215838_ntp_server_1 ignore_errors: "{{ ignore_all_errors }}" notify: "save configuration" - ios_ntp: - server: "{{ iosxeSTIG_stigrule_215838_ntp_server_1_Server }}" + cisco.ios.ios_config: + lines: + - "ntp server {{ iosxeSTIG_stigrule_215838_ntp_server_1_Server }}" when: iosxeSTIG_stigrule_215838_Manage # R-215838 CISC-ND-001030 # Replace ntp servers' IP address before enabling. - name : stigrule_215838_ntp_server_2 ignore_errors: "{{ ignore_all_errors }}" notify: "save configuration" - ios_ntp: - server: "{{ iosxeSTIG_stigrule_215838_ntp_server_2_Server }}" + cisco.ios.ios_config: + lines: + - "ntp server {{ iosxeSTIG_stigrule_215838_ntp_server_2_Server }}" when: iosxeSTIG_stigrule_215838_Manage # R-215840 CISC-ND-001050 # service timestamps log datetime localtime is set in 215817.