diff --git a/.github/workflows/ansible-run.yml b/.github/workflows/ansible-run.yml new file mode 100644 index 0000000..8d96eab --- /dev/null +++ b/.github/workflows/ansible-run.yml @@ -0,0 +1,12 @@ +name: ansible-run + +on: [push, pull_request] + +jobs: + ansible-run: + runs-on: ubuntu-22.04 + steps: + - uses: actions/checkout@v4 + + - name: Run ansible playbook + run: ./provision.sh diff --git a/ansible/roles/swapfile/tasks/main.yml b/ansible/roles/swapfile/tasks/main.yml index ba44f48..3c8e5c5 100644 --- a/ansible/roles/swapfile/tasks/main.yml +++ b/ansible/roles/swapfile/tasks/main.yml @@ -21,7 +21,6 @@ fallocate -l {{ swapfile_size }} {{ swapfile_file }} args: creates: "{{ swapfile_file }}" - warn: false register: _write_swapfile tags: - swapfile-write-file