Skip to content

Commit 5831d43

Browse files
committed
use ansible_facts[] instead of ansible_nodename
1 parent e313603 commit 5831d43

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ dnf_automatic_network_online_timeout: 60
1818
dnf_automatic_random_sleep: 0
1919
dnf_automatic_upgrade_type: security
2020
dnf_automatic_emit_via: stdio
21-
dnf_automatic_system_name: "{{ ansible_nodename }}"
21+
dnf_automatic_system_name: "{{ ansible_facts['nodename'] }}"
2222
dnf_automatic_send_error_messages: false
2323
dnf_automatic_command_format: cat
2424
dnf_automatic_stdin_format: "{body}"

defaults/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ dnf_automatic_upgrade_type: security
1414
# [emitters]
1515

1616
dnf_automatic_emit_via: stdio
17-
dnf_automatic_system_name: "{{ ansible_nodename }}"
17+
dnf_automatic_system_name: "{{ ansible_facts['nodename'] }}"
1818
dnf_automatic_send_error_messages: false
1919

2020
# [command]

0 commit comments

Comments
 (0)