Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

removing unnecessary code #204

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading