mirror of
https://gitlab.sectorq.eu/jaydee/ansible.git
synced 2025-01-24 04:49:26 +00:00
111
This commit is contained in:
parent
6b0693a9d0
commit
9209d134a5
@ -13,18 +13,32 @@
|
|||||||
ansible.builtin.lineinfile:
|
ansible.builtin.lineinfile:
|
||||||
path: /home/jd/.bashrc
|
path: /home/jd/.bashrc
|
||||||
line: "export HISTCONTROL=ignoreboth"
|
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
|
- name: Set a hostname
|
||||||
ansible.builtin.hostname:
|
ansible.builtin.hostname:
|
||||||
name: >-
|
name: >-
|
||||||
{%- if ansible_eth0.macaddress == "00:1e:06:48:cd:8e" -%}
|
{%- if ansible_end0.macaddress == "00:1e:06:48:cd:8e" -%}
|
||||||
odroidc4-1
|
odroidc4-1
|
||||||
{%- elif ansible_eth0.macaddress == "00:1e:06:48:d0:00" -%}
|
{%- elif ansible_end0.macaddress == "00:1e:06:48:d0:00" -%}
|
||||||
odroidc4-2
|
odroidc4-2
|
||||||
{%- elif ansible_eth0.macaddress == "00:1e:06:48:d0:01" -%}
|
{%- elif ansible_end0.macaddress == "00:1e:06:48:d0:01" -%}
|
||||||
odroidc4-3
|
odroidc4-3
|
||||||
{%- elif ansible_eth0.macaddress == "00:1e:06:48:cd:86" -%}
|
{%- elif ansible_end0.macaddress == "00:1e:06:48:cd:86" -%}
|
||||||
odroidc4-4
|
odroidc4-4
|
||||||
{%- elif ansible_eth0.macaddress == "00:1e:06:48:b3:0c" -%}
|
{%- elif ansible_end0.macaddress == "00:1e:06:48:b3:0c" -%}
|
||||||
odroidc4-5
|
odroidc4-5
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user