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

Add support for Ansible 2.9 #18

Open
walterdolce opened this issue Jun 7, 2019 · 2 comments · May be fixed by #20
Open

Add support for Ansible 2.9 #18

walterdolce opened this issue Jun 7, 2019 · 2 comments · May be fixed by #20

Comments

@walterdolce
Copy link

walterdolce commented Jun 7, 2019

I am running the Ansible 2.9.0.dev0 and v2.0.1 of the Ansible role and it seems they dropped support for sudo in favour of become as highlighted in the documentation.

This breaks the role as Ansible errors with:

ERROR! 'sudo' is not a valid attribute for a Task

The error appears to be in '/path/to/ansible/roles/wtanaka.gcloud-sdk/tasks/compat_sudo.yml': line 2, column 3, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

---
- name: install python-apt on ansible < 1.6.0 and ubuntu et al
  ^ here

This error can be suppressed as a warning using the "invalid_task_attribute_failed" configuration

Converting all sudo task attributes to become should fix the problem.

@walterdolce walterdolce changed the title Convert all "sudo" to "become" Add support for Ansible 2.9 Jun 7, 2019
@walterdolce walterdolce linked a pull request Jun 7, 2019 that will close this issue
@michael-stevens
Copy link

I'm also getting what looks like this problem:

ERROR! conflicting action statements: raw, sudo

The error appears to be in '/home/michael.stevens/.ansible/roles/wtanaka.gcloud_sdk/tasks/compat_sudo.yml': line 2, column 3, but may                                                                                                               
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

---
- name: install python-apt on ansible < 1.6.0 and ubuntu et al
  ^ here

@roelvanduijnhoven
Copy link

This is still a problem in the current repo. And no new version was issued. Can I do something to help this forward?

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