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:
Sebastian Mark 2023-06-26 10:37:09 +02:00
parent 460c1b2d21
commit 0ad79e32bd

View file

@ -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: