mirror of
https://github.com/khuedoan/homelab.git
synced 2025-01-05 21:11:52 +07:00
Remove unused Ansible files
This commit is contained in:
parent
565de93c0d
commit
5b84d44d5b
@ -7,10 +7,5 @@ run:
|
||||
--inventory hosts.yml \
|
||||
main.yml
|
||||
|
||||
shutdown:
|
||||
ansible-playbook \
|
||||
--inventory hosts.yml \
|
||||
shutdown.yml
|
||||
|
||||
lint:
|
||||
ansible-lint --project-dir .
|
||||
|
@ -1,4 +0,0 @@
|
||||
disk: "sda"
|
||||
dns_server: "8.8.8.8"
|
||||
network_interface: "eno1"
|
||||
ssh_public_key: "{{lookup('file', '~/.ssh/id_ed25519.pub') }}"
|
@ -1,8 +0,0 @@
|
||||
iso_url: "https://builds.coreos.fedoraproject.org/prod/streams/stable/builds/34.20210529.3.0/x86_64/fedora-coreos-34.20210529.3.0-live.x86_64.iso"
|
||||
iso_checksum: "sha256:6bec8c1e67747c4d2fd8dca8bb833b74879d9c60c99d9edd4c4f17e2830ed6f0"
|
||||
iso_file_name: "fedora-coreos-34.20210529.3.0-live.x86_64.iso"
|
||||
|
||||
os_username: admin
|
||||
os_name: CoreOS
|
||||
# TODO (optimize) Get timezone automatically from the controller
|
||||
timezone: Asia/Ho_Chi_Minh
|
@ -9,8 +9,6 @@
|
||||
state: directory
|
||||
loop:
|
||||
- "{{ role_path }}/build"
|
||||
- "{{ role_path }}/files/images"
|
||||
- "{{ role_path }}/build/mnt"
|
||||
|
||||
- name: Copy configs
|
||||
copy:
|
||||
@ -22,7 +20,7 @@
|
||||
src: dhcp/dhcpd.conf.j2
|
||||
dest: "{{ role_path }}/build/dhcp/dhcpd.conf"
|
||||
|
||||
- name: Start ephemeral PXE server
|
||||
- name: Start ephemeral DHCP server
|
||||
docker_compose:
|
||||
project_src: "{{ role_path }}/build"
|
||||
state: present
|
||||
|
@ -1,11 +0,0 @@
|
||||
- name: Shutdown the homelab
|
||||
hosts: metal
|
||||
gather_facts: no
|
||||
tasks:
|
||||
- name: Unconditionally shut down the machine
|
||||
raw: poweroff
|
||||
ignore_errors: yes
|
||||
ignore_unreachable: yes
|
||||
- name: Wait for the machine to shutdown
|
||||
shell: "until ! ping -c 1 {{ ansible_host }}; do sleep 1; done"
|
||||
delegate_to: localhost
|
Loading…
Reference in New Issue
Block a user