iOS-Dev-Ansible icon indicating copy to clipboard operation
iOS-Dev-Ansible copied to clipboard

Fails during homebrew steps on mac os x 10.13.6

Open Kollerb04 opened this issue 6 years ago • 4 comments

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 avatar Aug 07 '18 06:08 Kollerb04

@Kollerb04 Can you confirm the following:

  1. /usr/local exists
  2. /usr/local is not a link
  3. The admin group exists on the system

Based on your StackOverflow post I believe the exception is throw here on line 1256

mababio avatar Aug 24 '18 15:08 mababio

1.yes 2.using ls -l appears that its not a link 3.yes

Kollerb04 avatar Aug 27 '18 09:08 Kollerb04

@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

mababio avatar Aug 27 '18 15:08 mababio

@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.

Shashikant86 avatar Aug 27 '18 15:08 Shashikant86