浏览代码

Remove unneeded inventory file

Antony Messerli 5 月之前
父节点
当前提交
bb48e64ebb
共有 4 个文件被更改,包括 5 次插入6 次删除
  1. 1 1
      .github/workflows/pull-requests.yml
  2. 1 1
      Dockerfile
  3. 3 3
      README.md
  4. 0 1
      inventory

+ 1 - 1
.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: |

+ 1 - 1
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

+ 3 - 3
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`

+ 0 - 1
inventory

@@ -1 +0,0 @@
-localhost ansible_connection=local