Remove unused Ansible files

This commit is contained in:
Khue Doan 2021-07-21 00:27:17 +07:00
parent 565de93c0d
commit 5b84d44d5b
No known key found for this signature in database
GPG Key ID: 4C1A90A461B3C27B
5 changed files with 1 additions and 31 deletions

View File

@ -7,10 +7,5 @@ run:
--inventory hosts.yml \
main.yml
shutdown:
ansible-playbook \
--inventory hosts.yml \
shutdown.yml
lint:
ansible-lint --project-dir .

View File

@ -1,4 +0,0 @@
disk: "sda"
dns_server: "8.8.8.8"
network_interface: "eno1"
ssh_public_key: "{{lookup('file', '~/.ssh/id_ed25519.pub') }}"

View File

@ -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

View File

@ -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

View File

@ -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