|
@@ -39,26 +39,20 @@
|
|
|
static_configs:
|
|
|
- targets: ['localhost:{{ slurm_exporter_port }}']
|
|
|
|
|
|
-- name: Install & configure Nginx
|
|
|
+- name: Install & configure nginx
|
|
|
block:
|
|
|
- - name: Install Nginx
|
|
|
+ - name: Install nginx
|
|
|
package:
|
|
|
name: nginx
|
|
|
state: present
|
|
|
when: ansible_facts['distribution'] != opensuse_os_name
|
|
|
|
|
|
- - name: Install Nginx
|
|
|
+ - name: Install nginx
|
|
|
zypper:
|
|
|
name: nginx
|
|
|
state: present
|
|
|
when: ansible_facts['distribution'] == opensuse_os_name
|
|
|
|
|
|
- - name: Start and enable nginx service
|
|
|
- service:
|
|
|
- name: nginx
|
|
|
- state: restarted
|
|
|
- enabled: yes
|
|
|
-
|
|
|
- name: Configure nginx.conf (1/2)
|
|
|
replace:
|
|
|
path: "../../k8s_start_services/templates/nginx.conf.j2"
|