From 9209d134a5e1224f04220c23f67d991a0a96f36c Mon Sep 17 00:00:00 2001 From: jaydee Date: Mon, 11 Dec 2023 17:33:05 +0100 Subject: [PATCH] 111 --- playbooks/00_initial_adjustments.yml | 24 +++++++++++++++++++----- 1 file changed, 19 insertions(+), 5 deletions(-) diff --git a/playbooks/00_initial_adjustments.yml b/playbooks/00_initial_adjustments.yml index 742dcaa..2f7a7de 100644 --- a/playbooks/00_initial_adjustments.yml +++ b/playbooks/00_initial_adjustments.yml @@ -13,18 +13,32 @@ ansible.builtin.lineinfile: path: /home/jd/.bashrc line: "export HISTCONTROL=ignoreboth" + # - name: Set a hostname + # ansible.builtin.hostname: + # name: >- + # {%- if ansible_eth0.macaddress == "00:1e:06:48:cd:8e" -%} + # odroidc4-1 + # {%- elif ansible_eth0.macaddress == "00:1e:06:48:d0:00" -%} + # odroidc4-2 + # {%- elif ansible_eth0.macaddress == "00:1e:06:48:d0:01" -%} + # odroidc4-3 + # {%- elif ansible_eth0.macaddress == "00:1e:06:48:cd:86" -%} + # odroidc4-4 + # {%- elif ansible_eth0.macaddress == "00:1e:06:48:b3:0c" -%} + # odroidc4-5 + # {%- endif -%} - name: Set a hostname ansible.builtin.hostname: name: >- - {%- if ansible_eth0.macaddress == "00:1e:06:48:cd:8e" -%} + {%- if ansible_end0.macaddress == "00:1e:06:48:cd:8e" -%} odroidc4-1 - {%- elif ansible_eth0.macaddress == "00:1e:06:48:d0:00" -%} + {%- elif ansible_end0.macaddress == "00:1e:06:48:d0:00" -%} odroidc4-2 - {%- elif ansible_eth0.macaddress == "00:1e:06:48:d0:01" -%} + {%- elif ansible_end0.macaddress == "00:1e:06:48:d0:01" -%} odroidc4-3 - {%- elif ansible_eth0.macaddress == "00:1e:06:48:cd:86" -%} + {%- elif ansible_end0.macaddress == "00:1e:06:48:cd:86" -%} odroidc4-4 - {%- elif ansible_eth0.macaddress == "00:1e:06:48:b3:0c" -%} + {%- elif ansible_end0.macaddress == "00:1e:06:48:b3:0c" -%} odroidc4-5 {%- endif -%}