diff --git a/.gitignore b/.gitignore index 22b3efc..41af6bc 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,52 @@ +# Ignore .hidden files +.* +# Ignore everything +* + +!.github/ +!.github/** + +!.gitattributes +!.gitignore +!.gitempty + +!CONTRIBUTING.md +!LICENCE +!SECURITY.md + +!README.md + +!.pre-commit-config.yaml +!.prettierrc.yml +!.yamllint + +# ADD more +!.ansible-lint +!requirements.txt +!requirements.yml + +!defaults/ +!defaults/** +!files/ +!files/** +!handlers/ +!handlers/** +!meta/ +!meta/** +!molecule/ +!molecule/** +!tasks/ +!tasks/** +!templates/ +!templates/** +!tests/ +tests/* +!tests/inventory +!vars/ +!vars/** + ### Ansible ### *.retry + +tasks/pre_extra.yml +templates/sshd_config.j2 diff --git a/tasks/section2.yml b/tasks/section2.yml index 335cc78..8105cf0 100644 --- a/tasks/section2.yml +++ b/tasks/section2.yml @@ -3,24 +3,6 @@ # ------------------------------------------------------------------------------ -- name: "SECTION2 | 2.1.1 | Ensure autofs services are not in use" - ansible.builtin.systemd: - name: autofs.service - daemon_reload: true - enabled: false - masked: true - state: stopped - when: - - service_status_autofs.stdout == "loaded" - - not cis_ubuntu2204_allow_autofs - - cis_ubuntu2204_rule_2_1_1 - tags: - - rule_2_1_1 - - server_l1 - - workstation_l2 - -# ------------------------------------------------------------------------------ - - name: "SECTION2 | 2.1.1.1 | Ensure a single time synchronization daemon is in use" when: - cis_ubuntu2204_rule_2_1_1_1