diff --git a/tasks/main.yml b/tasks/main.yml index 8ecfede7..66495d62 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -52,8 +52,8 @@ tags: - always - - include: "{{ stig_version }}stig/main.yml" + - include_tasks: "{{ stig_version }}stig/main.yml" - - include: contrib/main.yml + - include_tasks: contrib/main.yml when: - security_contrib_enabled | bool diff --git a/tasks/rhel7stig/dnf.yml b/tasks/rhel7stig/dnf.yml index b4a3746d..2787a570 100644 --- a/tasks/rhel7stig/dnf.yml +++ b/tasks/rhel7stig/dnf.yml @@ -13,7 +13,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -- include: rpm.yml +- include_tasks: rpm.yml - name: Check if /etc/dnf/automatic.conf exists stat: diff --git a/tasks/rhel7stig/main.yml b/tasks/rhel7stig/main.yml index 269c65ba..7c4698bc 100644 --- a/tasks/rhel7stig/main.yml +++ b/tasks/rhel7stig/main.yml @@ -33,7 +33,7 @@ # Some of the tasks in the role may take a long time to run. Let's start them # as early as possible so they have time to finish. -- include: async_tasks.yml +- include_tasks: async_tasks.yml - name: Get user data for all users on the system get_users: @@ -66,28 +66,28 @@ # Package installations and removals must come first so that configuration # changes can be made later. -- include: packages.yml +- include_tasks: packages.yml tags: - always # Package managers are managed first since the changes in these tasks will # affect the remainder of the tasks in the role. -- include: "{{ ansible_pkg_mgr }}.yml" +- include_tasks: "{{ ansible_pkg_mgr }}.yml" # The bulk of the security changes are applied in these tasks. The tasks in # each file are tagged with the same name (for example, tasks in `auth.yml` # are tagged with `auth`). Also, the tag name matches up with the "STIG # Controls by Tag" section of the role documentation. -- include: accounts.yml -- include: aide.yml -- include: auditd.yml -- include: auth.yml -- include: file_perms.yml -- include: graphical.yml -- include: kernel.yml -- include: lsm.yml -- include: misc.yml -- include: sshd.yml +- include_tasks: accounts.yml +- include_tasks: aide.yml +- include_tasks: auditd.yml +- include_tasks: auth.yml +- include_tasks: file_perms.yml +- include_tasks: graphical.yml +- include_tasks: kernel.yml +- include_tasks: lsm.yml +- include_tasks: misc.yml +- include_tasks: sshd.yml - name: Remove the temporary directory file: diff --git a/tasks/rhel7stig/yum.yml b/tasks/rhel7stig/yum.yml index 33bdb722..bb5c4f21 100644 --- a/tasks/rhel7stig/yum.yml +++ b/tasks/rhel7stig/yum.yml @@ -13,7 +13,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -- include: rpm.yml +- include_tasks: rpm.yml - name: Check if /etc/yum/yum-cron.conf exists stat: