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,31 +1,5 @@
- name: Debug context v1
hosts: localhost
gather_facts: no
pre_tasks:
- name: get debug infos
shell:
cmd: |-
ansible-galaxy collection list || true
register: output1
- name: Show collections
debug:
var: output1
- name: Show groups
debug:
var: groups
- name: Hello World - name: Hello World
hosts: localhost hosts: localhost
gather_facts: no gather_facts: no
@ -34,7 +8,18 @@
- name: Print debug message v1 - name: Print debug message v1
debug: debug:
msg: Hello, world! msg: Hello, world!
- name: Show groups
debug:
var: groups
- name: get debug infos
shell:
cmd: |-
ansible-galaxy collection list || true
register: output1
- name: Show collections
debug:
var: output1
- 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