Removing the last remnants of nomad and getting k3s setup
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
become: true
|
||||
tags:
|
||||
- setup
|
||||
- name: Run through nomad installation steps
|
||||
- name: Run through nomad removal steps
|
||||
tags: nomad
|
||||
ansible.builtin.include_tasks:
|
||||
file: nomad.yaml
|
||||
|
||||
@@ -33,23 +33,22 @@
|
||||
- name: Install consul
|
||||
ansible.builtin.apt:
|
||||
name: consul
|
||||
state: absent
|
||||
- name: Install nomad package
|
||||
ansible.builtin.apt:
|
||||
pkg: nomad
|
||||
- name: Copy in the consul configuration
|
||||
vars:
|
||||
ip: "{{ ansible_default_ipv4['address'] }}"
|
||||
ansible.builtin.template:
|
||||
src: consul.hcl
|
||||
dest: /etc/consul.d/consul.hcl
|
||||
mode: "0644"
|
||||
state: absent
|
||||
- name: Remove the bare metal consul template
|
||||
ansible.builtin.file:
|
||||
path: /etc/consul.d/consul.hcl
|
||||
state: absent
|
||||
- name: Start nomad
|
||||
ansible.builtin.systemd_service:
|
||||
name: nomad
|
||||
state: started
|
||||
enabled: true
|
||||
state: stopped
|
||||
enabled: false
|
||||
- name: Make sure the consul service is NOT available
|
||||
ansible.builtin.systemd_service:
|
||||
name: consul
|
||||
state: stopped
|
||||
enabled: true
|
||||
enabled: false
|
||||
|
||||
Reference in New Issue
Block a user