Skip to content

Instantly share code, notes, and snippets.

@colthreepv
Last active August 29, 2015 14:18
Show Gist options
  • Save colthreepv/efc77c0c00aba144d966 to your computer and use it in GitHub Desktop.
Save colthreepv/efc77c0c00aba144d966 to your computer and use it in GitHub Desktop.
Bug with sudo in ansible-pull 1.9.0.1
---
- name: trying to create a directory that requires sudo
file:
state=directory
path=/helloworld
# sudo should not be required there!
- name: removing it
file:
state=absent
path=/helloworld
# sudo should not be required there!
[localhost]
127.0.0.1
---
- hosts: 127.0.0.1
connection: local
tasks:
- name: trying to create a directory that requires sudo
file:
state=directory
path=/helloworld
sudo: yes
- name: eliminating it
file:
state=absent
path=/helloworld
sudo: yes
- { include: another.yml, sudo: yes }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment