fix: playbook did not have latest inventory

This commit is contained in:
rcordier 2024-05-22 14:34:19 -04:00
parent 490f5af066
commit 10ec6af097

View File

@ -1,14 +1,16 @@
- name: Hello World
- name: Debug context v1
hosts: localhost hosts: localhost
gather_facts: no gather_facts: no
pre_tasks: pre_tasks:
- name: Print debug message v1
debug:
msg: Hello, world!
- name: Show groups
debug:
var: groups
- name: get debug infos - name: get debug infos
shell: shell:
cmd: |- cmd: |-
@ -18,23 +20,6 @@
- name: Show collections - name: Show collections
debug: debug:
var: output1 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 - name: get debug infos
shell: shell:
cmd: |- cmd: |-
@ -50,29 +35,19 @@
- name: Configure Web - name: Configure Web
hosts: web hosts: role_web
gather_facts: no gather_facts: no
tasks: tasks:
- name: test1 - name: test1
import_role: import_role:
name: activia.infra_common.configure_web name: activia.infra_common.configure_web
- name: Configure DB - name: Configure DB
hosts: db hosts: role_db
gather_facts: no gather_facts: no
tasks: tasks:
- name: test2 - name: test2
import_role: import_role:
name: activia.infra_common.configure_db name: activia.infra_common.configure_db
# option: 1
# roles:
# - role: roles/configure-web
# # - role: roles/configure-db