refactor(pb_install.yml): add tags to playbook tasks
- Added tags to the first task for installing k3s server
- Added tags to the second task for deploying baseline
🤖
This commit is contained in:
parent
460c1b2d21
commit
0ad79e32bd
1 changed files with 3 additions and 1 deletions
|
@ -2,6 +2,7 @@
|
||||||
- hosts: all
|
- hosts: all
|
||||||
gather_facts: false
|
gather_facts: false
|
||||||
name: install k3s server
|
name: install k3s server
|
||||||
|
tags: k3s-server
|
||||||
tasks:
|
tasks:
|
||||||
- name: download k3s install script
|
- name: download k3s install script
|
||||||
ansible.builtin.get_url:
|
ansible.builtin.get_url:
|
||||||
|
@ -27,11 +28,12 @@
|
||||||
fetch:
|
fetch:
|
||||||
src: /etc/rancher/k3s/k3s.yaml
|
src: /etc/rancher/k3s/k3s.yaml
|
||||||
dest: kubeconfig_{{ ansible_host }}.yml
|
dest: kubeconfig_{{ ansible_host }}.yml
|
||||||
flat: yes
|
flat: true
|
||||||
|
|
||||||
- hosts: all
|
- hosts: all
|
||||||
gather_facts: false
|
gather_facts: false
|
||||||
name: deploy baseline
|
name: deploy baseline
|
||||||
|
tags: baseline
|
||||||
tasks:
|
tasks:
|
||||||
- name: copy manifest
|
- name: copy manifest
|
||||||
ansible.builtin.copy:
|
ansible.builtin.copy:
|
||||||
|
|
Loading…
Reference in a new issue