Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

permission issue #19

Open
FlorianHeigl opened this issue Apr 3, 2021 · 2 comments
Open

permission issue #19

FlorianHeigl opened this issue Apr 3, 2021 · 2 comments

Comments

@FlorianHeigl
Copy link

one error i saw on multiple tests:

TASK [lucascbeyeler.zimbra : Enabling Zimbra's admin through Proxy Server] ******************************************************
task path: /Users/floh/.ansible/roles/lucascbeyeler.zimbra/tasks/configure/proxy.yml:4
[WARNING]: Unable to use /opt/zimbra/.ansible/tmp as temporary directory, failing back to system: [Errno 13] Permission denied:
'/opt/zimbra/.ansible/tmp'
changed: [Zimbra-T] => {"changed": true, "cmd": ["./zmproxyconfig", "-e", "-w", "-C", "-H", "Zimbra-T.florianheigl.me"], "delta": "0:00:07.303162", "end": "2021-04-03 05:11:57.799669", "rc": 0, "start": "2021-04-03 05:11:50.496507", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []}
@lucascbeyeler
Copy link
Owner

That's a permission problem - your zimbra user is unable to create files inside /opt/zimbra or the file already exists.

@maxxer
Copy link

maxxer commented Sep 4, 2021

That's the default for Zimbra installation. For the same problem I did

- name: "Temporary workdir for zimbra commands"
  file:
    path: "{{ workdir + '/ansibletmp' }}"
    owner: zimbra
    group: zimbra
    state: directory

- name: "Flush Zimbra cache"
  ansible.builtin.command: /opt/zimbra/bin/zmprov fc -a zimlet
  become: yes
  become_user: zimbra
  vars:
    ansible_remote_tmp: "{{ workdir + '/ansibletmp' }}"

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

No branches or pull requests

3 participants