my playbooks have broke since 1.9. Sudo issues it seems

Hi all,

So, since 1.9.0.1-1 my playbooks have broken.

My playbook:

roles:

  • role: common
    sudo: yes

IOError: [Errno 13] Permission denied: ‘/etc/fstab’
OpenSSH_6.8p1, OpenSSL 1.0.2a 19 Mar 2015

The fix:

Add sudo: yes to the task:

cat roles/common/tasks/main.yml

this should be fixed in current devel, roles and includes were not
passing sudo parameters to their tasks.

Okay thanks Brain. Was a bug introduced?

I am running version from Arch Linux (https://www.archlinux.org/packages/community/any/ansible/)

Two options:

  • Role back to to 1.8.4 (sudo pacman -U /var/cache/pacman/pkg/ansible-1.8.4-1-any.pkg.tar.xz)
  • Or install devel.

Just FYI:

Added IgnorePkg=ansible into my pacman.conf and rolled back to 1.8.4.

Third option if you need it is to run the stable-1.9 branch. That is what we’ll be cutting the 1.9.1 (and other future, 1.9 releases) from.

-Toshio

It was an 'unknown feature' but we decided to support it so it is a
bug, we will be releasing fix in 1.9.1 soon.

Ah okay. Thanks.

I see your commit https://github.com/bcoca/ansible/commit/662b35cbce50b43f542750451fd35d58bfa2ffd9

I will just use 1.8.4 for now, and will upgrade to 1.9.1 when its released.

Thanks for all your efforts Brain, you do a great job

Ben

Hi,

You have devel provided in AUR already if it can help:

https://aur.archlinux.org/packages/ansible-git/

Cheers,

M

Seems like this is still an issue on 1.9.1. Test it this morning that the workaround is still needed.

@adam, I cannot reproduce the original problem anymore, can you give
an example in which this fails?