Last active
August 29, 2015 14:18
-
-
Save colthreepv/efc77c0c00aba144d966 to your computer and use it in GitHub Desktop.
Bug with sudo in ansible-pull 1.9.0.1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- 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! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[localhost] | |
127.0.0.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- 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