This document is now live at http://docs.ansible.com/guide_rax.html
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
@@ -22,9 +22,11 @@ | |
inventory: rax | |
short_description: Rackspace Public Cloud external inventory script | |
description: | |
- - Generates inventory that Ansible can understand by making API request to Rackspace Public Cloud API | |
+ - Generates inventory that Ansible can understand by making API request to | |
+ Rackspace Public Cloud API | |
- | | |
- When run against a specific host, this script returns the following variables: | |
+ When run against a specific host, this script returns the following |
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/playbook/play_context.py b/lib/ansible/playbook/play_context.py | |
index 1804a03..3703062 100644 | |
--- a/lib/ansible/playbook/play_context.py | |
+++ b/lib/ansible/playbook/play_context.py | |
@@ -80,6 +80,13 @@ MAGIC_VARIABLE_MAPPING = dict( | |
su_flags = ('ansible_su_flags',), | |
) | |
+MAGIC_VARIABLE_UNDEFINED = [ | |
+ 'remote_addr', |
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
{ | |
{% for host in groups.all %} | |
"{{ host }}": {{ hostvars[host]|to_json }}{{ ',' if not loop.last else '' }} | |
{% endfor %} | |
} |
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/test/integration/roles/test_copy/tasks/main.yml b/test/integration/roles/test_copy/tasks/main.yml | |
index edae89f..f15559d 100644 | |
--- a/test/integration/roles/test_copy/tasks/main.yml | |
+++ b/test/integration/roles/test_copy/tasks/main.yml | |
@@ -174,6 +174,24 @@ | |
that: | |
- "not copy_result5|changed" | |
+- name: test recursive copy to directory sub2 | |
+ copy: src=subdir dest={{output_dir}}/sub2 directory_mode=0700 force=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/hacking/test-module b/hacking/test-module | |
index d9f19b7..511be8b 100755 | |
--- a/hacking/test-module | |
+++ b/hacking/test-module | |
@@ -138,8 +138,6 @@ def boilerplate_module(modfile, args, interpreter, check, destfile): | |
) | |
modfile2_path = os.path.expanduser(destfile) | |
- print("* including generated source, if any, saving to: %s" % modfile2_path) | |
- print("* this may offset any line numbers in tracebacks/debuggers!") |
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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# (c) 2016, Matt Martz <matt@sivel.net> | |
# | |
# This file is part of Ansible | |
# | |
# Ansible is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation, either version 3 of the License, or |
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
#!/bin/bash | |
set -x | |
TARGET=${1:-"ubuntu1404"} | |
if [[ "$TARGET" =~ centos7|fedora ]] | |
then | |
TARGET_OPTIONS="--volume=/sys/fs/cgroup:/sys/fs/cgroup:ro" | |
fi |
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
<?php | |
/* | |
Plugin Name: External Shadowbox Automation | |
Plugin URI: http://sivel.net/wordpress/ | |
Description: Automatically adds Shadowbox the activator to external links in your post content | |
Author: Matt Martz | |
Author URI: http://sivel.net | |
Version: 11 | |
*/ | |
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
<?php | |
/* | |
Plugin Name: multi-arg-script | |
Plugin URI: http://sivel.net/wordpress/ | |
Description: multi-arg-script | |
Version: 10 | |
Author: Matt Martz | |
Author URI: http://sivel.net | |
*/ | |
if ( defined('ABSPATH') ) { |