Skip to content

Conversation

@howard-e
Copy link
Contributor

This PR enforces deployed project directory (and contents) as being owned by the defined ansible application_user

Attempting to solve an issue which caused clashes when deploying to the sandbox when another user did the deploy. Previously, if userA did the deploy and then userB follows, there would be permission issues with the Perform source code synchronization step. The ansible playbook is generally expecting the user to be {{application_user}}

Getting through this previously looked like:

  1. ssh'ing into sandbox
  2. Running chown -R myuser:staff /path/to/project to claim ownership if updated by someone else
  3. Re-running the ansible-playbook deployment to sandbox

NOTE: This doesn't affect the staging and production environments.

@howard-e howard-e changed the title Enforce ownership of deployed project in sandbox environment fix: Enforce ownership of deployed project in sandbox environment Aug 26, 2025
@jugglinmike
Copy link
Contributor

The "synchronize" task is being executed with the become directive, so I wouldn't expect the deploying user to have any bearing here. Any thoughts about why it does?

@howard-e
Copy link
Contributor Author

howard-e commented Sep 2, 2025

The "synchronize" task is being executed with the become directive, so I wouldn't expect the deploying user to have any bearing here. Any thoughts about why it does?

Good question, because it should. Will investigate further why that is

@howard-e howard-e marked this pull request as draft September 2, 2025 16:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants