Links
- ansible/ansible
- Ansible Documentation
- Best Practices
- Detailed Guides
- The Ansible Configuration File
- Ansible Hosts file syntax: Inventory
- List of Behavioral Inventory Parameters
ansible_ssh_host
- Dynamic Inventory
- List of Behavioral Inventory Parameters
- Introduction To Ad-Hoc Commands
- Playbooks
- Playbooks: Special Topics
- Playbook Roles and Include Statements
- Patterns
- Variables
- Filters
- Version Comparison Filters
- e.g.
{{ ansible_distribution_version | version_compare('12.04', '>=') }}
- e.g.
- Version Comparison Filters
- Filters
- Conditionals
- Loops
- Developing Modules
- Ref: class AnsibleModule
get_bin_path
,run_command
- ansible/ansible-modules-core
- Using Lookups
- redis, etcd, etc.
- env vars:
local_home: "{{ lookup('env','HOME') }}"
(ref)
- Asynchronous Actions and Polling
- Module Index
- All Modules
- Commands
- Files
- acl, copy, fetch, file, lineinfile, replace, template, synchronize, unarchive, xattr
- Inventory: add_host, group_by
- Monitoring, Notification
- Network
- Packaging
- Source Control
- System Modules
- user,
group
- How do I generate crypted passwords for the user module?
python -c "import passlib.hash, getpass; print passlib.hash.sha512_crypt.encrypt(getpass.getpass())"
(OS X)mkpasswd --method=SHA-512
(Linux)
- How do I generate crypted passwords for the user module?
- authorized_key, cron, hostname, service, setup, sysctl
- user,
group
- Utilities
- Ansible Roles on github
- al3x/sovereign
- A set of Ansible playbooks to build and maintain your own private cloud: email, calendar, contacts, file sync, IRC bouncer, VPN, and more.
- al3x/sovereign
Install
sudo python -m pip.__init__ install ansible
Ansible Facts
Ref: How do I see a list of all of the ansible_ variables?
See facts for the local system by running the "setup" module.
ansible -m setup localhost