You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Dag Wieers
cabbb9fce7
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
apt
Fix invalid usage or fail_json in apt module
12 years ago
apt_repository
Merge branch 'binpath' of https://github.com/sfromm/ansible into devel
12 years ago
assemble
backuplocal => backup_local for API standardization reasons
12 years ago
async_status
Make pep8 tests run against the library directory as well, and associated tweaks (mostly to indentation) in the library
12 years ago
async_wrapper
whitespace + remove deprecated YAML parser (migration script lives in examples/scripts and warning was added
12 years ago
authorized_key
whitespace + remove deprecated YAML parser (migration script lives in examples/scripts and warning was added
12 years ago
command
Allow ~ expansion in chdir argument of command module
12 years ago
copy
backuplocal => backup_local for API standardization reasons
12 years ago
easy_install
Add option required=(True|False) to get_bin_path and update modules
12 years ago
facter
Make pep8 tests run against the library directory as well, and associated tweaks (mostly to indentation) in the library
12 years ago
fetch
Setup module no longer saves to disk, as templates are mostly useful in playbooks and this allows lots of simplifications
13 years ago
file
Handle special files just like normal files
12 years ago
get_url
Adds a thirsty=yes|no to the get_url module, such that if downloading a large file from the internet you can decide
12 years ago
git
Remove obsolete comment
12 years ago
group
Add option required=(True|False) to get_bin_path and update modules
12 years ago
lineinfile
backuplocal => backup_local for API standardization reasons
12 years ago
mount
fixed missing module argument for mount module
12 years ago
mysql_db
Added login_unix_socket option to mysql_db module
12 years ago
mysql_user
Added login_unix_socket option to mysql_user module
12 years ago
nagios
Change from a module config file to brute force locating the nagios configs so we can find the command file.
12 years ago
ohai
Make pep8 tests run against the library directory as well, and associated tweaks (mostly to indentation) in the library
12 years ago
ping
Add encoding lines to python modules such that they can take unicode options if they are fed them, since the
12 years ago
pip
Add option required=(True|False) to get_bin_path and update modules
12 years ago
postgresql_db
bugfix in sql query
12 years ago
postgresql_user
Typo
12 years ago
raw
Setup module no longer saves to disk, as templates are mostly useful in playbooks and this allows lots of simplifications
13 years ago
seboolean
chmod +x
12 years ago
selinux
chmod +x
12 years ago
service
Migrate remaining modules to use get_bin_path in module_common.py
12 years ago
setup
Add /proc/cmdline information to the default facts
12 years ago
shell
Add module common code to allow it to be easier to indicate whether arguments are mutually exclusive, required in conjunction, or whether one of a list of arguments is required. This simplifies writing Python modules.
12 years ago
slurp
Add encoding lines to python modules such that they can take unicode options if they are fed them, since the
12 years ago
subversion
Subversion dest should allow ~ expansion
12 years ago
supervisorctl
Use `get_bin_path` properly
12 years ago
template
Setup module no longer saves to disk, as templates are mostly useful in playbooks and this allows lots of simplifications
13 years ago
user
Add option required=(True|False) to get_bin_path and update modules
12 years ago
virt
Make pep8 tests run against the library directory as well, and associated tweaks (mostly to indentation) in the library
12 years ago
wait_for
chmod +x
12 years ago
yum
fix up local_nvra
12 years ago