Fix tags to limit even the reference to roles/playbooks
The previous setting of tags still let ansible gather facts for the roles in question, even though they're not executed. This fix prevent this from happening.
This commit is contained in:
26
site.yml
26
site.yml
@@ -2,15 +2,15 @@
|
|||||||
gather_facts: no
|
gather_facts: no
|
||||||
roles:
|
roles:
|
||||||
- role: server-setup
|
- role: server-setup
|
||||||
tags:
|
tags:
|
||||||
- init
|
- init
|
||||||
- add-server
|
- add-server
|
||||||
- hosts: agent
|
- hosts: agent
|
||||||
roles:
|
roles:
|
||||||
- role: agent-setup
|
- role: agent-setup
|
||||||
tags:
|
tags:
|
||||||
- init
|
- init
|
||||||
- add-agent
|
- add-agent
|
||||||
- import_playbook: k3s.orchestration.site
|
- import_playbook: k3s.orchestration.site
|
||||||
tags:
|
tags:
|
||||||
- init
|
- init
|
||||||
@@ -22,13 +22,13 @@
|
|||||||
- hosts: server[0]
|
- hosts: server[0]
|
||||||
roles:
|
roles:
|
||||||
- role: kube-config
|
- role: kube-config
|
||||||
tags:
|
tags:
|
||||||
- init
|
- init
|
||||||
- config
|
- config
|
||||||
- update
|
- update
|
||||||
- hosts: localhost
|
- hosts: localhost
|
||||||
roles:
|
roles:
|
||||||
- role: k8s-setup
|
- role: k8s-setup
|
||||||
tags:
|
tags:
|
||||||
- init
|
- init
|
||||||
- k8s
|
- k8s
|
||||||
|
|||||||
Reference in New Issue
Block a user