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
task path: /home/bcoca/work/envs/searchpath/roles/test3/tasks/main.yml:4 | |
/home/bcoca/work/envs/searchpath/roles/test3 | |
/home/bcoca/work/envs/searchpath/roles/test3/files/test.txt | |
/home/bcoca/work/envs/searchpath/roles/test2 | |
/home/bcoca/work/envs/searchpath/roles/test2/files/test.txt | |
/home/bcoca/work/envs/searchpath/roles/test1 | |
/home/bcoca/work/envs/searchpath/roles/test1/files/test.txt | |
/home/bcoca/work/envs/searchpath | |
/home/bcoca/work/envs/searchpath/files/test.txt | |
fatal: [localhost]: FAILED! => {"failed": true, "msg": "the file_name '/home/bcoca/work/envs/searchpath/test.txt' does not exist, or is not readable"} |
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
#>ansible -i 'lola,' localhost -m debug -a 'var=groups' | |
localhost | SUCCESS => { | |
"groups": { | |
"all": [ | |
"lola" | |
], | |
"ungrouped": [ | |
"localhost" | |
] | |
} |
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
diff --git a/lib/ansible/inventory/__init__.py b/lib/ansible/inventory/__init__.py | |
index 4047698..277b91f 100644 | |
--- a/lib/ansible/inventory/__init__.py | |
+++ b/lib/ansible/inventory/__init__.py | |
@@ -485,7 +485,6 @@ class Inventory(object): | |
display.warning('Unable to determine python interpreter from sys.executable. Using /usr/bin/python default. You can correct this by setting ansible_python | |
py_interp = '/usr/bin/python' | |
new_host.set_variable("ansible_python_interpreter", py_interp) | |
- self.get_group("ungrouped").add_host(new_host) | |
return new_host |
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
def _create_implicit_localhost(self, pattern): | |
- new_host = Host(pattern) | |
- new_host.address = "127.0.0.1" | |
- new_host.implicit = True | |
- new_host.vars = self.get_host_vars(new_host) | |
- new_host.set_variable("ansible_connection", "local") | |
- if "ansible_python_interpreter" not in new_host.vars: | |
- py_interp = sys.executable | |
- if not py_interp: | |
- # sys.executable is not set in some cornercases. #13585 |
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
def _create_implicit_localhost(self, pattern): | |
- new_host = Host(pattern) | |
- new_host.address = "127.0.0.1" | |
- new_host.implicit = True | |
- new_host.vars = self.get_host_vars(new_host) | |
- new_host.set_variable("ansible_connection", "local") | |
- if "ansible_python_interpreter" not in new_host.vars: | |
- py_interp = sys.executable | |
- if not py_interp: | |
- # sys.executable is not set in some cornercases. #13585 |
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
diff --git a/lib/ansible/module_utils/basic.py b/lib/ansible/module_utils/basic.py | |
index 3f27ae8..00dc280 100644 | |
--- a/lib/ansible/module_utils/basic.py | |
+++ b/lib/ansible/module_utils/basic.py | |
@@ -27,8 +27,8 @@ | |
# USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | |
# | |
-BOOLEANS_TRUE = ['yes', 'on', '1', 'true', 1, True] | |
-BOOLEANS_FALSE = ['no', 'off', '0', 'false', 0, False] |
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
diff --git a/lib/ansible/constants.py b/lib/ansible/constants.py | |
index f6311f2..e24ed82 100644 | |
--- a/lib/ansible/constants.py | |
+++ b/lib/ansible/constants.py | |
@@ -29,12 +29,14 @@ from ansible.compat.six.moves import configparser | |
from ansible.parsing.quoting import unquote | |
from ansible.errors import AnsibleOptionsError | |
+BOOL_TRUE = frozenset([ "true", "t", "y", "1", "yes", "on" ]) | |
+ |
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
diff --git a/lib/ansible/plugins/__init__.py b/lib/ansible/plugins/__init__.py | |
index 19b2173..4daf277 100644 | |
--- a/lib/ansible/plugins/__init__.py | |
+++ b/lib/ansible/plugins/__init__.py | |
@@ -371,6 +371,7 @@ class PluginLoader: | |
obj = getattr(self._module_cache[path], self.class_name) | |
except AttributeError as e: | |
display.warning("Skipping plugin (%s) as it seems to be invalid: %s" % (path, to_unicode(e))) | |
+ continue |
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: copy configuration file to /etc/pf.conf | |
become: yes | |
copy: backup=yes mode=0644 owner=root group=wheel src=pf.conf dest=/etc/pf.conf | |
register: pfcopy | |
notify: "{{ 'Status: Enabled' in pfstatus.stdout|ternary('reload pf service', ['start pf service', 'delayed local wait]) }}" | |
# handlers | |
... |
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
METADATA: | |
support: none|contrib|core|partner | |
status: preview|stable|deprecated|removed | |
partner: | |
name: vmware | |
url: http://www.vmware.com | |
language: | |
name: python | |
versions: [2.4,2.6,2.7,3.5] | |