Try to use pre-task on playbook
pre_tasks:
- name: Update APT package cache
apt:
update_cache: true
changed_when: false
retries: 5
delay: 10
register: result
until: result is success
- name: Creates temp directory ansible
file:
path: /var/www/.ansible/tmp
state: directory
owner: www-data
group: www-data
mode: 0777
recurse: yes
Il 31/08/24 17:05, Al-fatih Esport ha scritto:
Unable to use /var/www/.ansible/tmp as temporary directory, failing
back to system: [Errno 13] Permission denied: '/var/www/.ansible'
PLAY RECAP
**********************************************************************************************************************************************************************************************************************************
wireless : ok=98 changed=0 unreachable=0
failed=0 skipped=83 rescued=0 ignored=0
--
You received this message because you are subscribed to the Google
Groups "OpenWISP" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to [email protected].
To view this discussion on the web, visit
https://groups.google.com/d/msgid/openwisp/52e6cfd2-89c6-45a3-8b01-9751708efc59n%40googlegroups.com
<https://groups.google.com/d/msgid/openwisp/52e6cfd2-89c6-45a3-8b01-9751708efc59n%40googlegroups.com?utm_medium=email&utm_source=footer>.
--
Informativa Privacy - Ai sensi del D. Lgs n. 196/2003 (Codice Privacy) si
precisa che le informazioni contenute in questo messaggio sono riservate e ad
uso esclusivo del destinatario. Qualora il messaggio in parola Le fosse
pervenuto per errore, La preghiamo di eliminarlo senza copiarlo e di non
inoltrarlo a terzi, dandocene gentilmente comunicazione. Grazie.
Privacy Information - This message, for the D. Lgs n. 196/2003 (Privacy Code),
may contain confidential and/or privileged information. If you are not the
addressee or authorized to receive this for the addressee, you must not use,
copy, disclose or take any action based on this message or any information
herein. If you have received this message in error, please advise the sender
immediately by reply e-mail and delete this message. Thank you for your
cooperation.
--
You received this message because you are subscribed to the Google Groups
"OpenWISP" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web, visit
https://groups.google.com/d/msgid/openwisp/18179d0f-22b6-4a9e-bb28-8f2197266d05%40gmail.com.