tests: Rename fake_role_2 and update tasks

This commit is contained in:
Mohamed El Mouctar HAIDARA 2021-10-03 21:00:58 +02:00
parent dbdf3fb48f
commit f0a0d8b60e
5 changed files with 10 additions and 7 deletions

View file

@ -13,4 +13,4 @@
msg: Hello world
- name: Import role
import_role:
name: fake_role_2
name: display_some_facts

View file

@ -16,4 +16,4 @@
- name: (4) Include role 2
when: x is not defined
include_role:
name: fake_role_2
name: display_some_facts

View file

@ -1,3 +1,4 @@
---
- name: Specific included task for Debian
debug: msg="Specific task for Debian"
debug:
var: ansible_service_mgr

View file

@ -1,9 +1,11 @@
---
- name: Debug 1 fake_role_2
debug: msg="Fake role"
- name: ansible_architecture
debug:
var: ansible_architecture
- name: Debug 2 fake_role_2
debug: msg="Fake role 2"
- name: ansible_date_time
debug:
var: ansible_date_time
# This is just for testing purpose.
- name: Include Debian task