renamed customer user group

This commit is contained in:
ladislav.dusa
2025-04-14 20:39:27 +02:00
parent 0c730c0b65
commit 365a045d4d
3 changed files with 23 additions and 0 deletions

0
roles/hosts/files/hosts Normal file
View File

5
roles/hosts/handlers/main.yml Executable file
View File

@ -0,0 +1,5 @@
- name: restart_docker
ansible.builtin.service:
name: docker.service
state: restarted
become: true

18
roles/hosts/tasks/main.yml Executable file
View File

@ -0,0 +1,18 @@
- name: Hosts
become: "{{ false if inventory_hostname == 'nas.home.lan' else true }}"
block:
- name: Reconfigure hosts file
ansible.builtin.lineinfile:
path: "/etc/hosts"
regexp: "^192.168.77.101 .*"
line: "192.168.77.101 m-server m-server.home.lan"
- name: Reconfigure hosts file
ansible.builtin.lineinfile:
path: "/etc/hosts"
regexp: "^192.168.77.106 .*"
line: "192.168.77.106 nas nas.home.lan"
- name: Reconfigure hosts file
ansible.builtin.lineinfile:
path: "/etc/hosts"
regexp: "^192.168.77.238 .*"
line: "192.168.77.238 rpi5 rpi5.home.lan"