1
0
mirror of https://github.com/adambard/learnxinyminutes-docs.git synced 2025-08-21 22:05:46 +02:00
This commit is contained in:
sirkubax
2018-01-01 21:47:54 +01:00
parent 986813057b
commit 7c5e5e67f6

View File

@@ -408,7 +408,7 @@ $ export ANSIBLE_VAULT_PASSWORD_FILE=~/.ssh/secure_located_file
$ ansible-playbook playbooks/vault_example.yml $ ansible-playbook playbooks/vault_example.yml
# decrypt the file # encrypt the file
$ ansible-vault encrypt path/somefile $ ansible-vault encrypt path/somefile
# view the file # view the file
@@ -428,13 +428,15 @@ You might like to know, that you can build your inventory dynamically.
You do not need to invent the wheel - there are plenty ready to use inventory script for most popular Cloud provicers and a lot of in-house popular usecaseses. You do not need to invent the wheel - there are plenty ready to use inventory script for most popular Cloud provicers and a lot of in-house popular usecaseses.
[AWS example](http://docs.ansible.com/ansible/latest/intro_dynamic_inventory.html#example-aws-ec2-external-inventory-script)
```bash ```bash
$ etc/inv/ec2.py --refresh $ etc/inv/ec2.py --refresh
$ ansible -m ping all -i etc/inv/ec2.py $ ansible -m ping all -i etc/inv/ec2.py
``` ```
Read also about `dynamic inventory` below [Read more](http://docs.ansible.com/ansible/latest/intro_dynamic_inventory.html)
### ansible profiling - callback ### ansible profiling - callback
It is ok that your playbook executes some time. Sometimes you may like to speed things up It is ok that your playbook executes some time. Sometimes you may like to speed things up