updates syntax and deprecated include statements

This commit is contained in:
Pavlos Daoglou 2020-12-13 13:54:31 +02:00
parent cdd0e25232
commit 77bebb1a08
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:
state: present
with_items:
- qemu-kvm - qemu-kvm
- libvirt - libvirt
- libvirt-python - libvirt-python
- libguestfs-tools - libguestfs-tools
- virt-install - virt-install
state: present
- 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