Compat with modern ansible versions

This commit is contained in:
Emilien Mantel
2019-02-05 11:05:04 +01:00
parent 8218e5c972
commit c399bf35b5
11 changed files with 48 additions and 54 deletions
+1 -3
View File
@@ -2,10 +2,8 @@
#- name: APT | Install web apps
# pkgng:
# pkg: "{{ item }}"
# name: "backuppc"
# state: present
# with_items:
# - backuppc
#
#- name: COMMAND | Activate backuppc config
# command: >
+6 -6
View File
@@ -2,11 +2,11 @@
- hosts: all
pre_tasks:
- name: INCLUDE | Pre_tasks related to OS version
include: "includes/pre_{{ ansible_distribution }}.yml"
- name: INCLUDE_TASKS | Pre_tasks related to OS version
include_tasks: "includes/pre_{{ ansible_distribution }}.yml"
- name: INCLUDE | Pre_tasks common
include: "includes/pre_common.yml"
- name: IMPORT_TASKS | Pre_tasks common
import_tasks: "includes/pre_common.yml"
- name: FILE | Create an internal SSL dir
file:
@@ -266,8 +266,8 @@
# --------------------------------
# Apps
# --------------------------------
- name: INCLUDE | Post_tasks related to OS version
include: "includes/post_{{ ansible_distribution }}.yml"
- name: INCLUDE_TASKS | Post_tasks related to OS version
include_tasks: "includes/post_{{ ansible_distribution }}.yml"
# --------------------------------
# Deploy index files