Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into ubuntu_24_04
Browse files Browse the repository at this point in the history
  • Loading branch information
cradle8810 committed Apr 30, 2024
2 parents c28e923 + 4abc516 commit ce88fb3
Show file tree
Hide file tree
Showing 10 changed files with 24 additions and 107 deletions.
14 changes: 0 additions & 14 deletions .gitlab-ci.yml

This file was deleted.

1 change: 1 addition & 0 deletions inventories/host_vars/console.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ apt:
- p7zip-full
- python3-pip
- samba-common
- sshpass
- vim
- vlc
- wireshark
Expand Down
48 changes: 0 additions & 48 deletions inventories/host_vars/hosts_hayaworld.yml

This file was deleted.

1 change: 1 addition & 0 deletions inventories/host_vars/macbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ brew_taps:
- libaacs
- libde265
- libheif
- mas
- nkf
- p7zip
- pdftoipe
Expand Down
31 changes: 19 additions & 12 deletions inventories/host_vars/networks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ network:
interface: ens160
ipv4: 192.168.1.100
shortname: rui
win10:
hostname: step.hayaworld.local
interface: ens160
ipv4: 192.168.1.101
shortname: win10
console:
hostname: console.hayaworld.local
interface: ens160
Expand All @@ -15,16 +20,11 @@ network:
interface: ens160
ipv4: 192.168.1.104
shortname: runner
docker:
hostname: docker.hayaworld.local
zabbix:
hostname: zabbix.hayaworld.local
interface: ens160
ipv4: 192.168.1.106
shortname: docker
ubuntu2404:
hostname: ubuntu2404.hayaworld.local
interface: ens160
ipv4: 192.168.1.107
shortname: ubuntu2404
shortname: zabbix
haru:
hostname: haru.hayaworld.local
interface: ens160
Expand All @@ -35,26 +35,33 @@ network:
interface: ens160
ipv4: 192.168.1.109
shortname: bsd
jenkins:
hostname: jenkins.hayaworld.local
step:
hostname: step.hayaworld.local
interface: ens160
ipv4: 192.168.1.111
shortname: jenkins
shortname: step
tm:
hostname: tm.hayaworld.local
interface: ens160
ipv4: 192.168.1.112
shortname: tm
jenkins:
hostname: jenkins.hayaworld.local
interface: ens160
ipv4: 192.168.1.131
shortname: jenkins
skylark:
hostname: skylark.hayaworld.local
interface: ens160
ipv4: 192.168.1.200
shortname: skylark


network_dhcp:
macbook:
hostname: HayabookAir2023.hayaworld.local
shortname: HayabookAir2023


subnet:
mask: 24
gw4: 192.168.1.1
Expand Down
15 changes: 0 additions & 15 deletions ip_range.txt

This file was deleted.

2 changes: 1 addition & 1 deletion macbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
tasks:
- name: Set Hostname
ansible.builtin.hostname:
name: "{{ network.macbook.hostname }}"
name: "{{ network_dhcp.macbook.hostname }}"
become: true
tags:
- network
Expand Down
14 changes: 0 additions & 14 deletions netplan.sample.yml

This file was deleted.

1 change: 0 additions & 1 deletion rui.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
- inventories/host_vars/rui/ads_hosts/NXDOMAIN.yml
- inventories/host_vars/rui/ads_hosts/NXDOMAIN_book_scam.yml
- inventories/host_vars/rui.yml
- inventories/host_vars/hosts_hayaworld.yml
- inventories/host_vars/networks.yml

handlers:
Expand Down
4 changes: 2 additions & 2 deletions templates/rui/etc/hosts.j2
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6

{% for item in hosts_hayaworld %}
{{ item.IP }} {{ item.A }}
{% for host in network.values() %}
{{ host.ipv4 }} {{ host.hostname }}
{% endfor %}

0 comments on commit ce88fb3

Please sign in to comment.