chown is executed after service restart
Summary
When rocketchat service is restarted, playbook marks step rocketchat : create rocketchat directories
as changed.
Steps to reproduce
- Deploy Rocket.Chat
- Restart service
- Run Rocket.Chat deploy
Expected behavior
...
___________________________________________________
< TASK [rocketchat : create rocketchat directories] >
---------------------------------------------------
\ ,-^-.
\ !oYo!
\ /./=\.\______
## )\/\
||-----w||
|| ||
Cowth Vader
ok: [rocketchat] => (item=/etc/docker-rocketchat)
ok: [rocketchat] => (item=/mnt/data/database)
ok: [rocketchat] => (item=/mnt/data/dump)
ok: [rocketchat] => (item=/mnt/data/rocketchat)
...
Actual behavior
...
___________________________________________________
< TASK [rocketchat : create rocketchat directories] >
---------------------------------------------------
\ ,-^-.
\ !oYo!
\ /./=\.\______
## )\/\
||-----w||
|| ||
Cowth Vader
ok: [rocketchat] => (item=/etc/docker-rocketchat)
changed: [rocketchat] => (item=/mnt/data/database)
ok: [rocketchat] => (item=/mnt/data/dump)
ok: [rocketchat] => (item=/mnt/data/rocketchat)
...
Relevant logs and/or screenshots
nope
Possible fixes
Probably the owner of the mongo database directory is not properly set.