Merge pull request #575 from dpavlos/update_syntax

Updates syntax and deprecated include statements
This commit is contained in:
Louis Abel 2020-12-13 10:41:37 -07:00 committed by GitHub
commit 44a6ad9972
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 17 additions and 18 deletions

View File

@ -28,14 +28,13 @@
# Install KVM packages # Install KVM packages
- name: Installing KVM Packages - name: Installing KVM Packages
package: package:
name: "{{ item }}" name:
- qemu-kvm
- libvirt
- libvirt-python
- libguestfs-tools
- virt-install
state: present state: present
with_items:
- qemu-kvm
- libvirt
- libvirt-python
- libguestfs-tools
- virt-install
- name: Enable and Start libvirtd - name: Enable and Start libvirtd
systemd: systemd:

View File

@ -19,10 +19,10 @@
fail_msg: "We are missing users or ipa admin password" fail_msg: "We are missing users or ipa admin password"
- name: "Start users" - name: "Start users"
include: import-rockyusers.yml import_playbook: import-rockyusers.yml
- name: "Start groups" - name: "Start groups"
include: import-rockygroups.yml import_playbook: import-rockygroups.yml
- name: "Start sudo for admins" - name: "Start sudo for admins"
include: import-rockysudo.yml import_playbook: import-rockysudo.yml

View File

@ -6,7 +6,7 @@
# This is to try to avoid the handler issue in pre/post tasks # This is to try to avoid the handler issue in pre/post tasks
handlers: handlers:
- include: handlers/main.yml - import_tasks: handlers/main.yml
pre_tasks: pre_tasks:
- name: Check if ansible cannot be run here - name: Check if ansible cannot be run here
@ -22,16 +22,16 @@
tasks: tasks:
- name: Loading Variables from OS Common - name: Loading Variables from OS Common
include: tasks/variable_loader_common.yml import_tasks: tasks/variable_loader_common.yml
- name: Configure SSH - name: Configure SSH
include: tasks/ssh_config.yml import_tasks: tasks/ssh_config.yml
- name: Configure harden settings - name: Configure harden settings
include: tasks/harden.yml import_tasks: tasks/harden.yml
- name: Configure PAM - name: Configure PAM
include: tasks/authentication.yml import_tasks: tasks/authentication.yml
post_tasks: post_tasks:
- name: Touching run file that ansible has ran here - name: Touching run file that ansible has ran here

View File

@ -9,7 +9,7 @@
# This is to try to avoid the handler issue in pre/post tasks # This is to try to avoid the handler issue in pre/post tasks
handlers: handlers:
- include: handlers/main.yml - import_tasks: handlers/main.yml
pre_tasks: pre_tasks:
- name: Check if ansible cannot be run here - name: Check if ansible cannot be run here

View File

@ -13,7 +13,7 @@
# This is to try to avoid the handler issue in pre/post tasks # This is to try to avoid the handler issue in pre/post tasks
handlers: handlers:
- include: handlers/main.yml - import_tasks: handlers/main.yml
pre_tasks: pre_tasks:
- name: Check if ansible cannot be run here - name: Check if ansible cannot be run here

View File

@ -8,7 +8,7 @@
# This is to try to avoid the handler issue in pre/post tasks # This is to try to avoid the handler issue in pre/post tasks
handlers: handlers:
- include: handlers/main.yml - import_tasks: handlers/main.yml
pre_tasks: pre_tasks:
- name: Check if ansible cannot be run here - name: Check if ansible cannot be run here