Adapt module common code to use the systemd journal if it's available
Fix templates for non root sudo_user

When using template module, if a restrictive umask is set, the
sudo_user won't be able to read the /tmp/ansible-dir/source file
after it is copied across following _transfer_str

I wonder if this behaviour shouldn't be abstracted somehow (as
this correction also happens after put_file in the copy module too)
Merge pull request #1018 from willthames/template_perms

Fix templates for non root sudo_user
Fix comment in example config file.

The config file incorrectly mentions the --private-key-file flag.
Should be --private-key
Have ansible respect private_key_file option

The ansible command-line tool was ignoring the private_key_file option.
add import sys to virt module b/c it needs it if the libvirt python
module is missing
Fix postgresql_user bug

If I create a database from scratch and assign permissions by doing:

      - name: ensure database is created
        action: postgresql_db db=$dbname

      - name: ensure django user has access
        action: postgresql_user db=$dbname user=$dbuser priv=ALL password=$dbpassword

Then it fails with the error:

  File "/tmp/ansible-1347048449.32-29998829936529/postgresql_user", line 565, in <module>
    main()
  File "/tmp/ansible-1347048449.32-29998829936529/postgresql_user", line 273, in main
    changed = grant_privileges(cursor, user, privs) or changed
  File "/tmp/ansible-1347048449.32-29998829936529/postgresql_user", line 174, in grant_privileges
    changed = grant_func(cursor, user, name, privilege)\
  File "/tmp/ansible-1347048449.32-29998829936529/postgresql_user", line 132, in grant_database_privilege
    prev_priv = get_database_privileges(cursor, user, db)
  File "/tmp/ansible-1347048449.32-29998829936529/postgresql_user", line 118, in get_database_privileges
    r = re.search('%s=(C?T?c?)/[a-z]+\,?' % user, datacl)
  File "/usr/lib/python2.7/re.py", line 142, in search
    return _compile(pattern, flags).search(string)
TypeError: expected string or buffer

This fix fixes the problem by not executing the regex if the
db query on pg_database returns None.
Made groups.groupname and group_names variables accessible in playbooks.
Install action_plugins
Merge pull request #1025 from dhozac/action_plugins-setup

Install action_plugins
make this python24 compatible
Merge pull request #1022 from skvidal/devel

add import sys to virt module b/c it needs it if the libvirt python
Merge pull request #1021 from lorin/config-key

Have ansible respect private_key_file option
Merge pull request #1014 from marktheunissen/journald

Fix regex that allows passwords to get into syslog, use journal if available.
Merge pull request #1023 from lorin/postgres-user-fix

Fix postgresql_user bug
Merge pull request #1027 from mcodd/setup_bug_python24

setup not python24 compatible in 0.7
Add package to setup.py
Line in file regexep should match a portion of the line, not the whole line!
lineinfile should use 'search' everywhere
Support import of playbooks in other directories

Previously, importing a playbook in a different directory didn't
work because all of the relative paths were resolved relative to
the top-level playbook.

This patch resolves relative paths on a per-play level instead of
relative to the directory of the top-level playbook.

Also removes the dirname argument from the Play._get_vars method
since this argument wasn't used in the metho dbody.