Update variable

This commit is contained in:
Your Name
2026-09-19 17:06:49 +05:00
parent aea5bd3bce
commit 5b5546bea7
3 changed files with 36 additions and 19 deletions
-14
View File
@@ -2,10 +2,6 @@
- name: Deploy Monitoring on general_server
hosts: general_server
become: yes
vars_files:
- group_vars/all/vars.yml
- group_vars/all/vault.yml
tasks:
- name: Создание системного юзера
ansible.builtin.user:
@@ -69,10 +65,6 @@
- name: Deploy Exporter on other servers
hosts: all
become: yes
vars_files:
- group_vars/all/vars.yml
- group_vars/all/vault.yml
tasks:
- name: Создание системного юзера
ansible.builtin.user:
@@ -80,12 +72,6 @@
state: present
shell: /usr/sbin/nologin
- name: Установить понятное имя хоста с индексом
ansible.builtin.hostname:
name: "node-{{ ansible_play_hosts.index(inventory_hostname) }}"
when: ansible_play_hosts.index(inventory_hostname) > 0
notify: restart node-exporter
- name: Создать директории для проекта
ansible.builtin.file:
path: "{{ monitoring_dir }}"