diff --git a/.github/workflows/pull-requests.yml b/.github/workflows/pull-requests.yml index 04fc21a5..e7469217 100644 --- a/.github/workflows/pull-requests.yml +++ b/.github/workflows/pull-requests.yml @@ -25,7 +25,7 @@ jobs: - name: Syntax Check run: | - ansible-playbook -i inventory site.yml --syntax-check + ansible-playbook site.yml --syntax-check - name: Ansible lint run: | diff --git a/Dockerfile b/Dockerfile index 78f3bea8..3dd4f8d6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,7 +15,7 @@ FROM netbootxyz-${NBXYZ_OVERRIDES} AS final RUN \ echo "**** running ansible ****" && \ cd /ansible && \ - ansible-playbook -i inventory site.yml ${EXTRA_VARS} + ansible-playbook site.yml ${EXTRA_VARS} # runtime stage FROM alpine:latest diff --git a/README.md b/README.md index e2f8c972..b1763662 100644 --- a/README.md +++ b/README.md @@ -90,7 +90,7 @@ Please see the [self-hosting docs](https://netboot.xyz/docs/selfhosting/) for mo To generate, run: ``` -ansible-playbook -i inventory site.yml +ansible-playbook site.yml ``` The build output will be located in /var/www/html by default. @@ -98,8 +98,8 @@ The build output will be located in /var/www/html by default. #### Deploying with Docker ``` -docker build -t localbuild -f Dockerfile . -docker run --rm -it -v $(pwd):/buildout localbuild +docker build -t localbuild --platform=linux/amd64 -f Dockerfile . +docker run --rm -it --platform=linux/amd64 -v $(pwd):/buildout localbuild ``` The build output will be in the generated folder `buildout` diff --git a/inventory b/inventory deleted file mode 100644 index 2302edae..00000000 --- a/inventory +++ /dev/null @@ -1 +0,0 @@ -localhost ansible_connection=local