issue while deleting config file for SOLR deployment via ansible
While deploying the solr server I am getting the following error: ```bash deploy-freva-cmd --config inventory.toml --steps solr --server-map freva-map.dkrz.de --verbose [...] TASK [Deleting config file] ********************************************************************************************************************************* fatal: [xces-prod.dkrz.de]: FAILED! => {"changed": true, "cmd": "rm -rf /root/freva-service-config/", "delta": "0:00:00.005277", "end": "2022-08-30 19:23:39.927568", "msg": "non-zero return code", "rc": 1, "start": "2022-08-30 19:23:39.922291", "stderr": "rm: cannot remove ‘/root/freva-service-config/’: Permission denied", "stderr_lines": ["rm: cannot remove ‘/root/freva-service-config/’: Permission denied"], "stdout": "", "stdout_lines": []} ``` even though I crosschecked the chmod of that folder with that of `regiklim-solr` and is the same. I also 777 the folder (and all within) and even removed the folder itself. But I still get the same error. --- On another (maybe related) note I had issues with `solr-server-playbook.yml` here: ```yaml - name: Deleting config file shell: "rm -rf /root/freva-service-config/" warn: false ``` I was getting the following error: ```bash [...] ERROR! conflicting action statements: shell, warn The error appears to be in '/tmp/inventorydb8t0zga/ansible-playbook.yml': line 17, column 5, but may be elsewhere in the file depending on the exact syntax problem. The offending line appears to be: path: /etc/cron.daily - name: Deleting config file ^ here [...] ``` but after changing to: ```yaml - name: Deleting config file shell: "rm -rf /root/freva-service-config/" args: warn: false ``` the process went on until it failed in the same task producing the abovementioned error. the version I am running is the last one: ```bash $ deploy-freva-cmd --version deploy-freva-cmd 2208.0.2 ``` EDIT: I solved the issue for the moment commenting the whole task
issue

Imprint | Privacy Policy