diff options
Diffstat (limited to 'roles/ands_pods/tasks/main.yml')
-rw-r--r-- | roles/ands_pods/tasks/main.yml | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/roles/ands_pods/tasks/main.yml b/roles/ands_pods/tasks/main.yml new file mode 100644 index 0000000..755377e --- /dev/null +++ b/roles/ands_pods/tasks/main.yml @@ -0,0 +1,24 @@ +#- name: Install monitoring applications +# package: name={{item}} state=present +# with_items: +# - sysstat + +- name: "Deploy services" + copy: src="{{ item | quote }}" dest="/etc/systemd/system/{{ item | basename | quote }}" owner=root group=root mode=0755 + with_fileglob: + - "{{ role_path }}/templates/services/*.service" + +- name: "Deploy service templates" + template: src="{{ item | quote }}" dest="/etc/systemd/system/{{ script_name }}" owner=root group=root mode=0755 + vars: + script_name: "{{ item | basename | regex_replace('\\.j2','') }}" + with_fileglob: + - "{{ role_path }}/templates/services/*.j2" + +- name: Configure services on compute nodes + include_tasks: compute.yml + when: "'compute' in group_names" + +- name: Reload SystemD service + systemd: daemon_reload="yes" + become: yes |