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 - - -