diff --git a/ansible/README.md b/ansible/README.md index 4ce2d54..8340839 100644 --- a/ansible/README.md +++ b/ansible/README.md @@ -44,7 +44,7 @@ ansible-galaxy install --roles-path ./roles -r requirements.yml ``` # Installs entire system PROD -ansible-playbook -vv bootstrap.yml -i hosts/prod.yml +ansible-playbook -v --vault-password-file ~/.ssh/ansible-vault/ogc-api-srv.txt bootstrap.yml -i hosts/prod.yml ``` diff --git a/ansible/bootstrap.yml b/ansible/bootstrap.yml index 0bbbdcf..334d5bb 100644 --- a/ansible/bootstrap.yml +++ b/ansible/bootstrap.yml @@ -52,7 +52,6 @@ accept_hostkey: "yes" force: "yes" - - name: "Ensure ownership to admin user of git dir" ansible.builtin.file: path: "{{ my_git_home }}" diff --git a/ansible/templates/systemd.service.j2 b/ansible/templates/systemd.service.j2 index 877b4ab..18d08cf 100644 --- a/ansible/templates/systemd.service.j2 +++ b/ansible/templates/systemd.service.j2 @@ -1,6 +1,8 @@ [Unit] Description=OgcApiSrv -Requires=docker.service +After=docker.service +BindsTo=docker.service +ReloadPropagatedFrom=docker.service [Service] Type=oneshot