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
Patrick McConnell 0c3a273805 Fix for memory fact gathering
I have a host which started to fail while gathering facts after the addition
of expanded memory facts in PR #9839:

Traceback (most recent call last):
  File "/home/ansible/.ansible/tmp/ansible-tmp-1422536976.05-133253824703289/setup", line 4278, in <module>
    main()
  File "/home/ansible/.ansible/tmp/ansible-tmp-1422536976.05-133253824703289/setup", line 137, in main
    data = run_setup(module)
  File "/home/ansible/.ansible/tmp/ansible-tmp-1422536976.05-133253824703289/setup", line 81, in run_setup
    facts = ansible_facts(module)
  File "/home/ansible/.ansible/tmp/ansible-tmp-1422536976.05-133253824703289/setup", line 4217, in ansible_facts
    facts.update(Hardware().populate())
  File "/home/ansible/.ansible/tmp/ansible-tmp-1422536976.05-133253824703289/setup", line 2339, in populate
    self.get_memory_facts()
  File "/home/ansible/.ansible/tmp/ansible-tmp-1422536976.05-133253824703289/setup", line 2375, in get_memory_facts
    'cached': memstats['swapcached']
KeyError: 'swapcached'

My problem host doesn't have SwapCached in /proc/meminfo. It may be better to
set defaults for these keys, since the values provided by /proc/meminfo can
change from version to version.
10 years ago
bin ignore VERSION file in ansible-doc 10 years ago
docs/man Document the --offline parameter to galaxy init 10 years ago
docsite Merge pull request #9584 from Sgoettschkes/issue_docs_missing_ansible_sudo 10 years ago
examples Revert "Fix: Add support for SSL protocol version configuration option" 10 years ago
hacking Use basename -- $0 in case $0 starts with a dash. 10 years ago
lib/ansible Fix for memory fact gathering 10 years ago
packaging Ansible is available in the main Gentoo repository 10 years ago
plugins Cleanup and expand FreeIPA inventory script it now accepts CL 10 years ago
test Correct typo 10 years ago
ticket_stubs typofixes - https://github.com/vlajos/misspell_fixer 10 years ago
v2 Update core modules 10 years ago
.gitignore Updated DEB build workflow 11 years ago
.gitmodules Add branch info for our submodules 10 years ago
CHANGELOG.md Add force=false changes to ChangeLog 10 years ago
CODING_GUIDELINES.md CODING_GUIDELINES: Fix typo: / => \ 11 years ago
CONTRIBUTING.md Update CONTRIBUTING.md 10 years ago
COPYING license file should be in source tree 13 years ago
ISSUE_TEMPLATE.md Replacing the issues template with the updated one from examples 10 years ago
MANIFEST.in prune vs exclude 10 years ago
Makefile Reference tests/README.ME in the Makefile notes 10 years ago
README.md Update contributor info in README 10 years ago
RELEASES.txt Update releases 10 years ago
VERSION Bumping files for 1.9 10 years ago
setup.py Parenthesis mean we can get rid of line continuation markers 10 years ago

README.md

PyPI version PyPI downloads

Ansible

Ansible is a radically simple IT automation system. It handles configuration-management, application deployment, cloud provisioning, ad-hoc task-execution, and multinode orchestration - including trivializing things like zero downtime rolling updates with load balancers.

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

Many users run straight from the development branch (it's generally fine to do so), but you might also wish to consume a release.

You can find instructions here for a variety of platforms. If you decide to go with the development branch, be sure to run "git submodule update --init --recursive" after doing a checkout.

If you want to download a tarball of a release, go to releases.ansible.com, though most users use yum (using the EPEL instructions linked above), apt (using the PPA instructions linked above), or "pip install ansible".

Design Principles

  • Have a dead simple setup process and a minimal learning curve
  • Manage machines very quickly and in parallel
  • Avoid custom-agents and additional open ports, be agentless by leveraging the existing SSH daemon
  • Describe infrastructure in a language that is both machine and human friendly
  • Focus on security and easy auditability/review/rewriting of content
  • Manage new remote machines instantly, without bootstrapping any software
  • Allow module development in any dynamic language, not just Python
  • Be usable as non-root
  • Be the easiest IT automation system to use, ever.

Get Involved

  • Read Community Information for all kinds of ways to contribute to and interact with the project, including mailing list information and how to submit bug reports and code to Ansible.
  • All code submissions are done through pull requests. Take care to make sure no merge commits are in the submission, and use "git rebase" vs "git merge" for this reason. If submitting a large code change (other than modules), it's probably a good idea to join ansible-devel and talk about what you would like to do or add first and to avoid duplicate efforts. This not only helps everyone know what's going on, it also helps save time and effort if we decide some changes are needed.
  • Users list: ansible-project
  • Development list: ansible-devel
  • Announcement list: ansible-announce - read only
  • irc.freenode.net: #ansible

Branch Info

  • Releases are named after Van Halen songs.
  • The devel branch corresponds to the release actively under development.
  • As of 1.8, modules are kept in different repos, you'll want to follow core and extras
  • Various release-X.Y branches exist for previous releases.
  • We'd love to have your contributions, read Community Information for notes on how to get started.

Authors

Ansible was created by Michael DeHaan (michael@ansible.com) and has contributions from over 900 users (and growing). Thanks everyone!

Ansible is sponsored by Ansible, Inc