For some reasons your user doesn't have permissions to write in
/Users/terencefaul/.ansible/tmp.

Try the following (writing commands by memory):

sudo mkdir /Users/terencefaul/.ansible
sudo chown -R terencefaul /Users/terencefaul/.ansible

Then try again.

On mar 5 set 2017, 20:07 Terence Faul <[email protected]> wrote:

> When I try and install the controller I get
>
> Tmac:openwisp2-ansible-playbook terencefaul$ ansible-playbook -i hosts
> playbook.yml -u root -k --ask-sudo-pass
>
> Traceback (most recent call last):
>
>   File "/usr/local/bin/ansible-playbook", line 43, in <module>
>
>     import ansible.constants as C
>
>   File "/Library/Python/2.7/site-packages/ansible/constants.py", line 202,
> in <module>
>
>     DEFAULT_LOCAL_TMP         = get_config(p, DEFAULTS, 'local_tmp',
>   'ANSIBLE_LOCAL_TEMP',      '~/.ansible/tmp', value_type='tmppath')
>
>   File "/Library/Python/2.7/site-packages/ansible/constants.py", line 109,
> in get_config
>
>     makedirs_safe(value, 0o700)
>
>   File "/Library/Python/2.7/site-packages/ansible/utils/path.py", line 71,
> in makedirs_safe
>
>     raise AnsibleError("Unable to create local directories(%s): %s" %
> (to_native(rpath), to_native(e)))
>
> ansible.errors.AnsibleError: Unable to create local
> directories(/Users/terencefaul/.ansible/tmp): [Errno 13] Permission denied:
> '/Users/terencefaul/.ansible/tmp'
>
> On Tuesday, September 5, 2017 at 11:43:37 AM UTC+2, Federico Capoano wrote:
>>
>> Forgot to reply to this question:
>>
>> On Tuesday, September 5, 2017 at 11:23:48 AM UTC+2, Terence Faul wrote:
>>>
>>>
>>> If I install the openWISP config package on an existing openwrt device,
>>> will if not autoregister?
>>>
>>
>> Yes but you will have to manually configure the URL and shared secret
>> parameters in /etc/config/openwisp each time you install it on a device.
>>
>> If you need to perform this operation for many devices (more than 10) you
>> may want to use a script that does it for you.
>>
>> Federico
>>
> --
> 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].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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].
For more options, visit https://groups.google.com/d/optout.

Reply via email to