Commit Graph

1846 Commits (0709c48f6403f43ea31a4a6ac8fb57985321a05f)
 

Author SHA1 Message Date
Michael DeHaan 0709c48f64 Merge pull request #1018 from willthames/template_perms
Fix templates for non root sudo_user
12 years ago
willthames f456d999a9 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)
12 years ago
Michael DeHaan 022b2290bb Changelog update for 0.8 initial merges 12 years ago
Michael DeHaan dc14681530 rename isset to is_set 12 years ago
Michael DeHaan 8621539341 Merge branch 'only_if-isset' of https://github.com/dhozac/ansible into devel 12 years ago
Michael DeHaan 4280e00d56 Merge pull request #1000 from mavimo/patch-1
Add support to removes control param
12 years ago
Michael DeHaan 7ef3e7dccb Merge pull request #1003 from bladypirat/devel
added support for custom port definition for postgresql_* modules
12 years ago
Michael DeHaan 49bef3f6c2 Merge pull request #1005 from dagwieers/cmdline
Add /proc/cmdline information to the default facts
12 years ago
Michael DeHaan fa71237f8a Merge pull request #1012 from jpmens/sshhostkeysosx
Add support for RSA/DSA SSH host key detection in setup module for OS/X
12 years ago
Michael DeHaan ba97ad13e3 Merge pull request #1010 from tima/yaml-jinja
Added to_yaml and from_yaml filters to Jinja environment.
12 years ago
Michael DeHaan 8a09e1281b Fixup modularized template module 12 years ago
Michael DeHaan 633e513a65 Modular server-side actions (squash merge) 12 years ago
Michael DeHaan 975c323e39 Release version bump 12 years ago
Michael DeHaan 979b778430 Spec version fixes 12 years ago
Michael DeHaan 2bf9a92bb6 Don't load plugins starting with "_". 12 years ago
Michael DeHaan 6fb1884a03 Add __init__'s to git 12 years ago
Michael DeHaan 4920533c05 Add --limit to manpage 12 years ago
Jan-Piet Mens b36aa61237 Add support for RSA/DSA SSH host key detection in setup module for OS/X
s/<8spaces>/<4spaces>/g
12 years ago
Timothy Appnel 23cd7ad08a Added to_yaml and from_yaml filters to Jinja environment. 12 years ago
Anastasis Andronidis 02510ec2ff --version is now taking the correct head 12 years ago
Dag Wieers d158218c3f Add /proc/cmdline information to the default facts
The use-case here is that based on information in the /proc/cmdline certain actions can be taken.

A practical example in our case is that we have a play at the end of the provisioning phase that reboots the system. Since we don't want to accidentally reboot a system (or restart the network) on a production machine, having a way to separate an Anaconda post-install (sshd in chroot) with a normal system is a good way to make that distinction.

    ---
    - name: reboot
      hosts: all
      tasks:
      - action: command init 6
        only_if: "not '${ansible_cmdline.BOOT_IMAGE}'.startswith('$')"

A practical problem here is the fact that we cannot simply check whether it is set or empty:

    ---
    - name: reboot
      hosts: all
      tasks:
      - action: command init 6
        only_if: "'${ansible_cmdline.BOOT_IMAGE}'"

If ansible_cmdline was a string, a simple only_if: "'${ansible_cmdline}'.find(' BOOT_IMAGE=')" was an option, but still not very "beautiful" :-/

This implementation uses shlex.split() and uses split(sep, maxsplit=1).
12 years ago
Daniel Hokka Zakrisson 14db2fa376 Add an isset("$var") function to only_if 12 years ago
Piotr Kweclich 8360f9f46c added support for custom port definition 12 years ago
Marco Vito Moscaritolo 2dd430d9c0 Add support to removes control param
Execute action only if specified file using param removes exist (execute reverse control of creates).

Some usage eg.:

```yaml
- name: enable apache2 default websites
  action: command /usr/sbin/a2ensite $item
creates=/etc/apache2/sites-enabled/$item
  with_items:
    - default
    - default-ssl

- name: disable apache2 default websites
  action: command /usr/sbin/a2dissite $item
removes=/etc/apache2/sites-enabled/$item
  with_items:
    - default
    - default-ssl
```
12 years ago
Michael DeHaan f41d3b9bd2 Fix skipped callback 12 years ago
Michael DeHaan eed031cd82 Check for ipv6 12 years ago
Michael DeHaan 96f257cea1 Fix invocation-output-supression code to still provide invocation data to the callbacks. 12 years ago
Michael DeHaan 2843e31e09 Don't add 'n/a' because if running from source there will be no git 12 years ago
Michael DeHaan 0c386b0514 Merge pull request #993 from andronat/repo-as-submodule
Fixed a parsing HEAD problem, when ansible is checked out as a submodule
12 years ago
Anastasis Andronidis ba707f56c1 except now returns a 'n/a' version. Some changes in comments 12 years ago
Michael DeHaan ca7b5cc5a3 update changelog 12 years ago
Michael DeHaan aa704a6111 backuplocal => backup_local for API standardization reasons 12 years ago
Michael DeHaan b97e2a6f5a Merge branch 'backup-common' of https://github.com/dhozac/ansible into devel 12 years ago
Michael DeHaan c69c3d6e18 Merge pull request #995 from mattupstate/devel
Use `get_bin_path` properly for supervisorctl module
12 years ago
Michael DeHaan 758f172027 Merge pull request #996 from dhozac/keep-unsuccessful-result
Keep result pristine for ignore_errors
12 years ago
Daniel Hokka Zakrisson 7a201dbb2e Keep result pristine for ignore_errors 12 years ago
Anastasis Andronidis 63b4f8dd80 small typo 12 years ago
Anastasis Andronidis 44a28838db Fault handling for YAML file and gitdir value. 12 years ago
Daniel Hokka Zakrisson a5d63532d3 Add backup to assemble 12 years ago
Daniel Hokka Zakrisson 2a8b92954f Add backups to lineinfile 12 years ago
Daniel Hokka Zakrisson dfcb9d3c2d Move backup to module_common 12 years ago
Anastasis Andronidis 6c8171f6f9 Appended repo_path 12 years ago
Anastasis Andronidis 4e94db3d78 Fixed a parsing HEAD problem, when ansible is checked out as a submodule
Fixed a parsing HEAD problem, when ansible is checked out as a
submodule in git
12 years ago
Michael DeHaan 7c2fe3da16 Merge pull request #989 from willthames/command-expand-path
Allow ~ expansion in chdir argument of command module
12 years ago
willthames 8b8eae7d82 Allow ~ expansion in chdir argument of command module
This allows the use of ~ in the chdir argument of the command module
I know the later change is absolutely necessary as the first change
was not sufficient. It may be that the first change fixes shell and
the second fixes command.
12 years ago
Michael DeHaan 8c028c4cfa Merge pull request #988 from willthames/svn-expand-path
Subversion dest should allow ~ expansion
12 years ago
willthames d4c4a51866 Subversion dest should allow ~ expansion
Used os.path.expanduser on dest to allow e.g. ~/svn/repo as
a destination
12 years ago
Michael DeHaan 8f220a4f77 Always pipe stderr in the setup module to avoid JSON interference. 12 years ago
Michael DeHaan c04f00e3a6 Fix async callback 12 years ago
Matt Wright d52f1d969b Use `get_bin_path` properly 12 years ago