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.
 
 
 
 
 
Go to file
Dag Wieers 1e3dcfce4b Add option create= to lineinfile module
We use the lineinfile module to modify configuration files of a proprietary application. This application reads configuration options from files, but does not require those files to exist (if the default options are fine). However this application may modify the configuration file at will, so we cannot copy or template those files. And after a silent install the configuration may not exist (depending on the response file).

Whatever the case, during deployment we need to make sure some configuration options are set after the installation.

So the cleanest way to handle this situation is to allow the lineinfile module to create the file if it is missing (and this is the expected behavior). When I proposed this behavior, @sergevanginderachter needed the same functionality and was now working around it as well.
12 years ago
bin trivial --syntax-check option to ansible to just do the yaml validation 12 years ago
docs/man Release version bump for 0.9 (development branch) 12 years ago
docsite Update 'who uses' page 12 years ago
examples Add note about when you still have to use only_if 12 years ago
hacking DOCUMENTATION: LaTeX template is back 12 years ago
lib/ansible Merge pull request #1477 from skvidal/devel 12 years ago
library Add option create= to lineinfile module 12 years ago
packaging Release version bump for 0.9 (development branch) 12 years ago
plugins Allowing the EC2 inventory script to gracefully handle AWS API issues 12 years ago
test Make group_vars and host_vars available to usr/bin/ansible, and make vars_plugins exist 12 years ago
.gitignore Fix documentation consistency in .gitignore 12 years ago
CHANGELOG.md update changelog 12 years ago
CONTRIBUTING.md Add a bit more info about tests to CONTRIBUTING 12 years ago
COPYING license file should be in source tree 13 years ago
MANIFEST.in Add some docs/examples 12 years ago
Makefile Put generated manpages back in correct directory 12 years ago
README.md Update website link 12 years ago
RELEASES.txt Adds release date for Cathedral 12 years ago
VERSION Release version bump for 0.9 (development branch) 12 years ago
setup.py Fixup setup.py path 12 years ago

README.md

Ansible

Ansible is a radically simple configuration-management, deployment, task-execution, and multinode orchestration framework.

Read the documentation and more at http://ansible.cc

Design Principles

  • Dead simple setup
  • Super fast & parallel by default
  • No server or client daemons; use existing SSHd
  • No additional software required on client boxes
  • Modules can be written in ANY language
  • Awesome API for creating very powerful distributed scripts
  • Be usable as non-root
  • The easiest config management system to use, ever.

Get Involved

Branch Info

  • Releases are named after Van Halen songs.
  • The devel branch corresponds to the release actively under development.
  • Various release-X.Y branches exist for previous releases
  • We'd love to have your contributions, read "CONTRIBUTING.md" for process notes.

Author

Michael DeHaan -- michael.dehaan@gmail.com

http://michaeldehaan.net