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
- name: Installing KVM Packages
package:
name: "{{ item }}"
state: present
with_items:
name:
- qemu-kvm
- libvirt
- libvirt-python
- libguestfs-tools
- virt-install
state: present
- name: Enable and Start libvirtd
systemd:

View File

@ -19,10 +19,10 @@
fail_msg: "We are missing users or ipa admin password"
- name: "Start users"
include: import-rockyusers.yml
import_playbook: import-rockyusers.yml
- name: "Start groups"
include: import-rockygroups.yml
import_playbook: import-rockygroups.yml
- 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
handlers:
- include: handlers/main.yml
- import_tasks: handlers/main.yml
pre_tasks:
- name: Check if ansible cannot be run here
@ -22,16 +22,16 @@
tasks:
- name: Loading Variables from OS Common
include: tasks/variable_loader_common.yml
import_tasks: tasks/variable_loader_common.yml
- name: Configure SSH
include: tasks/ssh_config.yml
import_tasks: tasks/ssh_config.yml
- name: Configure harden settings
include: tasks/harden.yml
import_tasks: tasks/harden.yml
- name: Configure PAM
include: tasks/authentication.yml
import_tasks: tasks/authentication.yml
post_tasks:
- 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
handlers:
- include: handlers/main.yml
- import_tasks: handlers/main.yml
pre_tasks:
- 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
handlers:
- include: handlers/main.yml
- import_tasks: handlers/main.yml
pre_tasks:
- 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
handlers:
- include: handlers/main.yml
- import_tasks: handlers/main.yml
pre_tasks:
- name: Check if ansible cannot be run here