From 10ec6af097590b4d7dd925096fdbd6065acbe5f1 Mon Sep 17 00:00:00 2001 From: rcordier Date: Wed, 22 May 2024 14:34:19 -0400 Subject: [PATCH] fix: playbook did not have latest inventory --- playbooks/hello.yml | 43 +++++++++---------------------------------- 1 file changed, 9 insertions(+), 34 deletions(-) diff --git a/playbooks/hello.yml b/playbooks/hello.yml index 9b94719..e0695d9 100644 --- a/playbooks/hello.yml +++ b/playbooks/hello.yml @@ -1,14 +1,16 @@ - - -- name: Debug context v1 +- name: Hello World hosts: localhost gather_facts: no pre_tasks: - - + - name: Print debug message v1 + debug: + msg: Hello, world! + - name: Show groups + debug: + var: groups - name: get debug infos shell: cmd: |- @@ -18,23 +20,6 @@ - name: Show collections debug: var: output1 - - - name: Show groups - debug: - var: groups - - - - -- name: Hello World - hosts: localhost - gather_facts: no - - pre_tasks: - - name: Print debug message v1 - debug: - msg: Hello, world! - - name: get debug infos shell: cmd: |- @@ -50,29 +35,19 @@ - name: Configure Web - hosts: web + hosts: role_web gather_facts: no - tasks: - name: test1 import_role: name: activia.infra_common.configure_web - name: Configure DB - hosts: db + hosts: role_db gather_facts: no - tasks: - name: test2 import_role: name: activia.infra_common.configure_db - # option: 1 - - # roles: - # - role: roles/configure-web - # # - role: roles/configure-db - - -