Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fails during homebrew steps on mac os x 10.13.6 #1

Open
Kollerb04 opened this issue Aug 7, 2018 · 4 comments
Open

Fails during homebrew steps on mac os x 10.13.6 #1

Kollerb04 opened this issue Aug 7, 2018 · 4 comments

Comments

@Kollerb04
Copy link

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}`

@mababio
Copy link

mababio commented Aug 24, 2018

@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

@Kollerb04
Copy link
Author

Kollerb04 commented Aug 27, 2018

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

@mababio
Copy link

mababio commented Aug 27, 2018

@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

@Shashikant86
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants