pull in gnunn's cluster-config repo
This commit is contained in:
15
infra-config/ansible/set_hostname.yml
Normal file
15
infra-config/ansible/set_hostname.yml
Normal file
@@ -0,0 +1,15 @@
|
||||
---
|
||||
- name: Set hostname
|
||||
hosts: ipa_server
|
||||
become: true
|
||||
gather_facts: true
|
||||
|
||||
tasks:
|
||||
- name: Set hostname
|
||||
ansible.builtin.hostname:
|
||||
name: "{{ hostname }}"
|
||||
register: result
|
||||
|
||||
- name: Print result
|
||||
ansible.builtin.debug:
|
||||
var: result
|
||||
Reference in New Issue
Block a user