Replace ansible include with include/import_tasks

Deprecated and not available in versions 2.16+
This commit is contained in:
ionutboangiu
2024-07-04 19:00:41 +03:00
committed by Dan Christian Bogos
parent da4bf0d783
commit 8ed26c769e
2 changed files with 4 additions and 4 deletions

View File

@@ -29,7 +29,7 @@
shell: 'printf "expire\n{{ gpg_expire }}\nsave\n" | gpg --batch --command-fd 0 --status-fd=2 --edit-key {{ gpg_realname }}'
when: gpgkeys.stdout_lines|length > 0 and gpgExpKeys.stdout_lines|length > 0
- include: gpg-gen-key.yaml
- include_tasks: gpg-gen-key.yaml
when: gpgkeys.stdout_lines|length < 1
- name: get user armored public key

View File

@@ -43,10 +43,10 @@
apt: name={{ dependencies }} state=present
- name: Configure reprepro
include: reprepro.yaml
import_tasks: reprepro.yaml
- name: Generate GPG Key
include: gpg.yaml
import_tasks: gpg.yaml
- name: Check if NGINX needs to be configured
become: true
@@ -55,7 +55,7 @@
register: nginxConfig
- name: Configure NGINX server
include: nginx.yaml
include_tasks: nginx.yaml
when: nginxConfig.stdout_lines|length < 1
- name: Enable and start nginx