mirror of
https://gitlab.sectorq.eu/jaydee/ansible.git
synced 2025-07-03 00:03:05 +02:00
bitwarden
This commit is contained in:
17
playbooks/00_set_hostname.yml
Normal file
17
playbooks/00_set_hostname.yml
Normal file
@ -0,0 +1,17 @@
|
||||
- hosts: datacenter
|
||||
name: Set hostname
|
||||
become: true
|
||||
tasks:
|
||||
- name: Modify hostyname
|
||||
ansible.builtin.hostname:
|
||||
name: "{{ inventory_hostname }}"
|
||||
use: systemd
|
||||
- name: Print all available facts
|
||||
ansible.builtin.debug:
|
||||
var: ansible_facts.architecture
|
||||
- name: Print all available facts
|
||||
ansible.builtin.debug:
|
||||
var: "{{ ansible_distribution }}"
|
||||
- name: Print all available facts
|
||||
ansible.builtin.debug:
|
||||
var: ansible_facts.distribution_version
|
Reference in New Issue
Block a user