Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
output
templates
README.md Add files for comparing Ansible & Nornir speed Nov 5, 2019
ansible-inventory-100.yaml
ansible-inventory-1000.yaml Add files for comparing Ansible & Nornir speed Nov 5, 2019
ansible-inventory-10000.yaml
ansible-inventory-5000.yaml
ansible-run.yaml
ansible.cfg Add files for comparing Ansible & Nornir speed Nov 5, 2019
generate_inventory.py Add files for comparing Ansible & Nornir speed Nov 5, 2019
nornir-inventory-100.yaml Add files for comparing Ansible & Nornir speed Nov 5, 2019
nornir-inventory-1000.yaml
nornir-inventory-10000.yaml
nornir-inventory-5000.yaml
nornir-run.py
requirements.txt

README.md

Sample files for the article Ansible vs. Nornir: Speed Challenge.

Install requirements

pip install -r requirements.txt

Test Ansible

time ansible-playbook -i ansible-inventory-100.yaml ansible-run.yaml
time ansible-playbook -i ansible-inventory-1000.yaml ansible-run.yaml
time ansible-playbook -i ansible-inventory-5000.yaml ansible-run.yaml
time ansible-playbook -i ansible-inventory-10000.yaml ansible-run.yaml

Test Nornir

time python3 nornir-run.py 100
time python3 nornir-run.py 1000
time python3 nornir-run.py 5000
time python3 nornir-run.py 10000

Generate inventory file

Generate a new inventory with 500 hosts:

python generate_inventory.py 500
You can’t perform that action at this time.