Добавил правку hostname в соответствии с inventory

This commit is contained in:
Lulzette 2021-12-29 16:55:19 +00:00
parent 6477db7f37
commit 90f0f37f2b
2 changed files with 4 additions and 1 deletions

View File

@ -1,2 +1,2 @@
[localgroup]
localhost connection=local
gitlab ansible_connection=ssh ansible_ssh_host=192.168.100.11 ansible_ssh_user=losted ansible_ssh_common_args='-o StrictHostKeyChecking=no'

View File

@ -34,3 +34,6 @@
template:
src: files/screenrc
dest: /etc/screenrc
- name: Change hostname
ansible.builtin.hostname:
name: "{{ inventory_hostname }}"