Move ansible to it's own directory structure
This commit is contained in:
11
ansible/playbooks/set_hostname.yml
Normal file
11
ansible/playbooks/set_hostname.yml
Normal file
@@ -0,0 +1,11 @@
|
||||
---
|
||||
- name: Set hostname of VM
|
||||
hosts: all
|
||||
gather_facts: false
|
||||
|
||||
tasks:
|
||||
- name: Set hostname of VM
|
||||
become: true
|
||||
delegate_to: "{{ inventory_hostname }}"
|
||||
ansible.builtin.hostname:
|
||||
name: "{{ hostname }}"
|
||||
Reference in New Issue
Block a user