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

Permission error #20

Open
BarbzYHOOL opened this issue Oct 6, 2018 · 0 comments
Open

Permission error #20

BarbzYHOOL opened this issue Oct 6, 2018 · 0 comments

Comments

@BarbzYHOOL
Copy link

I have this task:


- name: Symlink "smartless" in "/usr/local/bin/"
  file:
    state: link
    src: "{{ smartless_clone_dir_path }}/smartless/smartless"
    dest: "/usr/local/bin/smartless"
    owner: "{{ smartless_user_name | default(omit) }}"
    group: "{{ smartless_user_name | default(omit) }}"
    mode: "u+rwx,g+rwx,o+rx-w"

And this error using ansible-role:
fatal: [localhost]: FAILED! => {"changed": false, "msg": "Error while linking: [Errno 13] Permission denied", "path": "/usr/local/bin/smartless", "state": "absent"}

I managed to get past the error but I don't know how, I tried -K, -b, -u but it didn't work then suddenly it worked

Can someone explain me? (it's been a while I used ansible tho)

Also this tool is really useful

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

1 participant