Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
Chickensoupwithrice committed Oct 9, 2023
1 parent 03cc625 commit 6cd3664
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 14 deletions.
12 changes: 12 additions & 0 deletions ansible/install_microk8s.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,15 @@
- role: microk8s/debian # Change to redhat if using a redhat distro
- role: microk8s/common

handlers:
- name: Reboot System
ansible.builtin.reboot:
when:
- skip_handlers | default("false") == "false"

- name: microk8s ready
ansible.builtin.command:
cmd: microk8s.status --wait-ready
changed_when: false
when:
- skip_handlers | default("false") == "false"
14 changes: 0 additions & 14 deletions ansible/roles/microk8s/common/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -233,17 +233,3 @@
- ansible_os_family == "RedHat"
tags:
- helm_upgrade

---
handlers:
- name: Reboot System
ansible.builtin.reboot:
when:
- skip_handlers | default("false") == "false"

- name: microk8s ready
ansible.builtin.command:
cmd: microk8s.status --wait-ready
changed_when: false
when:
- skip_handlers | default("false") == "false"

0 comments on commit 6cd3664

Please sign in to comment.