Skip to content

Commit

Permalink
Merge pull request #204 from rancherfederal/201-check-if-rke-server-i…
Browse files Browse the repository at this point in the history
…s-previously-installed-does-nothing-beneficial

removing unnecessary code
  • Loading branch information
mddamato authored Apr 15, 2024
2 parents 482b6ed + 0d3f21e commit c8264a7
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions roles/rke2_common/tasks/previous_install.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,5 @@
---

- name: Check if rke2-server is previously installed
ansible.builtin.debug:
msg: "rke2-server is already installed. Skipping installation steps."
when: >
ansible_facts.services["rke2-server.service"] is defined
and not ansible_facts.services["rke2-server.service"].status == 'disabled'
- name: Set fact if rke2-server was previously installed
ansible.builtin.set_fact:
installed: true
Expand All @@ -21,13 +14,6 @@
ansible_facts.services["rke2-server.service"] is defined
and ansible_facts.services["rke2-server.service"].state == 'running'
- name: Check if rke2-agent is previously installed
ansible.builtin.debug:
msg: "rke2-agent is already installed. Skipping installation steps."
when: >
ansible_facts.services["rke2-agent.service"] is defined
and not ansible_facts.services["rke2-agent.service"].status == 'disabled'
- name: Set fact if rke2-agent was previously installed
ansible.builtin.set_fact:
installed: true
Expand Down

0 comments on commit c8264a7

Please sign in to comment.