diff --git a/.github/workflows/playbook-test.yml b/.github/workflows/playbook-test.yml index 284e93d..01dffd2 100644 --- a/.github/workflows/playbook-test.yml +++ b/.github/workflows/playbook-test.yml @@ -28,5 +28,5 @@ jobs: - name: Test Ansible Playbook run: | - ansible-playbook playbook.yaml + sudo ansible-playbook playbook.yaml diff --git a/playbook.yaml b/playbook.yaml index b946d90..be20723 100644 --- a/playbook.yaml +++ b/playbook.yaml @@ -2,6 +2,7 @@ - name: Install dependencies and configure environment hosts: localhost gather_facts: true + become: yes tasks: - name: Update apt cache (Ubuntu) apt: