chore(playbooks): update external playbook to load provisioners facts and add tags
This commit is contained in:
parent
dcb3b887f9
commit
ae79544b95
1 changed files with 21 additions and 0 deletions
|
@ -1,4 +1,16 @@
|
|||
---
|
||||
- name: load provisioner facts
|
||||
hosts: external
|
||||
gather_facts: false
|
||||
tasks:
|
||||
- name: include provisioner role
|
||||
ansible.builtin.include_role:
|
||||
name: nullified.infrastructure.provisioner
|
||||
tasks_from: load_facts.yml
|
||||
apply:
|
||||
tags: [always]
|
||||
tags: [always]
|
||||
|
||||
- name: setup external infrastructure
|
||||
hosts: external
|
||||
gather_facts: false
|
||||
|
@ -6,9 +18,15 @@
|
|||
- name: include security role
|
||||
ansible.builtin.include_role:
|
||||
name: nullified.infrastructure.security
|
||||
apply:
|
||||
tags: [security]
|
||||
tags: [security, firewall]
|
||||
- name: include common role
|
||||
ansible.builtin.include_role:
|
||||
name: nullified.infrastructure.common
|
||||
apply:
|
||||
tags: [common]
|
||||
tags: [common]
|
||||
|
||||
- name: setup servers
|
||||
hosts: external:&server
|
||||
|
@ -16,3 +34,6 @@
|
|||
- name: include server role
|
||||
ansible.builtin.include_role:
|
||||
name: nullified.infrastructure.server
|
||||
apply:
|
||||
tags: [server]
|
||||
tags: [server]
|
||||
|
|
Loading…
Add table
Reference in a new issue