Skip to content
This repository has been archived by the owner on Feb 20, 2020. It is now read-only.

Destination /usr/share/go-server not writable #39

Open
aloysius-lim opened this issue Dec 22, 2015 · 2 comments
Open

Destination /usr/share/go-server not writable #39

aloysius-lim opened this issue Dec 22, 2015 · 2 comments

Comments

@aloysius-lim
Copy link

When using the server role, the following output is produced:

TASK [tpbrown.gocd/roles/server : create script for automated Go configuration backups to Git] ***
fatal: [gocd_server]: FAILED! => {"changed": true, "failed": true, "msg": "Destination /usr/share/go-server not writable"}

Here is the playbook:

- hosts: gocd_server
  roles:
    - tpbrown.gocd/roles/common
    - tpbrown.gocd/roles/server

A simple fix would be to add sudo: yes to this step:

# roles/server/tasks/go-server.yml
- name: create script for automated Go configuration backups to Git
  sudo: yes
  template: backup=no dest=/usr/share/go-server/ mode=0755 src=backup_to_git.sh
@johnmckinzie
Copy link

@aloysius-lim I tried making the change you suggest (sudo is now become, by they way) and I'm still getting the same error. Did it work when you made the change?

@aloysius-lim
Copy link
Author

It worked for me. You might want to check whether the SSH user that you're logging into the target host with has sudo permissions

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants