Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - set_fact:
- user_sudo_values: |
- [{% for item in user_sudo_result.results %}
- {
- "key": "{{ item.item }}",
- "value": "{{ item.rc != 1 and item.stdout != "" and "is not allowed to run sudo on" not in item.stdout }}"
- }
- {% endfor %}]
- - set_fact:
- user_sudo: "{{ user_sudo_values }}"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement