Skip to content

Instantly share code, notes, and snippets.

 # Versioning
versioning_status = bucket.get_versioning_status()
- if not versioning_status and versioning:
+ if versioning_status != versioning:
try:
bucket.configure_versioning(versioning)
changed = True
versioning_status = bucket.get_versioning_status()
except S3ResponseError, e:
- module.fail_json(msg=e.message)

diff --git a/lib/ansible/plugins/cache/jsonfile.py b/lib/ansible/plugins/cache/jsonfile.py
index f0ec635..4cc2b55 100644
--- a/lib/ansible/plugins/cache/jsonfile.py
+++ b/lib/ansible/plugins/cache/jsonfile.py
@@ -62,13 +62,16 @@ class CacheModule(BaseCacheModule):
return None
def get(self, key):
-
diff --git a/lib/ansible/cli/galaxy.py b/lib/ansible/cli/galaxy.py
index abc8136..10c8dc5 100644
--- a/lib/ansible/cli/galaxy.py
+++ b/lib/ansible/cli/galaxy.py
@@ -485,22 +485,23 @@ class GalaxyCLI(CLI):
else:
# show all valid roles in the roles_path directory
roles_path = self.get_opt('roles_path')
- roles_path = os.path.expanduser(roles_path)
- if not os.path.exists(roles_path):
# play
- hosts: localhost
gather_facts: false
vars:
me: 0
tasks:
- include: test.yml
# test.yml
ansible -vvvv nyx -m ping --ssh-common-args=''
Using /etc/ansible/ansible.cfg as config file
Loaded callback minimal of type stdout, v2.0
Using module file /home/bcoca/work/ansible-modules-core/system/ping.py
<192.168.0.4> ESTABLISH SSH CONNECTION FOR USER: None
<192.16
diff --git a/contrib/inventory/rax.py b/contrib/inventory/rax.py
index 4ac6b0f..55f3295 100755
--- a/contrib/inventory/rax.py
+++ b/contrib/inventory/rax.py
@@ -144,6 +144,8 @@ Examples:
Use the instance private IP to connect (instead of public IP)
$ RAX_CREDS_FILE=~/.raxpub RAX_ACCESS_NETWORK=private rax.py --list
"""
+from __future__ import (absolute_import, division, print_function)
+__metaclass__ = type
diff --git a/Makefile b/Makefile
index 367987a..4456422 100644
--- a/Makefile
+++ b/Makefile
@@ -261,7 +261,8 @@ deb-src-upload: deb-src
# for arch or gentoo, read instructions in the appropriate 'packaging' subdirectory directory
-webdocs: $(MANPAGES)
+webdocs:
diff --git a/database/postgresql/postgresql_ext.py b/database/postgresql/postgresql_ext.py
index d307963..0056168 100644
--- a/database/postgresql/postgresql_ext.py
+++ b/database/postgresql/postgresql_ext.py
@@ -168,19 +168,18 @@ def main():
changed = not ext_exists(cursor, ext)
elif state == "present":
changed = ext_exists(cursor, ext)
- module.exit_json(changed=changed,ext=ext)
-
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"}
#>ansible -i 'lola,' localhost -m debug -a 'var=groups'
localhost | SUCCESS => {
"groups": {
"all": [
"lola"
],
"ungrouped": [
"localhost"
]
}