iOS-Dev-Ansible
iOS-Dev-Ansible copied to clipboard
Fails during homebrew steps on mac os x 10.13.6
Running ansible-playbook myplaybook.yml -i myinventory -u myuser -k --ask-sudo-pass
At the step
`- name: Ensure Homebrew parent directory has correct permissions.
file:
path: "{{ homebrew_prefix }}"
owner: root
group: admin
state: directory
mode: 0775
become: yes
Returned with
Ensure Homebrew parent directory has correct permissions.] ****************************************
fatal: [myhost]: FAILED! => {"changed": false, "gid": 0, "group": "wheel", "mode": "0755", "msg": "chgrp failed", "owner": "root", "path": "/usr/local", "size": 608, "state": "directory", "uid": 0}`
@Kollerb04 Can you confirm the following:
- /usr/local exists
- /usr/local is not a link
- The admin group exists on the system
Based on your StackOverflow post I believe the exception is throw here on line 1256
1.yes 2.using ls -l appears that its not a link 3.yes
@Kollerb04 Lets try doing this manually. Let's change uid and gid of the directory without the help of Ansible.
I want to see if this is an Ansible related issue or system level issue. Also let's get the verbose output. Use -vvvv
flag
@Kollerb04 I see that looks like permissions on the machines. As mentioned by @mababio let's try to reproduce this manually see if that's Ansible or permissions in the host machine. We can update this role accordingly.