diff --git a/playbooks/setup-lxc.yaml b/playbooks/setup-lxc.yaml index 0e3a1f9..8ffdaed 100644 --- a/playbooks/setup-lxc.yaml +++ b/playbooks/setup-lxc.yaml @@ -3,6 +3,7 @@ hosts: lxc connection: "{{ ansible_connection_type | default('local') }}" gather_facts: true + become: true vars_files: - ./vault.yaml @@ -46,6 +47,7 @@ --vault-password-file /root/vault.pass -e confirm_restore=true delegate_to: localhost + become: false when: not apps_docker_dir.stat.exists or not apps_data_dir.stat.exists - name: Copy docker-compose.yml from repo