fix: playbook did not have latest inventory
This commit is contained in:
parent
490f5af066
commit
10ec6af097
@ -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
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user