]> birchwood-abbey.net Git - Institute/commitdiff
Avoid use of variable name "name", to avoid warnings.
authorMatt Birkholz <matt@birchwood-abbey.net>
Sat, 25 Apr 2026 22:55:25 +0000 (16:55 -0600)
committerMatt Birkholz <matt@birchwood-abbey.net>
Sat, 25 Apr 2026 22:55:25 +0000 (16:55 -0600)
README.org
roles_t/campus/tasks/main.yml

index 4b4f5786a02c293347f53839a30c6025e8460c6f..66833ad7aaaed3aa78fbd0c9a510a0ff13dcd4f6 100644 (file)
@@ -5671,11 +5671,11 @@ manpage.)
 - name: Set domain name.
   become: yes
   vars:
-    name: "{{ inventory_hostname }}"
+    host: "{{ inventory_hostname }}"
   lineinfile:
     path: /etc/hosts
     regexp: "^127.0.1.1[       ].*"
-    line: "127.0.1.1   {{ name }}.{{ domain_priv }} {{ name }}"
+    line: "127.0.1.1   {{ host }}.{{ domain_priv }} {{ host }}"
 #+END_SRC
 
 ** Configure NRPE
index 2714a70dce7086c7c1ecb8f598a2d5cc6910cddc..17a0f8be5274971ef04e880dd860e76d0ead2caa 100644 (file)
 - name: Set domain name.
   become: yes
   vars:
-    name: "{{ inventory_hostname }}"
+    host: "{{ inventory_hostname }}"
   lineinfile:
     path: /etc/hosts
     regexp: "^127.0.1.1[       ].*"
-    line: "127.0.1.1   {{ name }}.{{ domain_priv }} {{ name }}"
+    line: "127.0.1.1   {{ host }}.{{ domain_priv }} {{ host }}"
 
 - name: Install NRPE.
   become: yes