-
Notifications
You must be signed in to change notification settings - Fork 39
Expand file tree
/
Copy path29_remove_bootstrap.yml
More file actions
37 lines (34 loc) · 924 Bytes
/
29_remove_bootstrap.yml
File metadata and controls
37 lines (34 loc) · 924 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
---
- name: Remove cronjob on bastion for csr
hosts: bastion
become: true
tasks:
- name: Removing csr cronjob
ansible.builtin.cron:
name: "Openshift csr approver"
state: absent
- name: Clean up haproxy config on loadbalancer
hosts: loadbalancer
become: true
tasks:
- name: Remove bootstrap from HAProxy
ansible.builtin.lineinfile:
regexp: "bootstrap"
state: absent
path: /etc/haproxy/haproxy.cfg
notify: Restart haproxy
handlers:
- name: Restart haproxy
ansible.builtin.service:
name: haproxy
state: restarted
- name: Destroy bootstrap VM
hosts: vm_host
vars_files:
- vars/cluster_vars.yml
tasks:
- name: Destroy bootstrap VM
community.general.terraform:
project_path: "{{ workspace_directory.base_path }}/{{ cluster.name }}/terraform/bootstrap"
state: absent
become: true