├── docsite ├── .nojekyll ├── rst │ ├── modules │ │ └── .gitdir │ ├── quickstart.rst │ ├── guides.rst │ ├── developing.rst │ └── intro.rst ├── favicon.ico ├── _static │ ├── file.png │ ├── minus.png │ ├── plus.png │ ├── favicon.ico │ ├── subtle_dots.png │ ├── ansible-local.css │ └── bootstrap-sphinx.css ├── modules.js ├── _themes │ └── srtd │ │ ├── static │ │ ├── images │ │ │ └── logo_invert.png │ │ ├── font │ │ │ ├── fontawesome_webfont.eot │ │ │ ├── fontawesome_webfont.ttf │ │ │ └── fontawesome_webfont.woff │ │ └── js │ │ │ └── theme.js │ │ ├── theme.conf │ │ ├── __init__.py │ │ └── breadcrumbs.html ├── .gitignore └── rst_common │ └── ansible_ssh_changes_note.rst ├── bin ├── ansible-doc ├── ansible-pull ├── ansible-console ├── ansible-galaxy ├── ansible-playbook └── ansible-vault ├── docs └── man │ ├── man3 │ └── .gitdir │ └── .gitignore ├── VERSION ├── examples ├── hosts.yml └── playbooks │ └── README.md ├── test ├── units │ ├── cli │ │ └── __init__.py │ ├── utils │ │ └── __init__.py │ ├── contrib │ │ ├── __init__.py │ │ └── inventory │ │ │ └── __init__.py │ ├── modules │ │ ├── __init__.py │ │ └── core │ │ │ ├── __init__.py │ │ │ └── test_docker.py │ ├── parsing │ │ └── yaml │ │ │ └── __init__.py │ ├── module_utils │ │ ├── basic │ │ │ └── __init__.py │ │ └── ec2 │ │ │ └── __init__.py │ ├── inventory_test_data │ │ └── group_vars │ │ │ ├── parse │ │ │ └── all.yml │ │ │ └── noparse │ │ │ ├── all.yml~ │ │ │ └── file.txt │ ├── mock │ │ └── path.py │ ├── __init__.py │ └── plugins │ │ └── action │ │ └── fixtures │ │ └── synchronize │ │ ├── basic │ │ ├── task_args_out.json │ │ └── meta.yaml │ │ ├── delegate_remote │ │ ├── task_args_out.json │ │ └── meta.yaml │ │ ├── basic_become │ │ └── task_args_out.json │ │ ├── delegate_remote_su │ │ └── task_args_out.json │ │ ├── basic_become_cli │ │ └── task_args_out.json │ │ ├── basic_vagrant │ │ └── task_args_out.json │ │ ├── basic_vagrant_sudo │ │ └── task_args_out.json │ │ └── basic_vagrant_become_cli │ │ └── task_args_out.json ├── integration │ ├── cleanup_azure.py │ ├── library │ │ └── .gitignore │ ├── roles │ │ ├── test_file │ │ │ ├── files │ │ │ │ ├── foobar │ │ │ │ │ ├── fileA │ │ │ │ │ ├── fileB │ │ │ │ │ └── directory │ │ │ │ │ │ ├── fileC │ │ │ │ │ │ └── fileD │ │ │ │ └── foo.txt │ │ │ └── meta │ │ │ │ └── main.yml │ │ ├── test_includes │ │ │ ├── tasks │ │ │ │ ├── empty.yml │ │ │ │ ├── not_a_role_task.yml │ │ │ │ └── included_task1.yml │ │ │ └── handlers │ │ │ │ ├── main.yml │ │ │ │ └── more_handlers.yml │ │ ├── test_uri │ │ │ ├── files │ │ │ │ ├── fail28.json │ │ │ │ ├── fail15.json │ │ │ │ ├── fail29.json │ │ │ │ ├── fail30.json │ │ │ │ ├── fail0.json │ │ │ │ ├── fail1.json │ │ │ │ ├── fail23.json │ │ │ │ ├── fail26.json │ │ │ │ ├── fail27.json │ │ │ │ ├── fail3.json │ │ │ │ ├── fail7.json │ │ │ │ ├── fail18.json │ │ │ │ ├── fail19.json │ │ │ │ ├── fail22.json │ │ │ │ ├── fail4.json │ │ │ │ ├── fail8.json │ │ │ │ ├── fail10.json │ │ │ │ ├── fail24.json │ │ │ │ ├── fail5.json │ │ │ │ ├── fail6.json │ │ │ │ ├── fail11.json │ │ │ │ ├── fail13.json │ │ │ │ ├── fail14.json │ │ │ │ ├── fail16.json │ │ │ │ ├── fail20.json │ │ │ │ ├── fail21.json │ │ │ │ ├── fail2.json │ │ │ │ ├── fail25.json │ │ │ │ ├── fail12.json │ │ │ │ ├── fail17.json │ │ │ │ ├── pass4.json │ │ │ │ ├── pass1.json │ │ │ │ ├── fail9.json │ │ │ │ ├── pass3.json │ │ │ │ ├── pass2.json │ │ │ │ ├── testserver.py │ │ │ │ └── README │ │ │ ├── meta │ │ │ │ └── main.yml │ │ │ └── vars │ │ │ │ └── main.yml │ │ ├── test_win_copy │ │ │ ├── files │ │ │ │ ├── empty.txt │ │ │ │ ├── foo.txt │ │ │ │ └── subdir │ │ │ │ │ ├── bar.txt │ │ │ │ │ └── subdir2 │ │ │ │ │ ├── baz.txt │ │ │ │ │ └── subdir3 │ │ │ │ │ └── subdir4 │ │ │ │ │ └── qux.txt │ │ │ └── meta │ │ │ │ └── main.yml │ │ ├── test_copy │ │ │ ├── files │ │ │ │ ├── foo.txt │ │ │ │ └── subdir │ │ │ │ │ ├── bar.txt │ │ │ │ │ └── subdir2 │ │ │ │ │ ├── baz.txt │ │ │ │ │ └── subdir3 │ │ │ │ │ └── subdir4 │ │ │ │ │ └── qux.txt │ │ │ └── meta │ │ │ │ └── main.yml │ │ ├── test_lineinfile │ │ │ └── files │ │ │ │ ├── testempty.txt │ │ │ │ ├── testnoeof.txt │ │ │ │ └── test.txt │ │ ├── test_service │ │ │ ├── templates │ │ │ │ └── main.yml │ │ │ ├── files │ │ │ │ ├── ansible.upstart │ │ │ │ ├── ansible-broken.upstart │ │ │ │ └── ansible.systemd │ │ │ └── tasks │ │ │ │ ├── sysv_cleanup.yml │ │ │ │ ├── sysv_setup.yml │ │ │ │ └── upstart_cleanup.yml │ │ ├── test_special_vars │ │ │ ├── vars │ │ │ │ └── main.yml │ │ │ ├── meta │ │ │ │ └── main.yml │ │ │ └── templates │ │ │ │ └── foo.j2 │ │ ├── test_win_file │ │ │ ├── files │ │ │ │ ├── foobar │ │ │ │ │ ├── fileB │ │ │ │ │ ├── directory │ │ │ │ │ │ ├── fileC │ │ │ │ │ │ └── fileD │ │ │ │ │ └── fileA │ │ │ │ └── foo.txt │ │ │ └── meta │ │ │ │ └── main.yml │ │ ├── test_binary │ │ │ ├── files │ │ │ │ ├── b64_utf8 │ │ │ │ ├── b64_latin1 │ │ │ │ └── from_playbook │ │ │ ├── meta │ │ │ │ └── main.yml │ │ │ ├── templates │ │ │ │ ├── from_playbook_template.j2 │ │ │ │ ├── b64_utf8_template.j2 │ │ │ │ └── b64_latin1_template.j2 │ │ │ └── vars │ │ │ │ └── main.yml │ │ ├── test_unarchive │ │ │ ├── files │ │ │ │ ├── foo.txt │ │ │ │ └── test-unarchive-nonascii-くらとみ.tar.gz │ │ │ └── meta │ │ │ │ └── main.yml │ │ ├── test_win_lineinfile │ │ │ ├── files │ │ │ │ ├── testempty.txt │ │ │ │ ├── test_quoting.txt │ │ │ │ ├── testnoeof.txt │ │ │ │ └── test.txt │ │ │ └── meta │ │ │ │ └── main.yml │ │ ├── test_ec2_elb │ │ │ ├── meta │ │ │ │ └── main.yml │ │ │ └── defaults │ │ │ │ └── main.yml │ │ ├── test_stat │ │ │ ├── files │ │ │ │ └── foo.txt │ │ │ └── meta │ │ │ │ └── main.yml │ │ ├── test_su │ │ │ ├── templates │ │ │ │ └── bar.j2 │ │ │ ├── vars │ │ │ │ └── default.yml │ │ │ └── files │ │ │ │ └── baz.txt │ │ ├── test_assemble │ │ │ └── files │ │ │ │ ├── fragment1 │ │ │ │ ├── fragment2 │ │ │ │ ├── fragment3 │ │ │ │ ├── fragment4 │ │ │ │ └── fragment5 │ │ ├── test_become │ │ │ ├── templates │ │ │ │ └── bar.j2 │ │ │ ├── files │ │ │ │ └── baz.txt │ │ │ └── vars │ │ │ │ └── default.yml │ │ ├── test_check_mode │ │ │ ├── files │ │ │ │ └── foo.txt │ │ │ ├── templates │ │ │ │ └── foo.j2 │ │ │ ├── vars │ │ │ │ └── main.yml │ │ │ └── meta │ │ │ │ └── main.yml │ │ ├── test_docker │ │ │ ├── files │ │ │ │ ├── devdockerCA.srl │ │ │ │ └── docker-registry.htpasswd │ │ │ └── tasks │ │ │ │ ├── docker-setup-debian.yml │ │ │ │ └── docker-setup-rht.yml │ │ ├── test_handlers │ │ │ ├── meta │ │ │ │ └── main.yml │ │ │ └── handlers │ │ │ │ └── main.yml │ │ ├── test_sudo │ │ │ ├── templates │ │ │ │ └── bar.j2 │ │ │ ├── vars │ │ │ │ └── default.yml │ │ │ └── files │ │ │ │ └── baz.txt │ │ ├── test_synchronize │ │ │ ├── files │ │ │ │ ├── bar.txt │ │ │ │ └── foo.txt │ │ │ └── meta │ │ │ │ └── main.yml │ │ ├── ec2_elb_instance_setup │ │ │ ├── meta │ │ │ │ └── main.yml │ │ │ ├── defaults │ │ │ │ └── main.yml │ │ │ ├── files │ │ │ │ └── index.html │ │ │ └── tasks │ │ │ │ └── main.yml │ │ ├── test_ec2 │ │ │ ├── vars │ │ │ │ └── main.yml │ │ │ ├── tasks │ │ │ │ └── main.yml │ │ │ ├── defaults │ │ │ │ └── main.yml │ │ │ ├── handlers │ │ │ │ └── main.yml │ │ │ └── meta │ │ │ │ └── main.yml │ │ ├── test_template │ │ │ ├── templates │ │ │ │ ├── short.j2 │ │ │ │ └── foo.j2 │ │ │ ├── meta │ │ │ │ └── main.yml │ │ │ ├── files │ │ │ │ ├── foo-py26.txt │ │ │ │ └── foo.txt │ │ │ └── vars │ │ │ │ └── main.yml │ │ ├── test_win_template │ │ │ ├── files │ │ │ │ └── foo.txt │ │ │ ├── templates │ │ │ │ └── foo.j2 │ │ │ ├── vars │ │ │ │ └── main.yml │ │ │ └── meta │ │ │ │ └── main.yml │ │ ├── test_apt │ │ │ └── meta │ │ │ │ └── main.yml │ │ ├── test_rax_scaling_group │ │ │ ├── files │ │ │ │ └── test.txt │ │ │ └── meta │ │ │ │ └── main.yml │ │ ├── test_yum │ │ │ └── meta │ │ │ │ └── main.yml │ │ ├── test_zypper │ │ │ ├── meta │ │ │ │ └── main.yml │ │ │ └── files │ │ │ │ └── empty.spec │ │ ├── prepare_win_tests │ │ │ └── meta │ │ │ │ └── main.yml │ │ ├── test_async │ │ │ └── meta │ │ │ │ └── main.yml │ │ ├── test_ec2_ami │ │ │ ├── tasks │ │ │ │ └── main.yml │ │ │ ├── vars │ │ │ │ └── main.yml │ │ │ ├── defaults │ │ │ │ └── main.yml │ │ │ └── meta │ │ │ │ └── main.yml │ │ ├── test_ec2_eip │ │ │ ├── vars │ │ │ │ └── main.yml │ │ │ ├── meta │ │ │ │ └── main.yml │ │ │ └── defaults │ │ │ │ └── main.yml │ │ ├── test_ec2_tag │ │ │ ├── tasks │ │ │ │ └── main.yml │ │ │ ├── vars │ │ │ │ └── main.yml │ │ │ ├── defaults │ │ │ │ └── main.yml │ │ │ └── meta │ │ │ │ └── main.yml │ │ ├── test_ec2_vol │ │ │ ├── tasks │ │ │ │ └── main.yml │ │ │ ├── vars │ │ │ │ └── main.yml │ │ │ ├── defaults │ │ │ │ └── main.yml │ │ │ └── meta │ │ │ │ └── main.yml │ │ ├── test_ec2_vpc │ │ │ ├── tasks │ │ │ │ └── main.yml │ │ │ ├── vars │ │ │ │ └── main.yml │ │ │ ├── defaults │ │ │ │ └── main.yml │ │ │ └── meta │ │ │ │ └── main.yml │ │ ├── test_fetch │ │ │ └── meta │ │ │ │ └── main.yml │ │ ├── test_filters │ │ │ ├── files │ │ │ │ └── 9851.txt │ │ │ ├── meta │ │ │ │ └── main.yml │ │ │ ├── templates │ │ │ │ └── py26json.j2 │ │ │ └── vars │ │ │ │ └── main.yml │ │ ├── test_gem │ │ │ └── meta │ │ │ │ └── main.yml │ │ ├── test_git │ │ │ └── meta │ │ │ │ └── main.yml │ │ ├── test_hg │ │ │ └── meta │ │ │ │ └── main.yml │ │ ├── test_mysql_db │ │ │ ├── meta │ │ │ │ └── main.yml │ │ │ └── defaults │ │ │ │ └── main.yml │ │ ├── test_mysql_user │ │ │ ├── meta │ │ │ │ └── main.yml │ │ │ └── defaults │ │ │ │ └── main.yml │ │ ├── test_pip │ │ │ └── meta │ │ │ │ └── main.yml │ │ ├── test_script │ │ │ ├── files │ │ │ │ ├── remove_afile.sh │ │ │ │ ├── test.sh │ │ │ │ └── create_afile.sh │ │ │ └── meta │ │ │ │ └── main.yml │ │ ├── setup_ec2 │ │ │ └── defaults │ │ │ │ └── main.yml │ │ ├── test_apt_repository │ │ │ ├── meta │ │ │ │ └── main.yml │ │ │ └── tasks │ │ │ │ └── cleanup.yml │ │ ├── test_authorized_key │ │ │ ├── meta │ │ │ │ └── main.yml │ │ │ └── defaults │ │ │ │ └── main.yml │ │ ├── test_command_shell │ │ │ ├── files │ │ │ │ ├── test.sh │ │ │ │ ├── remove_afile.sh │ │ │ │ └── create_afile.sh │ │ │ └── meta │ │ │ │ └── main.yml │ │ ├── test_cs_common │ │ │ └── defaults │ │ │ │ └── main.yml │ │ ├── test_cs_iso │ │ │ └── meta │ │ │ │ └── main.yml │ │ ├── test_cs_pod │ │ │ └── meta │ │ │ │ └── main.yml │ │ ├── test_cs_user │ │ │ └── meta │ │ │ │ └── main.yml │ │ ├── test_ec2_elb_lb │ │ │ ├── vars │ │ │ │ └── main.yml │ │ │ ├── meta │ │ │ │ └── main.yml │ │ │ └── defaults │ │ │ │ └── main.yml │ │ ├── test_ec2_facts │ │ │ ├── tasks │ │ │ │ └── main.yml │ │ │ ├── vars │ │ │ │ └── main.yml │ │ │ ├── defaults │ │ │ │ └── main.yml │ │ │ └── meta │ │ │ │ └── main.yml │ │ ├── test_facts_d │ │ │ └── meta │ │ │ │ └── main.yml │ │ ├── test_good_parsing │ │ │ ├── vars │ │ │ │ └── main.yml │ │ │ └── tasks │ │ │ │ ├── test_include.yml │ │ │ │ ├── test_include_conditional.yml │ │ │ │ └── test_include_nested.yml │ │ ├── test_iterators │ │ │ ├── meta │ │ │ │ └── main.yml │ │ │ └── vars │ │ │ │ └── main.yml │ │ ├── test_mysql_variables │ │ │ ├── meta │ │ │ │ └── main.yml │ │ │ └── defaults │ │ │ │ └── main.yml │ │ ├── test_subversion │ │ │ └── meta │ │ │ │ └── main.yml │ │ ├── test_win_regmerge │ │ │ ├── vars │ │ │ │ └── main.yml │ │ │ ├── meta │ │ │ │ └── main.yml │ │ │ ├── files │ │ │ │ ├── settings1.reg │ │ │ │ ├── settings2.reg │ │ │ │ └── settings3.reg │ │ │ └── templates │ │ │ │ └── win_line_ending.j2 │ │ ├── test_apache2_module │ │ │ ├── meta │ │ │ │ └── main.yml │ │ │ └── tasks │ │ │ │ └── main.yml │ │ ├── test_bad_parsing │ │ │ ├── meta │ │ │ │ └── main.yml │ │ │ └── tasks │ │ │ │ ├── scenario3.yml │ │ │ │ ├── scenario4.yml │ │ │ │ ├── scenario1.yml │ │ │ │ └── scenario2.yml │ │ ├── test_changed_when │ │ │ └── meta │ │ │ │ └── main.yml │ │ ├── test_cs_account │ │ │ └── meta │ │ │ │ └── main.yml │ │ ├── test_cs_cluster │ │ │ └── meta │ │ │ │ └── main.yml │ │ ├── test_cs_domain │ │ │ └── meta │ │ │ │ └── main.yml │ │ ├── test_cs_firewall │ │ │ ├── meta │ │ │ │ └── main.yml │ │ │ └── defaults │ │ │ │ └── main.yml │ │ ├── test_cs_instance │ │ │ ├── meta │ │ │ │ └── main.yml │ │ │ ├── defaults │ │ │ │ └── main.yml │ │ │ └── tasks │ │ │ │ ├── main.yml │ │ │ │ └── setup.yml │ │ ├── test_cs_project │ │ │ └── meta │ │ │ │ └── main.yml │ │ ├── test_cs_volume │ │ │ ├── meta │ │ │ │ └── main.yml │ │ │ └── defaults │ │ │ │ └── main.yml │ │ ├── test_handlers_meta │ │ │ ├── meta │ │ │ │ └── main.yml │ │ │ └── handlers │ │ │ │ └── main.yml │ │ ├── test_ignore_errors │ │ │ └── meta │ │ │ │ └── main.yml │ │ ├── test_include_vars │ │ │ ├── vars │ │ │ │ ├── all │ │ │ │ │ └── all.yml │ │ │ │ ├── services │ │ │ │ │ └── webapp.yml │ │ │ │ └── environments │ │ │ │ │ └── development │ │ │ │ │ ├── all.yml │ │ │ │ │ └── services │ │ │ │ │ └── webapp.yml │ │ │ └── defaults │ │ │ │ └── main.yml │ │ ├── test_var_blending │ │ │ ├── meta │ │ │ │ └── main.yml │ │ │ ├── vars │ │ │ │ ├── more_vars.yml │ │ │ │ └── main.yml │ │ │ └── defaults │ │ │ │ └── main.yml │ │ ├── test_win_regedit │ │ │ └── meta │ │ │ │ └── main.yml │ │ ├── test_zypper_repository │ │ │ └── meta │ │ │ │ └── main.yml │ │ ├── test_cs_affinitygroup │ │ │ └── meta │ │ │ │ └── main.yml │ │ ├── test_cs_configuration │ │ │ ├── meta │ │ │ │ └── main.yml │ │ │ └── defaults │ │ │ │ └── main.yml │ │ ├── test_cs_instance_facts │ │ │ ├── meta │ │ │ │ └── main.yml │ │ │ └── defaults │ │ │ │ └── main.yml │ │ ├── test_cs_instancegroup │ │ │ └── meta │ │ │ │ └── main.yml │ │ ├── test_cs_portforward │ │ │ ├── meta │ │ │ │ └── main.yml │ │ │ └── defaults │ │ │ │ └── main.yml │ │ ├── test_cs_resourcelimit │ │ │ └── meta │ │ │ │ └── main.yml │ │ ├── test_cs_securitygroup │ │ │ └── meta │ │ │ │ └── main.yml │ │ ├── test_cs_sshkeypair │ │ │ └── meta │ │ │ │ └── main.yml │ │ ├── test_cs_vmsnapshot │ │ │ ├── meta │ │ │ │ └── main.yml │ │ │ └── defaults │ │ │ │ └── main.yml │ │ ├── test_ec2_key │ │ │ ├── meta │ │ │ │ └── main.yml │ │ │ └── defaults │ │ │ │ └── main.yml │ │ ├── test_lookups │ │ │ ├── vars │ │ │ │ └── main.yml │ │ │ └── meta │ │ │ │ └── main.yml │ │ ├── test_postgresql │ │ │ ├── meta │ │ │ │ └── main.yml │ │ │ └── defaults │ │ │ │ └── main.yml │ │ ├── test_cs_loadbalancer_rule │ │ │ ├── meta │ │ │ │ └── main.yml │ │ │ └── defaults │ │ │ │ └── main.yml │ │ ├── test_cs_securitygroup_rule │ │ │ ├── meta │ │ │ │ └── main.yml │ │ │ └── tasks │ │ │ │ ├── main.yml │ │ │ │ └── cleanup.yml │ │ ├── test_ec2_group │ │ │ ├── meta │ │ │ │ └── main.yml │ │ │ └── defaults │ │ │ │ └── main.yml │ │ ├── test_rax │ │ │ └── meta │ │ │ │ └── main.yml │ │ ├── test_var_precedence_role1 │ │ │ ├── meta │ │ │ │ └── main.yml │ │ │ ├── defaults │ │ │ │ └── main.yml │ │ │ ├── vars │ │ │ │ └── main.yml │ │ │ └── tasks │ │ │ │ └── main.yml │ │ ├── test_win_script │ │ │ ├── files │ │ │ │ ├── test_script.bat │ │ │ │ ├── test_script.cmd │ │ │ │ ├── test_script_creates_file.ps1 │ │ │ │ ├── test_script_removes_file.ps1 │ │ │ │ ├── test_script_bool.ps1 │ │ │ │ ├── test_script.ps1 │ │ │ │ ├── test_script_with_args.ps1 │ │ │ │ ├── test_script_with_errors.ps1 │ │ │ │ └── test_script_with_splatting.ps1 │ │ │ └── defaults │ │ │ │ └── main.yml │ │ ├── ec2_provision_instances │ │ │ ├── meta │ │ │ │ └── main.yml │ │ │ └── defaults │ │ │ │ └── main.yml │ │ ├── test_rax_cbs │ │ │ └── meta │ │ │ │ └── main.yml │ │ ├── test_rax_cdb │ │ │ └── meta │ │ │ │ └── main.yml │ │ ├── test_rax_clb │ │ │ └── meta │ │ │ │ └── main.yml │ │ ├── test_rax_facts │ │ │ └── meta │ │ │ │ └── main.yml │ │ ├── test_rax_meta │ │ │ └── meta │ │ │ │ └── main.yml │ │ ├── test_get_url │ │ │ └── meta │ │ │ │ └── main.yml │ │ ├── test_rax_clb_nodes │ │ │ └── meta │ │ │ │ └── main.yml │ │ ├── test_rax_identity │ │ │ └── meta │ │ │ │ └── main.yml │ │ ├── test_rax_keypair │ │ │ └── meta │ │ │ │ └── main.yml │ │ ├── test_rax_network │ │ │ └── meta │ │ │ │ └── main.yml │ │ ├── test_cloudflare_dns │ │ │ └── defaults │ │ │ │ └── main.yml │ │ ├── test_rax_cbs_attachments │ │ │ └── meta │ │ │ │ └── main.yml │ │ ├── test_rax_cdb_database │ │ │ └── meta │ │ │ │ └── main.yml │ │ ├── test_force_handlers │ │ │ ├── handlers │ │ │ │ └── main.yml │ │ │ └── tasks │ │ │ │ └── main.yml │ │ ├── test_var_precedence_inven_override │ │ │ └── tasks │ │ │ │ └── main.yml │ │ ├── test_win_feature │ │ │ └── defaults │ │ │ │ └── main.yml │ │ ├── test_win_group │ │ │ └── defaults │ │ │ │ └── main.yml │ │ ├── setup_mysql_db │ │ │ ├── vars │ │ │ │ ├── RedHat.yml │ │ │ │ ├── Suse.yml │ │ │ │ ├── Debian.yml │ │ │ │ ├── Fedora.yml │ │ │ │ └── RedHat-7.yml │ │ │ └── defaults │ │ │ │ └── main.yml │ │ ├── test_exoscale_dns │ │ │ └── defaults │ │ │ │ └── main.yml │ │ ├── test_embedded_module │ │ │ ├── library │ │ │ │ └── test_integration_module │ │ │ └── tasks │ │ │ │ └── main.yml │ │ ├── setup_postgresql_db │ │ │ ├── defaults │ │ │ │ └── main.yml │ │ │ ├── vars │ │ │ │ ├── default.yml │ │ │ │ ├── Debian-8.yml │ │ │ │ ├── Ubuntu-14.yml │ │ │ │ ├── Ubuntu-16.yml │ │ │ │ └── Ubuntu-12.yml │ │ │ └── files │ │ │ │ └── pg_hba.conf │ │ ├── test_jenkins_job │ │ │ └── defaults │ │ │ │ └── main.yml │ │ ├── test_vault │ │ │ ├── tasks │ │ │ │ └── main.yml │ │ │ └── vars │ │ │ │ └── main.yml │ │ ├── test_var_precedence_role3 │ │ │ ├── vars │ │ │ │ └── main.yml │ │ │ ├── defaults │ │ │ │ └── main.yml │ │ │ └── tasks │ │ │ │ └── main.yml │ │ ├── test_win_user │ │ │ ├── defaults │ │ │ │ └── main.yml │ │ │ └── files │ │ │ │ └── lockout_user.ps1 │ │ ├── prepare_http_tests │ │ │ ├── defaults │ │ │ │ └── main.yml │ │ │ └── vars │ │ │ │ └── httptester.yml │ │ ├── test_win_service │ │ │ └── defaults │ │ │ │ └── main.yml │ │ ├── test_var_precedence_role2 │ │ │ ├── defaults │ │ │ │ └── main.yml │ │ │ ├── vars │ │ │ │ └── main.yml │ │ │ └── tasks │ │ │ │ └── main.yml │ │ ├── test_var_precedence_dep │ │ │ ├── defaults │ │ │ │ └── main.yml │ │ │ ├── vars │ │ │ │ └── main.yml │ │ │ └── tasks │ │ │ │ └── main.yml │ │ ├── test_gce │ │ │ └── defaults │ │ │ │ └── main.yml │ │ ├── test_gce_pd │ │ │ └── defaults │ │ │ │ └── main.yml │ │ ├── test_var_precedence │ │ │ ├── meta │ │ │ │ └── main.yml │ │ │ └── tasks │ │ │ │ └── main.yml │ │ ├── test_win_get_url │ │ │ └── defaults │ │ │ │ └── main.yml │ │ ├── test_win_msi │ │ │ └── defaults │ │ │ │ └── main.yml │ │ ├── test_win_package │ │ │ └── defaults │ │ │ │ └── main.yml │ │ ├── test_conditionals │ │ │ └── vars │ │ │ │ └── main.yml │ │ ├── test_task_ordering │ │ │ └── tasks │ │ │ │ ├── main.yml │ │ │ │ └── taskorder-include.yml │ │ ├── test_azure │ │ │ └── defaults │ │ │ │ └── main.yml │ │ ├── test_vault_embedded │ │ │ └── tasks │ │ │ │ └── main.yml │ │ ├── test_loops │ │ │ └── tasks │ │ │ │ └── main.yml │ │ ├── test_always_run │ │ │ └── meta │ │ │ │ └── main.yml │ │ └── test_hash_behavior │ │ │ └── meta │ │ │ └── main.yml │ ├── vault-password │ ├── test_includes4.yml │ ├── inventory.local │ ├── inventory.handlers │ ├── test_blocks │ │ ├── fail.yml │ │ ├── nested_fail.yml │ │ └── nested_nested_fail.yml │ ├── group_vars │ │ ├── amazon │ │ ├── local │ │ └── all │ ├── vars │ │ ├── test_hash_vars.yml │ │ ├── test_var_precedence.yml │ │ └── test_var_encrypted.yml │ ├── test_setup.yml │ ├── galaxy_playbook_git.yml │ ├── test_includes.yml │ ├── test_vault.yml │ ├── inventory.group_by │ ├── test_filters.yml │ ├── test_include_vars.yml │ ├── lookup_paths │ │ ├── roles │ │ │ └── showfile │ │ │ │ └── tasks │ │ │ │ └── main.yml │ │ └── testplay.yml │ ├── unicode-test-script │ ├── exoscale.yml │ ├── test_vault_embedded.yml │ ├── azure.yml │ ├── galaxy_playbook.yml │ ├── jenkins.yml │ ├── check_mode.yml │ ├── test_binary_modules.yml │ ├── lookup.properties │ ├── test_includes3.yml │ ├── all.yml │ ├── gce.yml │ ├── inventory.remote.template │ ├── integration_config.yml │ ├── host_vars │ │ └── testhost │ ├── good_parsing.yml │ ├── test_async.yml │ ├── consul_running.py │ ├── test_win_group3.yml │ ├── vars_file.yml │ ├── galaxy_rolesfile │ ├── bad_parsing.yml │ ├── test_tags.yml │ ├── vault-secret.txt │ ├── test_templating_settings.yml │ ├── lookup.ini │ ├── galaxy_roles.yml │ ├── cloudflare.yml │ ├── test_win_group1.yml │ ├── test_win_group2.yml │ ├── test_includes2.yml │ ├── test_test_infra.yml │ ├── credentials.template │ ├── test_handlers.yml │ ├── consul_inventory.yml │ ├── inventory.winrm.template │ ├── test_hash.yml │ ├── test_force_handlers.yml │ └── download_binary_modules.yml ├── samples │ ├── testing │ │ ├── frag1 │ │ ├── frag2 │ │ ├── frag3 │ │ ├── extra_vars.yml │ │ └── vars.yml │ ├── roles │ │ ├── common │ │ │ ├── meta │ │ │ │ └── main.yml │ │ │ └── tasks │ │ │ │ └── main.yml │ │ ├── role_a │ │ │ ├── meta │ │ │ │ └── main.yml │ │ │ └── tasks │ │ │ │ └── main.yml │ │ ├── role_b │ │ │ ├── meta │ │ │ │ └── main.yml │ │ │ └── tasks │ │ │ │ └── main.yml │ │ ├── test_become_r1 │ │ │ ├── meta │ │ │ │ └── main.yml │ │ │ └── tasks │ │ │ │ └── main.yml │ │ ├── test_become_r2 │ │ │ ├── tasks │ │ │ │ └── main.yml │ │ │ └── meta │ │ │ │ └── main.yml │ │ ├── test_role │ │ │ ├── meta │ │ │ │ └── main.yml │ │ │ └── tasks │ │ │ │ └── main.yml │ │ └── test_role_dep │ │ │ └── tasks │ │ │ └── main.yml │ ├── template.j2 │ ├── common_include.yml │ ├── README.md │ ├── test_playbook.include │ ├── l1_include.yml │ ├── test_big_debug.yml │ ├── hosts │ ├── src │ ├── localhost_include.yml │ ├── test_big_ping.yml │ ├── localhosts │ ├── l2_include.yml │ ├── test_run_once.yml │ ├── lookup_pipe.yml │ ├── with_lines.yml │ ├── included_playbook.yml │ ├── l3_include.yml │ ├── with_env.yml │ ├── lookup_file.yml │ ├── test_sudo.yml │ ├── with_fileglob.yml │ ├── test_roles_complex.yml │ ├── test_fact_gather.yml │ ├── lookup_template.yml │ ├── test_play_failure.yml │ ├── test_role.yml │ ├── include.yml │ ├── with_items.yml │ ├── with_first_found.yml │ ├── ignore_errors.yml │ ├── with_random_choice.yml │ ├── with_flattened.yml │ ├── with_indexed_items.yml │ ├── with_together.yml │ ├── test_free.yml │ ├── lookup_password.yml │ ├── with_nested.yml │ ├── test_become.yml │ ├── with_dict.yml │ ├── with_sequence.yml │ ├── with_subelements.yml │ ├── test_blocks_of_blocks.yml │ ├── test_include.yml │ ├── test_block.yml │ └── test_tags.yml ├── utils │ ├── shippable │ │ ├── code-smell-requirements.txt │ │ ├── integration-requirements.txt │ │ ├── python3-test-target-blacklist.txt │ │ ├── modules │ │ │ └── generate-tests-requirements.txt │ │ ├── sanity-requirements.txt │ │ ├── remote-requirements.txt │ │ ├── python3-test-tag-blacklist.txt │ │ ├── ci.sh │ │ └── code-smell.sh │ ├── ansible-playbook_integration_runner │ │ ├── inventory │ │ ├── ansible.cfg │ │ └── roles │ │ │ └── ansible_test_deps │ │ │ ├── vars │ │ │ └── main.yml │ │ │ ├── defaults │ │ │ └── main.yml │ │ │ ├── handlers │ │ │ └── main.yml │ │ │ ├── test │ │ │ ├── inventory │ │ │ ├── roles │ │ │ │ └── ansible_test_deps │ │ │ └── requirements.yml │ │ │ ├── meta │ │ │ ├── .galaxy_install_info │ │ │ └── main.yml │ │ │ └── README.md │ ├── docker │ │ ├── httptester │ │ │ └── services.sh │ │ ├── ubuntu1204 │ │ │ └── init-fake.conf │ │ └── ubuntu1404 │ │ │ └── init-fake.conf │ └── tox │ │ ├── requirements-py3.txt │ │ └── requirements.txt └── code-smell │ ├── required-and-default-attributes.sh │ ├── use-compat-six.sh │ ├── replace-urlopen.sh │ ├── no-basestring.sh │ └── inappropriately-private.sh ├── packaging ├── debian │ ├── compat │ ├── pycompat │ ├── docs │ ├── ansible.dirs │ ├── ansible.install │ └── rules ├── macports │ └── .gitignore ├── gentoo │ └── README.md ├── port │ └── sysutils │ │ └── ansible │ │ └── pkg-descr ├── arch │ └── README.md └── release │ └── templates │ └── RELEASES.tmpl ├── .gitattributes ├── lib └── ansible │ ├── utils │ └── module_docs_fragments │ │ └── __init__.py │ ├── galaxy │ └── data │ │ ├── test_playbook.j2 │ │ └── travis.j2 │ ├── plugins │ ├── test │ │ └── __init__.py │ └── filter │ │ └── __init__.py │ ├── inventory │ └── vars_plugins │ │ └── __init__.py │ └── test-requirements.txt ├── .coveragerc ├── hacking ├── update.sh ├── yamlcheck.py ├── authors.sh └── templates │ └── playbooks_directives.rst.j2 ├── docs-api ├── modules.rst ├── docs-requirements.txt └── index.rst ├── contrib ├── inventory │ ├── cloudstack.ini │ ├── zabbix.ini │ ├── libcloud.ini │ ├── nagios_ndo.ini │ ├── nsot.yaml │ ├── linode.ini │ ├── spacewalk.ini │ └── cobbler.ini └── README.md ├── .gitmodules ├── ticket_stubs ├── wider_discussion.md ├── README.md ├── bug_is_really_a_question.md ├── proposal.md ├── change_applied.md ├── pr_merged.md ├── bug_misunderstanding.md ├── file_under_another_project.md └── bug_confirmed_p1_or_p2.md ├── .yamllint ├── MANIFEST.in └── .github └── PULL_REQUEST_TEMPLATE.md /docsite/.nojekyll: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /bin/ansible-doc: -------------------------------------------------------------------------------- 1 | ansible -------------------------------------------------------------------------------- /bin/ansible-pull: -------------------------------------------------------------------------------- 1 | ansible -------------------------------------------------------------------------------- /docs/man/man3/.gitdir: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /VERSION: -------------------------------------------------------------------------------- 1 | 2.2.0 0.0.devel 2 | -------------------------------------------------------------------------------- /bin/ansible-console: -------------------------------------------------------------------------------- 1 | ansible -------------------------------------------------------------------------------- /bin/ansible-galaxy: -------------------------------------------------------------------------------- 1 | ansible -------------------------------------------------------------------------------- /bin/ansible-playbook: -------------------------------------------------------------------------------- 1 | ansible -------------------------------------------------------------------------------- /bin/ansible-vault: -------------------------------------------------------------------------------- 1 | ansible -------------------------------------------------------------------------------- /docsite/rst/modules/.gitdir: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /examples/hosts.yml: -------------------------------------------------------------------------------- 1 | hosts.yaml -------------------------------------------------------------------------------- /test/units/cli/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/units/utils/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /packaging/debian/compat: -------------------------------------------------------------------------------- 1 | 5 2 | -------------------------------------------------------------------------------- /packaging/debian/pycompat: -------------------------------------------------------------------------------- 1 | 2 2 | -------------------------------------------------------------------------------- /test/units/contrib/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/units/modules/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /packaging/debian/docs: -------------------------------------------------------------------------------- 1 | README.md 2 | -------------------------------------------------------------------------------- /test/integration/cleanup_azure.py: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/samples/testing/frag1: -------------------------------------------------------------------------------- 1 | frag 1 2 | -------------------------------------------------------------------------------- /test/samples/testing/frag2: -------------------------------------------------------------------------------- 1 | frag 2 2 | -------------------------------------------------------------------------------- /test/samples/testing/frag3: -------------------------------------------------------------------------------- 1 | frag 3 2 | -------------------------------------------------------------------------------- /test/units/modules/core/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/units/parsing/yaml/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | CHANGELOG.md merge=union 2 | -------------------------------------------------------------------------------- /test/samples/roles/common/meta/main.yml: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/units/contrib/inventory/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/units/module_utils/basic/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/units/module_utils/ec2/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /docs/man/.gitignore: -------------------------------------------------------------------------------- 1 | *.xml 2 | *.asciidoc 3 | -------------------------------------------------------------------------------- /lib/ansible/utils/module_docs_fragments/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/integration/library/.gitignore: -------------------------------------------------------------------------------- 1 | helloworld_* 2 | -------------------------------------------------------------------------------- /test/integration/roles/test_file/files/foobar/fileA: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/integration/roles/test_file/files/foobar/fileB: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/integration/roles/test_includes/tasks/empty.yml: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/integration/roles/test_uri/files/fail28.json: -------------------------------------------------------------------------------- 1 | [0e] -------------------------------------------------------------------------------- /test/integration/roles/test_win_copy/files/empty.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/integration/roles/test_copy/files/foo.txt: -------------------------------------------------------------------------------- 1 | foo.txt 2 | -------------------------------------------------------------------------------- /test/integration/roles/test_file/files/foo.txt: -------------------------------------------------------------------------------- 1 | foo.txt 2 | -------------------------------------------------------------------------------- /test/integration/roles/test_lineinfile/files/testempty.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/integration/roles/test_service/templates/main.yml: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/integration/roles/test_special_vars/vars/main.yml: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/integration/roles/test_uri/files/fail15.json: -------------------------------------------------------------------------------- 1 | [\naked] -------------------------------------------------------------------------------- /test/integration/roles/test_uri/files/fail29.json: -------------------------------------------------------------------------------- 1 | [0e+] -------------------------------------------------------------------------------- /test/integration/roles/test_uri/files/fail30.json: -------------------------------------------------------------------------------- 1 | [0e+-1] -------------------------------------------------------------------------------- /test/integration/roles/test_win_file/files/foobar/fileB: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/integration/vault-password: -------------------------------------------------------------------------------- 1 | test-vault-password 2 | -------------------------------------------------------------------------------- /test/samples/template.j2: -------------------------------------------------------------------------------- 1 | the variable is {{my_var}} 2 | -------------------------------------------------------------------------------- /test/samples/testing/extra_vars.yml: -------------------------------------------------------------------------------- 1 | num_retries: 2 2 | -------------------------------------------------------------------------------- /packaging/macports/.gitignore: -------------------------------------------------------------------------------- 1 | PortIndex 2 | PortIndex.quick 3 | -------------------------------------------------------------------------------- /test/integration/roles/test_binary/files/b64_utf8: -------------------------------------------------------------------------------- 1 | Café Eñe 2 | -------------------------------------------------------------------------------- /test/integration/roles/test_copy/files/subdir/bar.txt: -------------------------------------------------------------------------------- 1 | baz 2 | -------------------------------------------------------------------------------- /test/integration/roles/test_file/files/foobar/directory/fileC: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/integration/roles/test_file/files/foobar/directory/fileD: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/integration/roles/test_unarchive/files/foo.txt: -------------------------------------------------------------------------------- 1 | foo.txt 2 | -------------------------------------------------------------------------------- /test/integration/roles/test_uri/files/fail0.json: -------------------------------------------------------------------------------- 1 | ["mismatch"} -------------------------------------------------------------------------------- /test/integration/roles/test_win_copy/files/foo.txt: -------------------------------------------------------------------------------- 1 | foo.txt 2 | -------------------------------------------------------------------------------- /test/integration/roles/test_win_file/files/foo.txt: -------------------------------------------------------------------------------- 1 | foo.txt 2 | -------------------------------------------------------------------------------- /test/integration/roles/test_win_lineinfile/files/testempty.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/utils/shippable/code-smell-requirements.txt: -------------------------------------------------------------------------------- 1 | yamllint 2 | -------------------------------------------------------------------------------- /test/utils/shippable/integration-requirements.txt: -------------------------------------------------------------------------------- 1 | jmespath 2 | -------------------------------------------------------------------------------- /test/integration/roles/test_binary/files/b64_latin1: -------------------------------------------------------------------------------- 1 | Café Eñe 2 | -------------------------------------------------------------------------------- /test/integration/roles/test_binary/files/from_playbook: -------------------------------------------------------------------------------- 1 | Café Eñe 2 | -------------------------------------------------------------------------------- /test/integration/roles/test_uri/files/fail1.json: -------------------------------------------------------------------------------- 1 | ["Unclosed array" -------------------------------------------------------------------------------- /test/integration/roles/test_uri/files/fail23.json: -------------------------------------------------------------------------------- 1 | ['single quote'] -------------------------------------------------------------------------------- /test/integration/roles/test_uri/files/fail26.json: -------------------------------------------------------------------------------- 1 | ["line 2 | break"] -------------------------------------------------------------------------------- /test/integration/roles/test_uri/files/fail27.json: -------------------------------------------------------------------------------- 1 | ["line\ 2 | break"] -------------------------------------------------------------------------------- /test/integration/roles/test_uri/files/fail3.json: -------------------------------------------------------------------------------- 1 | ["extra comma",] -------------------------------------------------------------------------------- /test/integration/roles/test_uri/files/fail7.json: -------------------------------------------------------------------------------- 1 | ["Extra close"]] -------------------------------------------------------------------------------- /test/integration/roles/test_win_copy/files/subdir/bar.txt: -------------------------------------------------------------------------------- 1 | baz 2 | -------------------------------------------------------------------------------- /test/integration/roles/test_win_file/files/foobar/directory/fileC: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/integration/roles/test_win_file/files/foobar/directory/fileD: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/integration/roles/test_win_file/files/foobar/fileA: -------------------------------------------------------------------------------- 1 | fileA 2 | -------------------------------------------------------------------------------- /test/integration/roles/test_win_lineinfile/files/test_quoting.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/integration/test_includes4.yml: -------------------------------------------------------------------------------- 1 | - set_fact: 2 | p: 1 3 | -------------------------------------------------------------------------------- /test/integration/roles/test_copy/files/subdir/subdir2/baz.txt: -------------------------------------------------------------------------------- 1 | baz 2 | -------------------------------------------------------------------------------- /test/integration/roles/test_ec2_elb/meta/main.yml: -------------------------------------------------------------------------------- 1 | dependencies: [] 2 | -------------------------------------------------------------------------------- /test/integration/roles/test_stat/files/foo.txt: -------------------------------------------------------------------------------- 1 | templated_var_loaded 2 | -------------------------------------------------------------------------------- /test/integration/roles/test_su/templates/bar.j2: -------------------------------------------------------------------------------- 1 | {{ su_test_user }} 2 | -------------------------------------------------------------------------------- /test/integration/roles/test_uri/files/fail18.json: -------------------------------------------------------------------------------- 1 | {"Missing colon" null} -------------------------------------------------------------------------------- /test/integration/roles/test_uri/files/fail19.json: -------------------------------------------------------------------------------- 1 | {"Double colon":: null} -------------------------------------------------------------------------------- /test/integration/roles/test_uri/files/fail22.json: -------------------------------------------------------------------------------- 1 | ["Bad value", truth] -------------------------------------------------------------------------------- /test/integration/roles/test_uri/files/fail4.json: -------------------------------------------------------------------------------- 1 | ["double extra comma",,] -------------------------------------------------------------------------------- /test/integration/roles/test_uri/files/fail8.json: -------------------------------------------------------------------------------- 1 | {"Extra comma": true,} -------------------------------------------------------------------------------- /test/integration/roles/test_win_copy/files/subdir/subdir2/baz.txt: -------------------------------------------------------------------------------- 1 | baz 2 | -------------------------------------------------------------------------------- /test/samples/roles/role_a/meta/main.yml: -------------------------------------------------------------------------------- 1 | dependencies: 2 | - common 3 | -------------------------------------------------------------------------------- /test/samples/roles/role_b/meta/main.yml: -------------------------------------------------------------------------------- 1 | dependencies: 2 | - common 3 | -------------------------------------------------------------------------------- /test/samples/roles/test_become_r1/meta/main.yml: -------------------------------------------------------------------------------- 1 | allow_duplicates: yes 2 | -------------------------------------------------------------------------------- /test/samples/roles/test_become_r1/tasks/main.yml: -------------------------------------------------------------------------------- 1 | - command: whoami 2 | -------------------------------------------------------------------------------- /test/samples/roles/test_become_r2/tasks/main.yml: -------------------------------------------------------------------------------- 1 | - command: whoami 2 | -------------------------------------------------------------------------------- /test/samples/testing/vars.yml: -------------------------------------------------------------------------------- 1 | vars_file_var: "this is in a vars file" 2 | -------------------------------------------------------------------------------- /test/utils/shippable/python3-test-target-blacklist.txt: -------------------------------------------------------------------------------- 1 | s/ pull / / 2 | -------------------------------------------------------------------------------- /test/integration/inventory.local: -------------------------------------------------------------------------------- 1 | testhost ansible_connection=local 2 | 3 | -------------------------------------------------------------------------------- /test/integration/roles/test_assemble/files/fragment1: -------------------------------------------------------------------------------- 1 | this is fragment 1 2 | -------------------------------------------------------------------------------- /test/integration/roles/test_assemble/files/fragment2: -------------------------------------------------------------------------------- 1 | this is fragment 2 2 | -------------------------------------------------------------------------------- /test/integration/roles/test_assemble/files/fragment3: -------------------------------------------------------------------------------- 1 | this is fragment 3 2 | -------------------------------------------------------------------------------- /test/integration/roles/test_assemble/files/fragment4: -------------------------------------------------------------------------------- 1 | this is fragment 4 2 | -------------------------------------------------------------------------------- /test/integration/roles/test_assemble/files/fragment5: -------------------------------------------------------------------------------- 1 | this is fragment 5 2 | -------------------------------------------------------------------------------- /test/integration/roles/test_become/templates/bar.j2: -------------------------------------------------------------------------------- 1 | {{ become_test_user }} 2 | -------------------------------------------------------------------------------- /test/integration/roles/test_check_mode/files/foo.txt: -------------------------------------------------------------------------------- 1 | templated_var_loaded 2 | -------------------------------------------------------------------------------- /test/integration/roles/test_docker/files/devdockerCA.srl: -------------------------------------------------------------------------------- 1 | D96F3E552F279F46 2 | -------------------------------------------------------------------------------- /test/integration/roles/test_handlers/meta/main.yml: -------------------------------------------------------------------------------- 1 | dependencies: [] 2 | 3 | -------------------------------------------------------------------------------- /test/integration/roles/test_su/vars/default.yml: -------------------------------------------------------------------------------- 1 | su_test_user: ansibletest1 2 | -------------------------------------------------------------------------------- /test/integration/roles/test_sudo/templates/bar.j2: -------------------------------------------------------------------------------- 1 | {{ sudo_test_user }} 2 | -------------------------------------------------------------------------------- /test/integration/roles/test_synchronize/files/bar.txt: -------------------------------------------------------------------------------- 1 | templated_var_loaded 2 | -------------------------------------------------------------------------------- /test/integration/roles/test_synchronize/files/foo.txt: -------------------------------------------------------------------------------- 1 | templated_var_loaded 2 | -------------------------------------------------------------------------------- /test/integration/roles/test_uri/files/fail10.json: -------------------------------------------------------------------------------- 1 | {"Illegal expression": 1 + 2} -------------------------------------------------------------------------------- /test/integration/roles/test_uri/files/fail24.json: -------------------------------------------------------------------------------- 1 | [" tab character in string "] -------------------------------------------------------------------------------- /test/integration/roles/test_uri/files/fail5.json: -------------------------------------------------------------------------------- 1 | [ , "<-- missing value"] -------------------------------------------------------------------------------- /test/integration/roles/test_uri/files/fail6.json: -------------------------------------------------------------------------------- 1 | ["Comma after the close"], -------------------------------------------------------------------------------- /test/samples/common_include.yml: -------------------------------------------------------------------------------- 1 | - debug: msg="this is the common include" 2 | -------------------------------------------------------------------------------- /test/integration/inventory.handlers: -------------------------------------------------------------------------------- 1 | [testgroup] 2 | A 3 | B 4 | C 5 | D 6 | E 7 | -------------------------------------------------------------------------------- /test/integration/roles/ec2_elb_instance_setup/meta/main.yml: -------------------------------------------------------------------------------- 1 | dependencies: [] 2 | -------------------------------------------------------------------------------- /test/integration/roles/test_check_mode/templates/foo.j2: -------------------------------------------------------------------------------- 1 | {{ templated_var }} 2 | -------------------------------------------------------------------------------- /test/integration/roles/test_copy/files/subdir/subdir2/subdir3/subdir4/qux.txt: -------------------------------------------------------------------------------- 1 | qux -------------------------------------------------------------------------------- /test/integration/roles/test_ec2/vars/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # vars file for test_ec2 3 | -------------------------------------------------------------------------------- /test/integration/roles/test_su/files/baz.txt: -------------------------------------------------------------------------------- 1 | testing tilde expansion with su 2 | -------------------------------------------------------------------------------- /test/integration/roles/test_sudo/vars/default.yml: -------------------------------------------------------------------------------- 1 | sudo_test_user: ansibletest1 2 | -------------------------------------------------------------------------------- /test/integration/roles/test_template/templates/short.j2: -------------------------------------------------------------------------------- 1 | {{ templated_var }} 2 | -------------------------------------------------------------------------------- /test/integration/roles/test_uri/files/fail11.json: -------------------------------------------------------------------------------- 1 | {"Illegal invocation": alert()} -------------------------------------------------------------------------------- /test/integration/roles/test_uri/files/fail13.json: -------------------------------------------------------------------------------- 1 | {"Numbers cannot be hex": 0x14} -------------------------------------------------------------------------------- /test/integration/roles/test_uri/files/fail14.json: -------------------------------------------------------------------------------- 1 | ["Illegal backslash escape: \x15"] -------------------------------------------------------------------------------- /test/integration/roles/test_uri/files/fail16.json: -------------------------------------------------------------------------------- 1 | ["Illegal backslash escape: \017"] -------------------------------------------------------------------------------- /test/integration/roles/test_uri/files/fail20.json: -------------------------------------------------------------------------------- 1 | {"Comma instead of colon", null} -------------------------------------------------------------------------------- /test/integration/roles/test_uri/files/fail21.json: -------------------------------------------------------------------------------- 1 | ["Colon instead of comma": false] -------------------------------------------------------------------------------- /test/integration/roles/test_win_template/files/foo.txt: -------------------------------------------------------------------------------- 1 | templated_var_loaded 2 | -------------------------------------------------------------------------------- /test/integration/roles/test_win_template/templates/foo.j2: -------------------------------------------------------------------------------- 1 | {{ templated_var }} 2 | -------------------------------------------------------------------------------- /test/samples/roles/test_role/meta/main.yml: -------------------------------------------------------------------------------- 1 | dependencies: 2 | - test_role_dep 3 | -------------------------------------------------------------------------------- /test/utils/shippable/modules/generate-tests-requirements.txt: -------------------------------------------------------------------------------- 1 | jinja2 2 | pyyaml 3 | -------------------------------------------------------------------------------- /.coveragerc: -------------------------------------------------------------------------------- 1 | [report] 2 | omit = 3 | */python?.?/* 4 | */site-packages/nose/* 5 | -------------------------------------------------------------------------------- /docsite/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tes/ansible/devel/docsite/favicon.ico -------------------------------------------------------------------------------- /test/integration/roles/test_apt/meta/main.yml: -------------------------------------------------------------------------------- 1 | dependencies: 2 | - prepare_tests 3 | -------------------------------------------------------------------------------- /test/integration/roles/test_become/files/baz.txt: -------------------------------------------------------------------------------- 1 | testing tilde expansion with become 2 | -------------------------------------------------------------------------------- /test/integration/roles/test_become/vars/default.yml: -------------------------------------------------------------------------------- 1 | become_test_user: ansibletest1 2 | -------------------------------------------------------------------------------- /test/integration/roles/test_ec2/tasks/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # tasks file for test_ec2 3 | -------------------------------------------------------------------------------- /test/integration/roles/test_rax_scaling_group/files/test.txt: -------------------------------------------------------------------------------- 1 | this is a test file 2 | -------------------------------------------------------------------------------- /test/integration/roles/test_sudo/files/baz.txt: -------------------------------------------------------------------------------- 1 | testing tilde expansion with sudo 2 | -------------------------------------------------------------------------------- /test/integration/roles/test_uri/files/fail2.json: -------------------------------------------------------------------------------- 1 | {unquoted_key: "keys must be quoted"} -------------------------------------------------------------------------------- /test/integration/roles/test_uri/files/fail25.json: -------------------------------------------------------------------------------- 1 | ["tab\ character\ in\ string\ "] -------------------------------------------------------------------------------- /test/integration/roles/test_win_copy/files/subdir/subdir2/subdir3/subdir4/qux.txt: -------------------------------------------------------------------------------- 1 | qux -------------------------------------------------------------------------------- /test/integration/roles/test_yum/meta/main.yml: -------------------------------------------------------------------------------- 1 | dependencies: 2 | - prepare_tests 3 | -------------------------------------------------------------------------------- /test/integration/roles/test_zypper/meta/main.yml: -------------------------------------------------------------------------------- 1 | dependencies: 2 | - prepare_tests 3 | -------------------------------------------------------------------------------- /test/samples/README.md: -------------------------------------------------------------------------------- 1 | This is a small set of samples used for testing the v2 code. 2 | -------------------------------------------------------------------------------- /test/samples/roles/role_a/tasks/main.yml: -------------------------------------------------------------------------------- 1 | - debug: msg="this is a task from role A" 2 | -------------------------------------------------------------------------------- /test/samples/roles/role_b/tasks/main.yml: -------------------------------------------------------------------------------- 1 | - debug: msg="this is a task from role B" 2 | -------------------------------------------------------------------------------- /test/integration/roles/prepare_win_tests/meta/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | 3 | allow_duplicates: yes 4 | -------------------------------------------------------------------------------- /test/integration/roles/test_async/meta/main.yml: -------------------------------------------------------------------------------- 1 | dependencies: 2 | - prepare_tests 3 | 4 | -------------------------------------------------------------------------------- /test/integration/roles/test_check_mode/vars/main.yml: -------------------------------------------------------------------------------- 1 | templated_var: templated_var_loaded 2 | -------------------------------------------------------------------------------- /test/integration/roles/test_copy/meta/main.yml: -------------------------------------------------------------------------------- 1 | dependencies: 2 | - prepare_tests 3 | 4 | -------------------------------------------------------------------------------- /test/integration/roles/test_ec2/defaults/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # defaults file for test_ec2 3 | -------------------------------------------------------------------------------- /test/integration/roles/test_ec2/handlers/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # handlers file for test_ec2 3 | -------------------------------------------------------------------------------- /test/integration/roles/test_ec2_ami/tasks/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # tasks file for test_ec2_ami 3 | -------------------------------------------------------------------------------- /test/integration/roles/test_ec2_ami/vars/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # vars file for test_ec2_ami 3 | -------------------------------------------------------------------------------- /test/integration/roles/test_ec2_eip/vars/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # vars file for test_ec2_eip 3 | -------------------------------------------------------------------------------- /test/integration/roles/test_ec2_tag/tasks/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # tasks file for test_ec2_tag 3 | -------------------------------------------------------------------------------- /test/integration/roles/test_ec2_tag/vars/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # vars file for test_ec2_tag 3 | -------------------------------------------------------------------------------- /test/integration/roles/test_ec2_vol/tasks/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # tasks file for test_ec2_vol 3 | -------------------------------------------------------------------------------- /test/integration/roles/test_ec2_vol/vars/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # vars file for test_ec2_vol 3 | -------------------------------------------------------------------------------- /test/integration/roles/test_ec2_vpc/tasks/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # tasks file for test_ec2_vpc 3 | -------------------------------------------------------------------------------- /test/integration/roles/test_ec2_vpc/vars/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # vars file for test_ec2_vpc 3 | -------------------------------------------------------------------------------- /test/integration/roles/test_fetch/meta/main.yml: -------------------------------------------------------------------------------- 1 | dependencies: 2 | - prepare_tests 3 | 4 | -------------------------------------------------------------------------------- /test/integration/roles/test_file/meta/main.yml: -------------------------------------------------------------------------------- 1 | dependencies: 2 | - prepare_tests 3 | 4 | -------------------------------------------------------------------------------- /test/integration/roles/test_filters/files/9851.txt: -------------------------------------------------------------------------------- 1 | [{ 2 | "k": "Quotes \"'\n" 3 | }] 4 | -------------------------------------------------------------------------------- /test/integration/roles/test_gem/meta/main.yml: -------------------------------------------------------------------------------- 1 | dependencies: 2 | - prepare_tests 3 | 4 | -------------------------------------------------------------------------------- /test/integration/roles/test_git/meta/main.yml: -------------------------------------------------------------------------------- 1 | dependencies: 2 | - prepare_tests 3 | 4 | -------------------------------------------------------------------------------- /test/integration/roles/test_hg/meta/main.yml: -------------------------------------------------------------------------------- 1 | dependencies: 2 | - prepare_tests 3 | 4 | -------------------------------------------------------------------------------- /test/integration/roles/test_includes/handlers/main.yml: -------------------------------------------------------------------------------- 1 | - include: more_handlers.yml 2 | 3 | -------------------------------------------------------------------------------- /test/integration/roles/test_lineinfile/files/testnoeof.txt: -------------------------------------------------------------------------------- 1 | This is line 1 2 | This is line 2 -------------------------------------------------------------------------------- /test/integration/roles/test_mysql_db/meta/main.yml: -------------------------------------------------------------------------------- 1 | dependencies: 2 | - setup_mysql_db 3 | -------------------------------------------------------------------------------- /test/integration/roles/test_mysql_user/meta/main.yml: -------------------------------------------------------------------------------- 1 | dependencies: 2 | - setup_mysql_db 3 | -------------------------------------------------------------------------------- /test/integration/roles/test_pip/meta/main.yml: -------------------------------------------------------------------------------- 1 | dependencies: 2 | - prepare_tests 3 | 4 | -------------------------------------------------------------------------------- /test/integration/roles/test_script/files/remove_afile.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | rm "$1" -------------------------------------------------------------------------------- /test/integration/roles/test_script/files/test.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | echo -n "win" -------------------------------------------------------------------------------- /test/integration/roles/test_stat/meta/main.yml: -------------------------------------------------------------------------------- 1 | dependencies: 2 | - prepare_tests 3 | 4 | -------------------------------------------------------------------------------- /test/integration/roles/test_uri/files/fail12.json: -------------------------------------------------------------------------------- 1 | {"Numbers cannot have leading zeroes": 013} -------------------------------------------------------------------------------- /test/integration/roles/test_uri/files/fail17.json: -------------------------------------------------------------------------------- 1 | {"Comma instead if closing brace": true, -------------------------------------------------------------------------------- /test/integration/test_blocks/fail.yml: -------------------------------------------------------------------------------- 1 | - name: EXPECTED FAILURE 2 | fail: msg="{{msg}}" 3 | -------------------------------------------------------------------------------- /test/utils/shippable/sanity-requirements.txt: -------------------------------------------------------------------------------- 1 | tox 2 | pyyaml 3 | jinja2 4 | setuptools 5 | -------------------------------------------------------------------------------- /docsite/_static/file.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tes/ansible/devel/docsite/_static/file.png -------------------------------------------------------------------------------- /docsite/_static/minus.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tes/ansible/devel/docsite/_static/minus.png -------------------------------------------------------------------------------- /docsite/_static/plus.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tes/ansible/devel/docsite/_static/plus.png -------------------------------------------------------------------------------- /hacking/update.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | git pull --rebase 3 | git submodule update --init --recursive 4 | -------------------------------------------------------------------------------- /test/integration/roles/setup_ec2/defaults/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | resource_prefix: 'ansible-testing-' 3 | -------------------------------------------------------------------------------- /test/integration/roles/test_apt_repository/meta/main.yml: -------------------------------------------------------------------------------- 1 | dependencies: 2 | - prepare_tests 3 | -------------------------------------------------------------------------------- /test/integration/roles/test_authorized_key/meta/main.yml: -------------------------------------------------------------------------------- 1 | dependencies: 2 | - prepare_tests 3 | -------------------------------------------------------------------------------- /test/integration/roles/test_binary/meta/main.yml: -------------------------------------------------------------------------------- 1 | dependencies: 2 | - prepare_tests 3 | 4 | -------------------------------------------------------------------------------- /test/integration/roles/test_binary/templates/from_playbook_template.j2: -------------------------------------------------------------------------------- 1 | {{ simple_accents }} 2 | -------------------------------------------------------------------------------- /test/integration/roles/test_check_mode/meta/main.yml: -------------------------------------------------------------------------------- 1 | dependencies: 2 | - prepare_tests 3 | 4 | -------------------------------------------------------------------------------- /test/integration/roles/test_command_shell/files/test.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | echo -n "win" -------------------------------------------------------------------------------- /test/integration/roles/test_cs_common/defaults/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | cs_resource_prefix: cloudstack 3 | -------------------------------------------------------------------------------- /test/integration/roles/test_cs_iso/meta/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | dependencies: 3 | - test_cs_common 4 | -------------------------------------------------------------------------------- /test/integration/roles/test_cs_pod/meta/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | dependencies: 3 | - test_cs_common 4 | -------------------------------------------------------------------------------- /test/integration/roles/test_cs_user/meta/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | dependencies: 3 | - test_cs_common 4 | -------------------------------------------------------------------------------- /test/integration/roles/test_ec2_ami/defaults/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # defaults file for test_ec2_ami 3 | -------------------------------------------------------------------------------- /test/integration/roles/test_ec2_elb/defaults/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # defaults file for test_ec2_elb 3 | -------------------------------------------------------------------------------- /test/integration/roles/test_ec2_elb_lb/vars/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # vars file for test_ec2_elb_lb 3 | -------------------------------------------------------------------------------- /test/integration/roles/test_ec2_facts/tasks/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # tasks file for test_ec2_facts 3 | -------------------------------------------------------------------------------- /test/integration/roles/test_ec2_facts/vars/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # vars file for test_ec2_facts 3 | -------------------------------------------------------------------------------- /test/integration/roles/test_ec2_tag/defaults/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # defaults file for test_ec2_tag 3 | -------------------------------------------------------------------------------- /test/integration/roles/test_ec2_vol/defaults/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # defaults file for test_ec2_vol 3 | -------------------------------------------------------------------------------- /test/integration/roles/test_ec2_vpc/defaults/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # defaults file for test_ec2_vpc 3 | -------------------------------------------------------------------------------- /test/integration/roles/test_facts_d/meta/main.yml: -------------------------------------------------------------------------------- 1 | dependencies: 2 | - prepare_tests 3 | 4 | -------------------------------------------------------------------------------- /test/integration/roles/test_filters/meta/main.yml: -------------------------------------------------------------------------------- 1 | dependencies: 2 | - prepare_tests 3 | 4 | -------------------------------------------------------------------------------- /test/integration/roles/test_good_parsing/vars/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | variable_module_name: debug 3 | -------------------------------------------------------------------------------- /test/integration/roles/test_iterators/meta/main.yml: -------------------------------------------------------------------------------- 1 | dependencies: 2 | - prepare_tests 3 | 4 | -------------------------------------------------------------------------------- /test/integration/roles/test_mysql_variables/meta/main.yml: -------------------------------------------------------------------------------- 1 | dependencies: 2 | - setup_mysql_db 3 | -------------------------------------------------------------------------------- /test/integration/roles/test_script/meta/main.yml: -------------------------------------------------------------------------------- 1 | dependencies: 2 | - prepare_tests 3 | 4 | -------------------------------------------------------------------------------- /test/integration/roles/test_subversion/meta/main.yml: -------------------------------------------------------------------------------- 1 | dependencies: 2 | - prepare_tests 3 | 4 | -------------------------------------------------------------------------------- /test/integration/roles/test_template/meta/main.yml: -------------------------------------------------------------------------------- 1 | dependencies: 2 | - prepare_tests 3 | 4 | -------------------------------------------------------------------------------- /test/integration/roles/test_unarchive/meta/main.yml: -------------------------------------------------------------------------------- 1 | dependencies: 2 | - prepare_tests 3 | 4 | -------------------------------------------------------------------------------- /test/integration/roles/test_uri/files/pass4.json: -------------------------------------------------------------------------------- 1 | [[[[[[[[[[[[[[[[[[[["Too deep"]]]]]]]]]]]]]]]]]]]] -------------------------------------------------------------------------------- /test/integration/roles/test_win_lineinfile/files/testnoeof.txt: -------------------------------------------------------------------------------- 1 | This is line 1 2 | This is line 2 -------------------------------------------------------------------------------- /test/integration/roles/test_win_regmerge/vars/main.yml: -------------------------------------------------------------------------------- 1 | templated_var: templated_var_loaded 2 | -------------------------------------------------------------------------------- /test/integration/roles/test_win_template/vars/main.yml: -------------------------------------------------------------------------------- 1 | templated_var: templated_var_loaded 2 | -------------------------------------------------------------------------------- /test/samples/roles/common/tasks/main.yml: -------------------------------------------------------------------------------- 1 | - debug: msg="this is a task from the common role" 2 | -------------------------------------------------------------------------------- /test/samples/test_playbook.include: -------------------------------------------------------------------------------- 1 | - include: included_playbook.yml a=1 2 | tags: include 3 | -------------------------------------------------------------------------------- /test/utils/ansible-playbook_integration_runner/inventory: -------------------------------------------------------------------------------- 1 | localhost ansible_connection=local 2 | -------------------------------------------------------------------------------- /docsite/_static/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tes/ansible/devel/docsite/_static/favicon.ico -------------------------------------------------------------------------------- /packaging/gentoo/README.md: -------------------------------------------------------------------------------- 1 | Gentoo ebuilds are available in the main tree: 2 | 3 | emerge ansible 4 | -------------------------------------------------------------------------------- /test/integration/group_vars/amazon: -------------------------------------------------------------------------------- 1 | --- 2 | ec2_url: ec2.amazonaws.com 3 | ec2_region: us-east-1 4 | -------------------------------------------------------------------------------- /test/integration/roles/test_apache2_module/meta/main.yml: -------------------------------------------------------------------------------- 1 | dependencies: 2 | - prepare_tests 3 | 4 | -------------------------------------------------------------------------------- /test/integration/roles/test_bad_parsing/meta/main.yml: -------------------------------------------------------------------------------- 1 | dependencies: 2 | - { role: prepare_tests } 3 | -------------------------------------------------------------------------------- /test/integration/roles/test_changed_when/meta/main.yml: -------------------------------------------------------------------------------- 1 | dependencies: 2 | - prepare_tests 3 | 4 | -------------------------------------------------------------------------------- /test/integration/roles/test_command_shell/files/remove_afile.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | rm "$1" -------------------------------------------------------------------------------- /test/integration/roles/test_command_shell/meta/main.yml: -------------------------------------------------------------------------------- 1 | dependencies: 2 | - prepare_tests 3 | 4 | -------------------------------------------------------------------------------- /test/integration/roles/test_cs_account/meta/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | dependencies: 3 | - test_cs_common 4 | -------------------------------------------------------------------------------- /test/integration/roles/test_cs_cluster/meta/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | dependencies: 3 | - test_cs_common 4 | -------------------------------------------------------------------------------- /test/integration/roles/test_cs_domain/meta/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | dependencies: 3 | - test_cs_common 4 | -------------------------------------------------------------------------------- /test/integration/roles/test_cs_firewall/meta/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | dependencies: 3 | - test_cs_common 4 | -------------------------------------------------------------------------------- /test/integration/roles/test_cs_instance/meta/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | dependencies: 3 | - test_cs_common 4 | -------------------------------------------------------------------------------- /test/integration/roles/test_cs_project/meta/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | dependencies: 3 | - test_cs_common 4 | -------------------------------------------------------------------------------- /test/integration/roles/test_cs_volume/meta/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | dependencies: 3 | - test_cs_common 4 | -------------------------------------------------------------------------------- /test/integration/roles/test_ec2/meta/main.yml: -------------------------------------------------------------------------------- 1 | dependencies: 2 | - prepare_tests 3 | - setup_ec2 4 | -------------------------------------------------------------------------------- /test/integration/roles/test_ec2_facts/defaults/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # defaults file for test_ec2_facts 3 | -------------------------------------------------------------------------------- /test/integration/roles/test_handlers_meta/meta/main.yml: -------------------------------------------------------------------------------- 1 | dependencies: 2 | - prepare_tests 3 | 4 | -------------------------------------------------------------------------------- /test/integration/roles/test_ignore_errors/meta/main.yml: -------------------------------------------------------------------------------- 1 | dependencies: 2 | - prepare_tests 3 | 4 | -------------------------------------------------------------------------------- /test/integration/roles/test_include_vars/vars/all/all.yml: -------------------------------------------------------------------------------- 1 | --- 2 | testing: 123 3 | base_dir: all 4 | -------------------------------------------------------------------------------- /test/integration/roles/test_script/files/create_afile.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | echo "win" > "$1" -------------------------------------------------------------------------------- /test/integration/roles/test_special_vars/meta/main.yml: -------------------------------------------------------------------------------- 1 | dependencies: 2 | - prepare_tests 3 | 4 | -------------------------------------------------------------------------------- /test/integration/roles/test_synchronize/meta/main.yml: -------------------------------------------------------------------------------- 1 | dependencies: 2 | - prepare_tests 3 | 4 | -------------------------------------------------------------------------------- /test/integration/roles/test_uri/files/pass1.json: -------------------------------------------------------------------------------- 1 | [[[[[[[[[[[[[[[[[[["Not too deep"]]]]]]]]]]]]]]]]]]] -------------------------------------------------------------------------------- /test/integration/roles/test_var_blending/meta/main.yml: -------------------------------------------------------------------------------- 1 | dependencies: 2 | - prepare_tests 3 | 4 | -------------------------------------------------------------------------------- /test/integration/roles/test_win_copy/meta/main.yml: -------------------------------------------------------------------------------- 1 | dependencies: 2 | - prepare_win_tests 3 | 4 | -------------------------------------------------------------------------------- /test/integration/roles/test_win_file/meta/main.yml: -------------------------------------------------------------------------------- 1 | dependencies: 2 | - prepare_win_tests 3 | 4 | -------------------------------------------------------------------------------- /test/integration/roles/test_win_regedit/meta/main.yml: -------------------------------------------------------------------------------- 1 | dependencies: 2 | - prepare_win_tests 3 | 4 | -------------------------------------------------------------------------------- /test/integration/roles/test_zypper_repository/meta/main.yml: -------------------------------------------------------------------------------- 1 | dependencies: 2 | - prepare_tests 3 | -------------------------------------------------------------------------------- /test/samples/roles/test_role_dep/tasks/main.yml: -------------------------------------------------------------------------------- 1 | - debug: msg="here we are in the role dependency" 2 | -------------------------------------------------------------------------------- /test/units/inventory_test_data/group_vars/parse/all.yml: -------------------------------------------------------------------------------- 1 | --- 2 | YAML_FILENAME_EXTENSIONS_TEST: True 3 | -------------------------------------------------------------------------------- /test/utils/ansible-playbook_integration_runner/ansible.cfg: -------------------------------------------------------------------------------- 1 | [defaults] 2 | host_key_checking = False 3 | -------------------------------------------------------------------------------- /test/integration/roles/ec2_elb_instance_setup/defaults/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # defaults for ec2_elb_setup 3 | -------------------------------------------------------------------------------- /test/integration/roles/test_binary/templates/b64_utf8_template.j2: -------------------------------------------------------------------------------- 1 | {{ utf8_simple_accents|b64decode }} 2 | -------------------------------------------------------------------------------- /test/integration/roles/test_cs_affinitygroup/meta/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | dependencies: 3 | - test_cs_common 4 | -------------------------------------------------------------------------------- /test/integration/roles/test_cs_configuration/meta/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | dependencies: 3 | - test_cs_common 4 | -------------------------------------------------------------------------------- /test/integration/roles/test_cs_instance_facts/meta/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | dependencies: 3 | - test_cs_common 4 | -------------------------------------------------------------------------------- /test/integration/roles/test_cs_instancegroup/meta/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | dependencies: 3 | - test_cs_common 4 | -------------------------------------------------------------------------------- /test/integration/roles/test_cs_portforward/meta/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | dependencies: 3 | - test_cs_common 4 | -------------------------------------------------------------------------------- /test/integration/roles/test_cs_resourcelimit/meta/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | dependencies: 3 | - test_cs_common 4 | -------------------------------------------------------------------------------- /test/integration/roles/test_cs_securitygroup/meta/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | dependencies: 3 | - test_cs_common 4 | -------------------------------------------------------------------------------- /test/integration/roles/test_cs_sshkeypair/meta/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | dependencies: 3 | - test_cs_common 4 | -------------------------------------------------------------------------------- /test/integration/roles/test_cs_vmsnapshot/meta/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | dependencies: 3 | - test_cs_common 4 | -------------------------------------------------------------------------------- /test/integration/roles/test_ec2_ami/meta/main.yml: -------------------------------------------------------------------------------- 1 | dependencies: 2 | - prepare_tests 3 | - setup_ec2 4 | -------------------------------------------------------------------------------- /test/integration/roles/test_ec2_eip/meta/main.yml: -------------------------------------------------------------------------------- 1 | dependencies: 2 | - prepare_tests 3 | - setup_ec2 4 | -------------------------------------------------------------------------------- /test/integration/roles/test_ec2_key/meta/main.yml: -------------------------------------------------------------------------------- 1 | dependencies: 2 | - prepare_tests 3 | - setup_ec2 4 | -------------------------------------------------------------------------------- /test/integration/roles/test_ec2_tag/meta/main.yml: -------------------------------------------------------------------------------- 1 | dependencies: 2 | - prepare_tests 3 | - setup_ec2 4 | -------------------------------------------------------------------------------- /test/integration/roles/test_ec2_vol/meta/main.yml: -------------------------------------------------------------------------------- 1 | dependencies: 2 | - prepare_tests 3 | - setup_ec2 4 | -------------------------------------------------------------------------------- /test/integration/roles/test_ec2_vpc/meta/main.yml: -------------------------------------------------------------------------------- 1 | dependencies: 2 | - prepare_tests 3 | - setup_ec2 4 | -------------------------------------------------------------------------------- /test/integration/roles/test_good_parsing/tasks/test_include.yml: -------------------------------------------------------------------------------- 1 | - set_fact: "{{fact_name}}='{{param}}'" 2 | -------------------------------------------------------------------------------- /test/integration/roles/test_include_vars/defaults/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | testing: 1 3 | base_dir: defaults 4 | -------------------------------------------------------------------------------- /test/integration/roles/test_lookups/vars/main.yml: -------------------------------------------------------------------------------- 1 | mydict: 2 | mykey1: myval1 3 | mykey2: myval2 4 | -------------------------------------------------------------------------------- /test/integration/roles/test_postgresql/meta/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | dependencies: 3 | - setup_postgresql_db 4 | -------------------------------------------------------------------------------- /test/integration/roles/test_uri/files/fail9.json: -------------------------------------------------------------------------------- 1 | {"Extra value after close": true} "misplaced quoted value" -------------------------------------------------------------------------------- /test/integration/roles/test_uri/files/pass3.json: -------------------------------------------------------------------------------- 1 | "A JSON payload should be an object or array, not a string." -------------------------------------------------------------------------------- /test/integration/roles/test_win_lineinfile/meta/main.yml: -------------------------------------------------------------------------------- 1 | dependencies: 2 | - prepare_win_tests 3 | 4 | -------------------------------------------------------------------------------- /test/integration/roles/test_win_regmerge/meta/main.yml: -------------------------------------------------------------------------------- 1 | dependencies: 2 | - prepare_win_tests 3 | 4 | -------------------------------------------------------------------------------- /test/integration/roles/test_win_template/meta/main.yml: -------------------------------------------------------------------------------- 1 | dependencies: 2 | - prepare_win_tests 3 | 4 | -------------------------------------------------------------------------------- /test/integration/vars/test_hash_vars.yml: -------------------------------------------------------------------------------- 1 | --- 2 | test_hash: 3 | vars_file: "this is in a vars_file" 4 | -------------------------------------------------------------------------------- /test/samples/l1_include.yml: -------------------------------------------------------------------------------- 1 | - debug: msg="this is the l1 include" 2 | - include: common_include.yml 3 | 4 | -------------------------------------------------------------------------------- /test/samples/test_big_debug.yml: -------------------------------------------------------------------------------- 1 | - hosts: all 2 | gather_facts: no 3 | tasks: 4 | - debug: msg="hi" 5 | -------------------------------------------------------------------------------- /test/units/inventory_test_data/group_vars/noparse/all.yml~: -------------------------------------------------------------------------------- 1 | --- 2 | YAML_FILENAME_EXTENSIONS_TEST: False 3 | -------------------------------------------------------------------------------- /test/units/inventory_test_data/group_vars/noparse/file.txt: -------------------------------------------------------------------------------- 1 | --- 2 | YAML_FILENAME_EXTENSIONS_TEST: False 3 | -------------------------------------------------------------------------------- /docsite/_static/subtle_dots.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tes/ansible/devel/docsite/_static/subtle_dots.png -------------------------------------------------------------------------------- /test/integration/roles/test_binary/templates/b64_latin1_template.j2: -------------------------------------------------------------------------------- 1 | {{ latin1_simple_accents|b64decode }} 2 | -------------------------------------------------------------------------------- /test/integration/roles/test_command_shell/files/create_afile.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | echo "win" > "$1" -------------------------------------------------------------------------------- /test/integration/roles/test_cs_loadbalancer_rule/meta/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | dependencies: 3 | - test_cs_common 4 | -------------------------------------------------------------------------------- /test/integration/roles/test_cs_securitygroup_rule/meta/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | dependencies: 3 | - test_cs_common 4 | -------------------------------------------------------------------------------- /test/integration/roles/test_ec2_elb_lb/meta/main.yml: -------------------------------------------------------------------------------- 1 | dependencies: 2 | - prepare_tests 3 | - setup_ec2 4 | -------------------------------------------------------------------------------- /test/integration/roles/test_ec2_facts/meta/main.yml: -------------------------------------------------------------------------------- 1 | dependencies: 2 | - prepare_tests 3 | - setup_ec2 4 | -------------------------------------------------------------------------------- /test/integration/roles/test_ec2_group/meta/main.yml: -------------------------------------------------------------------------------- 1 | dependencies: 2 | - prepare_tests 3 | - setup_ec2 4 | -------------------------------------------------------------------------------- /test/integration/roles/test_rax/meta/main.yml: -------------------------------------------------------------------------------- 1 | dependencies: 2 | - prepare_tests 3 | - prepare_rax_tests 4 | -------------------------------------------------------------------------------- /test/integration/roles/test_uri/meta/main.yml: -------------------------------------------------------------------------------- 1 | dependencies: 2 | - prepare_tests 3 | - prepare_http_tests 4 | -------------------------------------------------------------------------------- /test/integration/roles/test_var_precedence_role1/meta/main.yml: -------------------------------------------------------------------------------- 1 | dependencies: 2 | - test_var_precedence_dep 3 | -------------------------------------------------------------------------------- /test/integration/roles/test_win_script/files/test_script.bat: -------------------------------------------------------------------------------- 1 | @ECHO OFF 2 | ECHO We can even run a batch file! 3 | -------------------------------------------------------------------------------- /test/integration/test_blocks/nested_fail.yml: -------------------------------------------------------------------------------- 1 | - include: fail.yml 2 | args: 3 | msg: "nested {{msg}}" 4 | -------------------------------------------------------------------------------- /test/samples/hosts: -------------------------------------------------------------------------------- 1 | testing ansible_connection=local ansible_ssh_host=192.168.122.100 ansible_ssh_user=testing 2 | -------------------------------------------------------------------------------- /test/samples/src: -------------------------------------------------------------------------------- 1 | num_retries: 2 2 | frag 1 3 | frag 2 4 | frag 3 5 | vars_file_var: "this is in a vars file" 6 | -------------------------------------------------------------------------------- /test/utils/docker/httptester/services.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | gunicorn -D httpbin:app 3 | nginx -g "daemon off;" 4 | -------------------------------------------------------------------------------- /docs-api/modules.rst: -------------------------------------------------------------------------------- 1 | Ansible api 2 | =========== 3 | 4 | .. toctree:: 5 | :maxdepth: 7 6 | 7 | ansible 8 | -------------------------------------------------------------------------------- /test/integration/roles/ec2_provision_instances/meta/main.yml: -------------------------------------------------------------------------------- 1 | dependencies: 2 | - prepare_tests 3 | - setup_ec2 4 | -------------------------------------------------------------------------------- /test/integration/roles/test_docker/files/docker-registry.htpasswd: -------------------------------------------------------------------------------- 1 | testdocker:$apr1$6cYd3tA9$4Dc9/I5Z.bl8/br8O/6B41 2 | -------------------------------------------------------------------------------- /test/integration/roles/test_good_parsing/tasks/test_include_conditional.yml: -------------------------------------------------------------------------------- 1 | - include: test_include_nested.yml 2 | -------------------------------------------------------------------------------- /test/integration/roles/test_rax_cbs/meta/main.yml: -------------------------------------------------------------------------------- 1 | dependencies: 2 | - prepare_tests 3 | - prepare_rax_tests 4 | -------------------------------------------------------------------------------- /test/integration/roles/test_rax_cdb/meta/main.yml: -------------------------------------------------------------------------------- 1 | dependencies: 2 | - prepare_tests 3 | - prepare_rax_tests 4 | -------------------------------------------------------------------------------- /test/integration/roles/test_rax_clb/meta/main.yml: -------------------------------------------------------------------------------- 1 | dependencies: 2 | - prepare_tests 3 | - prepare_rax_tests 4 | -------------------------------------------------------------------------------- /test/integration/roles/test_rax_facts/meta/main.yml: -------------------------------------------------------------------------------- 1 | dependencies: 2 | - prepare_tests 3 | - prepare_rax_tests 4 | -------------------------------------------------------------------------------- /test/integration/roles/test_rax_meta/meta/main.yml: -------------------------------------------------------------------------------- 1 | dependencies: 2 | - prepare_tests 3 | - prepare_rax_tests 4 | -------------------------------------------------------------------------------- /test/integration/test_setup.yml: -------------------------------------------------------------------------------- 1 | - hosts: testhost 2 | gather_facts: False 3 | roles: 4 | - test_setup 5 | 6 | -------------------------------------------------------------------------------- /test/samples/roles/test_become_r2/meta/main.yml: -------------------------------------------------------------------------------- 1 | allow_duplicates: yes 2 | dependencies: 3 | - test_become_r1 4 | -------------------------------------------------------------------------------- /test/utils/ansible-playbook_integration_runner/roles/ansible_test_deps/vars/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # vars file for . 3 | -------------------------------------------------------------------------------- /test/integration/group_vars/local: -------------------------------------------------------------------------------- 1 | tres: 'three' 2 | hash_test: 3 | group_vars_local: "this is in group_vars/local" 4 | -------------------------------------------------------------------------------- /test/integration/roles/test_get_url/meta/main.yml: -------------------------------------------------------------------------------- 1 | dependencies: 2 | - prepare_tests 3 | - prepare_http_tests 4 | 5 | -------------------------------------------------------------------------------- /test/integration/roles/test_lookups/meta/main.yml: -------------------------------------------------------------------------------- 1 | dependencies: 2 | - prepare_tests 3 | - prepare_http_tests 4 | 5 | -------------------------------------------------------------------------------- /test/integration/roles/test_rax_clb_nodes/meta/main.yml: -------------------------------------------------------------------------------- 1 | dependencies: 2 | - prepare_tests 3 | - prepare_rax_tests 4 | -------------------------------------------------------------------------------- /test/integration/roles/test_rax_identity/meta/main.yml: -------------------------------------------------------------------------------- 1 | dependencies: 2 | - prepare_tests 3 | - prepare_rax_tests 4 | -------------------------------------------------------------------------------- /test/integration/roles/test_rax_keypair/meta/main.yml: -------------------------------------------------------------------------------- 1 | dependencies: 2 | - prepare_tests 3 | - prepare_rax_tests 4 | -------------------------------------------------------------------------------- /test/integration/roles/test_rax_network/meta/main.yml: -------------------------------------------------------------------------------- 1 | dependencies: 2 | - prepare_tests 3 | - prepare_rax_tests 4 | -------------------------------------------------------------------------------- /test/integration/roles/test_template/templates/foo.j2: -------------------------------------------------------------------------------- 1 | {{ templated_var }} 2 | 3 | {{ templated_dict | to_nice_json }} 4 | -------------------------------------------------------------------------------- /test/samples/localhost_include.yml: -------------------------------------------------------------------------------- 1 | - debug: msg="this is the localhost include" 2 | - include: common_include.yml 3 | 4 | -------------------------------------------------------------------------------- /test/samples/test_big_ping.yml: -------------------------------------------------------------------------------- 1 | - hosts: all 2 | gather_facts: no 3 | tasks: 4 | #- debug: msg="hi" 5 | - ping: 6 | -------------------------------------------------------------------------------- /test/utils/ansible-playbook_integration_runner/roles/ansible_test_deps/defaults/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # defaults file for . 3 | -------------------------------------------------------------------------------- /test/utils/ansible-playbook_integration_runner/roles/ansible_test_deps/handlers/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # handlers file for . 3 | -------------------------------------------------------------------------------- /docsite/modules.js: -------------------------------------------------------------------------------- 1 | function AnsibleModules($scope) { 2 | $scope.modules = []; 3 | 4 | $scope.orderProp = "module"; 5 | } -------------------------------------------------------------------------------- /packaging/debian/ansible.dirs: -------------------------------------------------------------------------------- 1 | etc/ansible 2 | etc/ansible/roles 3 | usr/lib/python2.7/site-packages 4 | usr/share/ansible 5 | -------------------------------------------------------------------------------- /test/integration/roles/test_cloudflare_dns/defaults/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | cloudflare_dns_record: "{{ resource_prefix|lower }}" 3 | -------------------------------------------------------------------------------- /test/integration/roles/test_rax_cbs_attachments/meta/main.yml: -------------------------------------------------------------------------------- 1 | dependencies: 2 | - prepare_tests 3 | - prepare_rax_tests 4 | -------------------------------------------------------------------------------- /test/integration/roles/test_rax_cdb_database/meta/main.yml: -------------------------------------------------------------------------------- 1 | dependencies: 2 | - prepare_tests 3 | - prepare_rax_tests 4 | -------------------------------------------------------------------------------- /test/integration/roles/test_rax_scaling_group/meta/main.yml: -------------------------------------------------------------------------------- 1 | dependencies: 2 | - prepare_tests 3 | - prepare_rax_tests 4 | -------------------------------------------------------------------------------- /test/integration/test_blocks/nested_nested_fail.yml: -------------------------------------------------------------------------------- 1 | - include: nested_fail.yml 2 | args: 3 | msg: "nested {{msg}}" 4 | -------------------------------------------------------------------------------- /test/samples/localhosts: -------------------------------------------------------------------------------- 1 | l1 ansible_ssh_host=127.0.0.1 2 | l2 ansible_ssh_host=127.0.0.2 3 | l3 ansible_ssh_host=127.0.0.3 4 | -------------------------------------------------------------------------------- /test/utils/ansible-playbook_integration_runner/roles/ansible_test_deps/test/inventory: -------------------------------------------------------------------------------- 1 | localhost ansible_connection=local 2 | -------------------------------------------------------------------------------- /test/utils/ansible-playbook_integration_runner/roles/ansible_test_deps/test/roles/ansible_test_deps: -------------------------------------------------------------------------------- 1 | ../../../ansible_test_deps -------------------------------------------------------------------------------- /lib/ansible/galaxy/data/test_playbook.j2: -------------------------------------------------------------------------------- 1 | --- 2 | - hosts: localhost 3 | remote_user: root 4 | roles: 5 | - {{ role_name }} -------------------------------------------------------------------------------- /test/integration/roles/ec2_provision_instances/defaults/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # defaults file for ec2_provision_isntances 3 | count: 1 4 | -------------------------------------------------------------------------------- /test/integration/roles/test_includes/tasks/not_a_role_task.yml: -------------------------------------------------------------------------------- 1 | - set_fact: 2 | ca: 33000 3 | cb: 33001 4 | cc: 33002 5 | -------------------------------------------------------------------------------- /test/integration/roles/test_win_script/files/test_script.cmd: -------------------------------------------------------------------------------- 1 | @ECHO OFF 2 | ECHO We can even run a batch file with cmd extension! 3 | -------------------------------------------------------------------------------- /test/integration/galaxy_playbook_git.yml: -------------------------------------------------------------------------------- 1 | - hosts: localhost 2 | connection: local 3 | 4 | roles: 5 | - "git-ansible-galaxy" 6 | -------------------------------------------------------------------------------- /test/integration/roles/test_cs_firewall/defaults/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | cs_firewall_ip_address: 10.100.212.5 3 | cs_firewall_network: test 4 | -------------------------------------------------------------------------------- /test/integration/roles/test_ec2_eip/defaults/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # defaults file for test_ec2_eip 3 | tag_prefix: '{{resource_prefix}}' 4 | -------------------------------------------------------------------------------- /test/integration/roles/test_ec2_key/defaults/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # defaults file for test_ec2_key 3 | ec2_key_name: '{{resource_prefix}}' 4 | -------------------------------------------------------------------------------- /test/integration/test_includes.yml: -------------------------------------------------------------------------------- 1 | - include: test_includes2.yml parameter1=asdf parameter2=jkl 2 | 3 | - include: test_includes3.yml 4 | -------------------------------------------------------------------------------- /test/samples/roles/test_role/tasks/main.yml: -------------------------------------------------------------------------------- 1 | - debug: msg="here we are in the role, foo={{foo}}" 2 | - fail: 3 | when: foo != "bar" 4 | -------------------------------------------------------------------------------- /test/integration/roles/ec2_elb_instance_setup/files/index.html: -------------------------------------------------------------------------------- 1 | 2 |
Hi! 3 | 4 | Hello! 5 | 6 | 7 | -------------------------------------------------------------------------------- /test/integration/roles/test_ec2_elb_lb/defaults/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # defaults file for test_ec2_eip 3 | tag_prefix: '{{resource_prefix}}' 4 | -------------------------------------------------------------------------------- /test/integration/roles/test_force_handlers/handlers/main.yml: -------------------------------------------------------------------------------- 1 | - name: echoing handler 2 | command: echo CALLED_HANDLER_{{ inventory_hostname }} -------------------------------------------------------------------------------- /test/integration/roles/test_include_vars/vars/services/webapp.yml: -------------------------------------------------------------------------------- 1 | --- 2 | testing: 456 3 | base_dir: services 4 | webapp_containers: 10 5 | -------------------------------------------------------------------------------- /test/integration/roles/test_win_script/files/test_script_creates_file.ps1: -------------------------------------------------------------------------------- 1 | # Test script to create a file. 2 | 3 | echo $null > $args[0] 4 | -------------------------------------------------------------------------------- /test/integration/test_vault.yml: -------------------------------------------------------------------------------- 1 | - hosts: testhost 2 | gather_facts: False 3 | roles: 4 | - { role: test_vault, tags: test_vault} 5 | -------------------------------------------------------------------------------- /docsite/_themes/srtd/static/images/logo_invert.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tes/ansible/devel/docsite/_themes/srtd/static/images/logo_invert.png -------------------------------------------------------------------------------- /test/integration/inventory.group_by: -------------------------------------------------------------------------------- 1 | [lamini] 2 | alpaca genus=vicugna 3 | llama genus=lama 4 | 5 | [lamini:vars] 6 | ansible_connection=local 7 | -------------------------------------------------------------------------------- /test/integration/roles/test_filters/templates/py26json.j2: -------------------------------------------------------------------------------- 1 | Provoke a python2.6 json bug 2 | {{ hostvars[inventory_hostname] | to_nice_json }} 3 | -------------------------------------------------------------------------------- /test/integration/roles/test_good_parsing/tasks/test_include_nested.yml: -------------------------------------------------------------------------------- 1 | - name: set the nested include fact 2 | set_fact: nested_include_var=1 3 | -------------------------------------------------------------------------------- /test/integration/roles/test_include_vars/vars/environments/development/all.yml: -------------------------------------------------------------------------------- 1 | --- 2 | testing: 789 3 | base_dir: 'environments/development' 4 | -------------------------------------------------------------------------------- /test/integration/roles/test_var_blending/vars/more_vars.yml: -------------------------------------------------------------------------------- 1 | badwolf: badwolf 2 | 3 | same_value_as_var_name_var: "same_value_as_var_name_var" 4 | -------------------------------------------------------------------------------- /test/integration/roles/test_win_script/files/test_script_removes_file.ps1: -------------------------------------------------------------------------------- 1 | # Test script to remove a file. 2 | 3 | Remove-Item $args[0] -Force 4 | -------------------------------------------------------------------------------- /test/integration/test_filters.yml: -------------------------------------------------------------------------------- 1 | - hosts: testhost 2 | connection: local 3 | gather_facts: yes 4 | roles: 5 | - { role: test_filters } 6 | -------------------------------------------------------------------------------- /test/integration/test_include_vars.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - hosts: 127.0.0.1 3 | gather_facts: False 4 | roles: 5 | - { role: test_include_vars } 6 | -------------------------------------------------------------------------------- /test/samples/l2_include.yml: -------------------------------------------------------------------------------- 1 | - debug: msg="this is the l2 include" 2 | - debug: msg="a second task for l2" 3 | - include: common_include.yml 4 | 5 | -------------------------------------------------------------------------------- /test/samples/test_run_once.yml: -------------------------------------------------------------------------------- 1 | - hosts: all 2 | gather_facts: no 3 | tasks: 4 | - ping: 5 | run_once: yes 6 | - add_host: name=foo 7 | -------------------------------------------------------------------------------- /test/integration/lookup_paths/roles/showfile/tasks/main.yml: -------------------------------------------------------------------------------- 1 | - name: relative to role 2 | set_fact: role_result="{{lookup('file', 'testfile')}}" 3 | -------------------------------------------------------------------------------- /test/integration/unicode-test-script: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | echo "Non-ascii arguments:" 4 | echo $@ 5 | 6 | echo "Non-ascii Env var:" 7 | echo $option 8 | -------------------------------------------------------------------------------- /test/samples/lookup_pipe.yml: -------------------------------------------------------------------------------- 1 | - hosts: localhost 2 | gather_facts: no 3 | tasks: 4 | - debug: msg="the date is {{ lookup('pipe', 'date') }}" 5 | -------------------------------------------------------------------------------- /test/units/mock/path.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | 3 | def mock_unfrackpath_noop(path): 4 | ''' Do not expand the path ''' 5 | return path 6 | -------------------------------------------------------------------------------- /test/integration/roles/test_var_precedence_inven_override/tasks/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - debug: var=foo 3 | - assert: 4 | that: 5 | - 'foo == "bar"' 6 | -------------------------------------------------------------------------------- /docs-api/docs-requirements.txt: -------------------------------------------------------------------------------- 1 | sphinx 2 | 3 | # extensions 4 | sphinxcontrib-napoleon 5 | sphinxcontrib-inheritance 6 | 7 | sphinx-rtd-theme 8 | alabaster 9 | -------------------------------------------------------------------------------- /docsite/_themes/srtd/static/font/fontawesome_webfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tes/ansible/devel/docsite/_themes/srtd/static/font/fontawesome_webfont.eot -------------------------------------------------------------------------------- /docsite/_themes/srtd/static/font/fontawesome_webfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tes/ansible/devel/docsite/_themes/srtd/static/font/fontawesome_webfont.ttf -------------------------------------------------------------------------------- /docsite/_themes/srtd/static/font/fontawesome_webfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tes/ansible/devel/docsite/_themes/srtd/static/font/fontawesome_webfont.woff -------------------------------------------------------------------------------- /docsite/_themes/srtd/theme.conf: -------------------------------------------------------------------------------- 1 | [theme] 2 | inherit = basic 3 | stylesheet = css/theme.min.css 4 | 5 | [options] 6 | typekit_id = hiw1hhg 7 | analytics_id = 8 | -------------------------------------------------------------------------------- /packaging/debian/ansible.install: -------------------------------------------------------------------------------- 1 | examples/hosts etc/ansible 2 | docs/man/man1/*.1 usr/share/man/man1 3 | bin/* usr/bin 4 | examples/ansible.cfg etc/ansible 5 | -------------------------------------------------------------------------------- /test/integration/exoscale.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - hosts: localhost 3 | gather_facts: no 4 | roles: 5 | - { role: test_exoscale_dns, tags: test_exoscale_dns } 6 | -------------------------------------------------------------------------------- /test/integration/roles/test_mysql_variables/defaults/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # defaults file for test_mysql_variables 3 | user: 'user1' 4 | password: 'password1' 5 | 6 | -------------------------------------------------------------------------------- /test/integration/roles/test_win_feature/defaults/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | 3 | # Feature not normally installed by default. 4 | test_win_feature_name: Telnet-Client 5 | -------------------------------------------------------------------------------- /test/integration/roles/test_win_group/defaults/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | 3 | test_win_group_name: Ansiblings 4 | test_win_group_description: Test group for Ansible 5 | -------------------------------------------------------------------------------- /test/units/__init__.py: -------------------------------------------------------------------------------- 1 | 2 | # Make coding more python3-ish 3 | from __future__ import (absolute_import, division, print_function) 4 | __metaclass__ = type 5 | 6 | -------------------------------------------------------------------------------- /test/utils/ansible-playbook_integration_runner/roles/ansible_test_deps/meta/.galaxy_install_info: -------------------------------------------------------------------------------- 1 | {install_date: 'Tue Dec 8 15:06:28 2015', version: master} 2 | -------------------------------------------------------------------------------- /test/utils/shippable/remote-requirements.txt: -------------------------------------------------------------------------------- 1 | cryptography 2 | junit-xml 3 | ndg-httpsclient 4 | pyasn1 5 | pyopenssl 6 | requests 7 | pywinrm 8 | xmltodict 9 | -------------------------------------------------------------------------------- /docsite/_static/ansible-local.css: -------------------------------------------------------------------------------- 1 | /* Local CSS tweaks for ansible */ 2 | .dropdown-menu { 3 | overflow-y: auto; 4 | } 5 | 6 | h2 { 7 | padding-top: 40px; 8 | } -------------------------------------------------------------------------------- /lib/ansible/plugins/test/__init__.py: -------------------------------------------------------------------------------- 1 | # Make coding more python3-ish 2 | from __future__ import (absolute_import, division, print_function) 3 | __metaclass__ = type 4 | -------------------------------------------------------------------------------- /test/integration/roles/setup_mysql_db/vars/RedHat.yml: -------------------------------------------------------------------------------- 1 | mysql_service: 'mysqld' 2 | 3 | mysql_packages: 4 | - mysql-server 5 | - MySQL-python 6 | - bzip2 -------------------------------------------------------------------------------- /test/integration/roles/setup_mysql_db/vars/Suse.yml: -------------------------------------------------------------------------------- 1 | mysql_service: 'mysql' 2 | 3 | mysql_packages: 4 | - mariadb 5 | - python-MySQL-python 6 | - bzip2 7 | -------------------------------------------------------------------------------- /test/integration/roles/test_binary/vars/main.yml: -------------------------------------------------------------------------------- 1 | simple_accents: 'Café Eñe' 2 | utf8_simple_accents: 'Q2Fmw6kgRcOxZQ==' 3 | latin1_simple_accents: 'Q2Fm6SBF8WU=' 4 | -------------------------------------------------------------------------------- /test/integration/roles/test_cs_portforward/defaults/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | cs_portforward_public_ip: "10.100.212.5" 3 | cs_portforward_vm: "{{ cs_resource_prefix }}-vm" 4 | -------------------------------------------------------------------------------- /test/integration/roles/test_exoscale_dns/defaults/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | exo_dns_domain_name: example.com 3 | exo_dns_record_name_web: web 4 | exo_dns_record_name_mx: mx 5 | -------------------------------------------------------------------------------- /test/integration/roles/test_win_regmerge/files/settings1.reg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tes/ansible/devel/test/integration/roles/test_win_regmerge/files/settings1.reg -------------------------------------------------------------------------------- /test/integration/roles/test_win_regmerge/files/settings2.reg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tes/ansible/devel/test/integration/roles/test_win_regmerge/files/settings2.reg -------------------------------------------------------------------------------- /test/integration/roles/test_win_regmerge/files/settings3.reg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tes/ansible/devel/test/integration/roles/test_win_regmerge/files/settings3.reg -------------------------------------------------------------------------------- /test/integration/test_vault_embedded.yml: -------------------------------------------------------------------------------- 1 | - hosts: testhost 2 | gather_facts: False 3 | roles: 4 | - { role: test_vault_embedded, tags: test_vault_embedded} 5 | -------------------------------------------------------------------------------- /test/utils/ansible-playbook_integration_runner/roles/ansible_test_deps/test/requirements.yml: -------------------------------------------------------------------------------- 1 | - src: chrismeyersfsu.provision_docker 2 | name: provision_docker 3 | -------------------------------------------------------------------------------- /test/integration/azure.yml: -------------------------------------------------------------------------------- 1 | - hosts: localhost 2 | connection: local 3 | gather_facts: no 4 | tags: 5 | - test_azure 6 | roles: 7 | - { role: test_azure } 8 | -------------------------------------------------------------------------------- /test/integration/roles/setup_mysql_db/defaults/main.yml: -------------------------------------------------------------------------------- 1 | mysql_service: mysqld 2 | 3 | mysql_packages: 4 | - mysql-server 5 | - MySQL-python 6 | - bzip2 7 | -------------------------------------------------------------------------------- /test/integration/roles/setup_mysql_db/vars/Debian.yml: -------------------------------------------------------------------------------- 1 | mysql_service: 'mysql' 2 | 3 | mysql_packages: 4 | - mysql-server 5 | - python-mysqldb 6 | - bzip2 7 | -------------------------------------------------------------------------------- /test/integration/roles/setup_mysql_db/vars/Fedora.yml: -------------------------------------------------------------------------------- 1 | mysql_service: 'mariadb' 2 | 3 | mysql_packages: 4 | - mariadb-server 5 | - MySQL-python 6 | - bzip2 7 | -------------------------------------------------------------------------------- /test/integration/roles/setup_mysql_db/vars/RedHat-7.yml: -------------------------------------------------------------------------------- 1 | mysql_service: 'mariadb' 2 | 3 | mysql_packages: 4 | - mariadb-server 5 | - MySQL-python 6 | - bzip2 7 | -------------------------------------------------------------------------------- /test/integration/roles/test_cs_securitygroup_rule/tasks/main.yml: -------------------------------------------------------------------------------- 1 | - include: setup.yml 2 | - include: present.yml 3 | - include: absent.yml 4 | - include: cleanup.yml 5 | -------------------------------------------------------------------------------- /test/integration/roles/test_lineinfile/files/test.txt: -------------------------------------------------------------------------------- 1 | This is line 1 2 | This is line 2 3 | REF this is a line for backrefs REF 4 | This is line 4 5 | This is line 5 6 | -------------------------------------------------------------------------------- /test/integration/roles/test_win_lineinfile/files/test.txt: -------------------------------------------------------------------------------- 1 | This is line 1 2 | This is line 2 3 | REF this is a line for backrefs REF 4 | This is line 4 5 | This is line 5 6 | -------------------------------------------------------------------------------- /test/samples/with_lines.yml: -------------------------------------------------------------------------------- 1 | - hosts: localhost 2 | gather_facts: no 3 | tasks: 4 | - debug: msg="line is {{item}}" 5 | with_lines: 6 | - "cat /etc/hosts" 7 | -------------------------------------------------------------------------------- /test/integration/galaxy_playbook.yml: -------------------------------------------------------------------------------- 1 | - hosts: localhost 2 | connection: local 3 | 4 | roles: 5 | - "git-ansible-galaxy" 6 | - "http-role" 7 | - "hg-ansible-galaxy" 8 | -------------------------------------------------------------------------------- /test/integration/jenkins.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - hosts: localhost 3 | connection: local 4 | gather_facts: no 5 | tags: 6 | - jenkins 7 | roles: 8 | - test_jenkins_job 9 | -------------------------------------------------------------------------------- /test/integration/roles/test_embedded_module/library/test_integration_module: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | 3 | print('{"changed":false, "msg":"this is the embedded module"}') 4 | -------------------------------------------------------------------------------- /lib/ansible/inventory/vars_plugins/__init__.py: -------------------------------------------------------------------------------- 1 | # Make coding more python3-ish 2 | from __future__ import (absolute_import, division, print_function) 3 | __metaclass__ = type 4 | 5 | -------------------------------------------------------------------------------- /lib/ansible/plugins/filter/__init__.py: -------------------------------------------------------------------------------- 1 | # Make coding more python3-ish 2 | from __future__ import (absolute_import, division, print_function) 3 | __metaclass__ = type 4 | 5 | 6 | -------------------------------------------------------------------------------- /test/integration/check_mode.yml: -------------------------------------------------------------------------------- 1 | - hosts: testhost 2 | roles: 3 | - { role: test_always_run, tags: test_always_run } 4 | - { role: test_check_mode, tags: test_check_mode } 5 | -------------------------------------------------------------------------------- /test/integration/roles/setup_postgresql_db/defaults/main.yml: -------------------------------------------------------------------------------- 1 | postgresql_service: postgresql 2 | 3 | postgresql_packages: 4 | - postgresql-server 5 | - python-psycopg2 6 | -------------------------------------------------------------------------------- /test/integration/roles/test_include_vars/vars/environments/development/services/webapp.yml: -------------------------------------------------------------------------------- 1 | --- 2 | testing: 101112 3 | base_dir: 'development/services' 4 | webapp_containers: 20 5 | -------------------------------------------------------------------------------- /test/integration/roles/test_jenkins_job/defaults/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | jenkins_url: http://localhost:8080 3 | jenkins_user: admin 4 | jenkins_password: "" 5 | jenkins_days_to_keep: 20 6 | -------------------------------------------------------------------------------- /test/integration/roles/test_win_regmerge/templates/win_line_ending.j2: -------------------------------------------------------------------------------- 1 | #jinja2: newline_sequence:'\r\n' 2 | {{ templated_var }} 3 | {{ templated_var }} 4 | {{ templated_var }} 5 | -------------------------------------------------------------------------------- /test/integration/roles/test_win_script/files/test_script_bool.ps1: -------------------------------------------------------------------------------- 1 | Param( 2 | [bool]$boolvariable 3 | ) 4 | 5 | Write-Host $boolvariable.GetType() 6 | Write-Host $boolvariable 7 | -------------------------------------------------------------------------------- /test/integration/test_binary_modules.yml: -------------------------------------------------------------------------------- 1 | - hosts: testhost_binary_modules 2 | roles: 3 | - role: test_binary_modules 4 | tags: 5 | - test_binary_modules 6 | 7 | -------------------------------------------------------------------------------- /test/samples/included_playbook.yml: -------------------------------------------------------------------------------- 1 | - hosts: localhost 2 | gather_facts: no 3 | tags: 4 | - included 5 | tasks: 6 | - debug: msg="incuded playbook, variable is {{a}}" 7 | -------------------------------------------------------------------------------- /test/samples/l3_include.yml: -------------------------------------------------------------------------------- 1 | - debug: msg="this is the l3 include" 2 | - debug: msg="a second task for l3" 3 | - debug: msg="a third task for l3" 4 | - include: common_include.yml 5 | -------------------------------------------------------------------------------- /test/samples/with_env.yml: -------------------------------------------------------------------------------- 1 | - hosts: localhost 2 | connection: local 3 | gather_facts: no 4 | tasks: 5 | - debug: msg="{{ lookup('env','HOME') }} is an environment variable" 6 | -------------------------------------------------------------------------------- /test/integration/lookup.properties: -------------------------------------------------------------------------------- 1 | # A comment 2 | value1=Text associated with value1 3 | value2=Same for value2 4 | value.dot=Properties with dot 5 | field.with.space = another space 6 | -------------------------------------------------------------------------------- /test/integration/roles/test_cs_instance_facts/defaults/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | test_cs_instance_template: CentOS 5.3(64-bit) no GUI (Simulator) 3 | test_cs_instance_offering_1: Small Instance 4 | -------------------------------------------------------------------------------- /test/integration/roles/test_cs_vmsnapshot/defaults/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | test_cs_instance_template: CentOS 5.3(64-bit) no GUI (Simulator) 3 | test_cs_instance_offering_1: Small Instance 4 | -------------------------------------------------------------------------------- /test/integration/roles/test_handlers/handlers/main.yml: -------------------------------------------------------------------------------- 1 | - name: set handler fact 2 | set_fact: 3 | handler_called: True 4 | - name: test handler 5 | debug: msg="handler called" 6 | -------------------------------------------------------------------------------- /test/samples/lookup_file.yml: -------------------------------------------------------------------------------- 1 | - hosts: localhost 2 | connection: local 3 | gather_facts: no 4 | tasks: 5 | - debug: msg="the pubkey is {{lookup('file', '~/.ssh/id_rsa.pub')}}" 6 | -------------------------------------------------------------------------------- /test/samples/test_sudo.yml: -------------------------------------------------------------------------------- 1 | - hosts: ubuntu1404 2 | gather_facts: no 3 | remote_user: testing 4 | tasks: 5 | - command: whoami 6 | - apt: update_cache=yes 7 | sudo: yes 8 | -------------------------------------------------------------------------------- /test/integration/roles/test_vault/tasks/main.yml: -------------------------------------------------------------------------------- 1 | 2 | - assert: 3 | that: 4 | - 'secret_var == "secret"' 5 | 6 | 7 | - copy: src=vault-secret.txt dest={{output_dir}}/secret.txt 8 | -------------------------------------------------------------------------------- /test/integration/roles/test_win_script/files/test_script.ps1: -------------------------------------------------------------------------------- 1 | # Test script to make sure the Ansible script module works. 2 | Write-Host "Woohoo! We can run a PowerShell script via Ansible!" 3 | -------------------------------------------------------------------------------- /test/integration/test_includes3.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - hosts: localhost 3 | tasks: 4 | - include: test_includes4.yml 5 | with_items: ["a"] 6 | loop_control: 7 | loop_var: r 8 | -------------------------------------------------------------------------------- /test/integration/vars/test_var_precedence.yml: -------------------------------------------------------------------------------- 1 | --- 2 | extra_var: "BAD!" 3 | role_var: "BAD!" 4 | vars_files_var: "vars_files_var" 5 | vars_files_var_role: "should be overridden by roles" 6 | -------------------------------------------------------------------------------- /test/samples/with_fileglob.yml: -------------------------------------------------------------------------------- 1 | - hosts: localhost 2 | connection: local 3 | gather_facts: no 4 | tasks: 5 | - debug: msg="file is {{item}}" 6 | with_fileglob: 7 | - "*.yml" 8 | -------------------------------------------------------------------------------- /test/units/plugins/action/fixtures/synchronize/basic/task_args_out.json: -------------------------------------------------------------------------------- 1 | { 2 | "dest": "root@el6host:/tmp/deleteme", 3 | "src": "/tmp/deleteme", 4 | "_local_rsync_path": "rsync" 5 | } -------------------------------------------------------------------------------- /test/integration/roles/test_var_precedence_role3/vars/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # should override the global vars_files_var since it's local to the role 3 | vars_files_var_role: "vars_files_var_role3" 4 | -------------------------------------------------------------------------------- /test/units/plugins/action/fixtures/synchronize/delegate_remote/task_args_out.json: -------------------------------------------------------------------------------- 1 | { 2 | "dest": "el6host:/tmp/deleteme", 3 | "src": "/tmp/deleteme", 4 | "_local_rsync_path": "rsync" 5 | } -------------------------------------------------------------------------------- /examples/playbooks/README.md: -------------------------------------------------------------------------------- 1 | Playbook Examples 2 | ================= 3 | 4 | Playbook examples have moved. 5 | 6 | See [the Ansible-Examples repo](https://github.com/ansible/ansible-examples). 7 | 8 | -------------------------------------------------------------------------------- /test/integration/roles/test_mysql_db/defaults/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # defaults file for test_mysql_db 3 | db_name: 'data' 4 | db_user1: 'datauser1' 5 | db_user2: 'datauser2' 6 | 7 | tmp_dir: '/tmp' 8 | 9 | -------------------------------------------------------------------------------- /test/integration/roles/test_var_blending/vars/main.yml: -------------------------------------------------------------------------------- 1 | winter: coming 2 | etest: 'from role vars' 3 | role_var_beats_inventory: 'chevron 5 encoded' 4 | role_var_beats_default: 'chevron 6 encoded' 5 | -------------------------------------------------------------------------------- /test/integration/roles/test_win_user/defaults/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | 3 | test_win_user_name: test_win_user 4 | test_win_user_password: "T35Tus3rP@ssW0rd" 5 | test_win_user_password2: "pa55wOrd4te5tU53R!" 6 | -------------------------------------------------------------------------------- /test/integration/all.yml: -------------------------------------------------------------------------------- 1 | - include: test_setup.yml 2 | - include: non_destructive.yml 3 | - include: destructive.yml 4 | - include: rackspace.yml 5 | - include: amazon.yml 6 | - include: good_parsing.yml 7 | -------------------------------------------------------------------------------- /test/integration/roles/prepare_http_tests/defaults/main.yml: -------------------------------------------------------------------------------- 1 | badssl_host: wrong.host.badssl.com 2 | httpbin_host: httpbin.org 3 | sni_host: sni.velox.ch 4 | badssl_host_substring: wrong.host.badssl.com 5 | -------------------------------------------------------------------------------- /test/integration/roles/test_bad_parsing/tasks/scenario3.yml: -------------------------------------------------------------------------------- 1 | - name: test that we can't do this for the shell module 2 | shell: echo hi {{ chdir }} 3 | failed_when: False 4 | tags: scenario3 5 | 6 | -------------------------------------------------------------------------------- /test/integration/roles/test_unarchive/files/test-unarchive-nonascii-くらとみ.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tes/ansible/devel/test/integration/roles/test_unarchive/files/test-unarchive-nonascii-くらとみ.tar.gz -------------------------------------------------------------------------------- /test/samples/test_roles_complex.yml: -------------------------------------------------------------------------------- 1 | - hosts: localhost 2 | gather_facts: no 3 | roles: 4 | - { role: role_a, tags: A, when: skip != "A" } 5 | - { role: role_b, tags: B, when: skip != "B" } 6 | 7 | -------------------------------------------------------------------------------- /contrib/inventory/cloudstack.ini: -------------------------------------------------------------------------------- 1 | [cloudstack] 2 | #endpoint = https://api.exoscale.ch/compute 3 | endpoint = https://cloud.example.com/client/api 4 | key = cloudstack api key 5 | secret = cloudstack api secret 6 | -------------------------------------------------------------------------------- /test/integration/roles/test_ec2_group/defaults/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # defaults file for test_ec2_group 3 | ec2_group_name: '{{resource_prefix}}' 4 | ec2_group_description: 'Created by ansible integration tests' 5 | 6 | -------------------------------------------------------------------------------- /test/integration/roles/test_win_script/defaults/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | 3 | # Parameters to pass to test scripts. 4 | test_win_script_value: VaLuE 5 | test_win_script_splat: "@{This='THIS'; That='THAT'; Other='OTHER'}" 6 | -------------------------------------------------------------------------------- /test/samples/test_fact_gather.yml: -------------------------------------------------------------------------------- 1 | - hosts: localhost 2 | tasks: 3 | - debug: msg="this is play 1" 4 | 5 | - hosts: localhost 6 | tasks: 7 | - debug: msg="this is play 2, facts should not have gathered" 8 | -------------------------------------------------------------------------------- /test/integration/roles/test_handlers_meta/handlers/main.yml: -------------------------------------------------------------------------------- 1 | - name: set_handler_fact_1 2 | set_fact: 3 | handler1_called: True 4 | 5 | - name: set_handler_fact_2 6 | set_fact: 7 | handler2_called: True 8 | -------------------------------------------------------------------------------- /test/integration/roles/test_uri/files/pass2.json: -------------------------------------------------------------------------------- 1 | { 2 | "JSON Test Pattern pass3": { 3 | "The outermost value": "must be an object or array.", 4 | "In this test": "It is an object." 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /test/samples/lookup_template.yml: -------------------------------------------------------------------------------- 1 | - hosts: localhost 2 | gather_facts: no 3 | vars: 4 | my_var: "Bazinga!" 5 | tasks: 6 | - debug: msg="the rendered template is {{ lookup('template', 'template.j2') }}" 7 | 8 | -------------------------------------------------------------------------------- /packaging/port/sysutils/ansible/pkg-descr: -------------------------------------------------------------------------------- 1 | Ansible is a radically simple model-driven configuration management, deployment, and command execution framework. 2 | 3 | Author: Michael DeHaan 4 | WWW: http://ansible.github.com/ 5 | -------------------------------------------------------------------------------- /test/samples/test_play_failure.yml: -------------------------------------------------------------------------------- 1 | - hosts: localhost 2 | gather_facts: no 3 | tasks: 4 | - fail: 5 | 6 | - hosts: localhost 7 | gather_facts: no 8 | tasks: 9 | - debug: msg="you should not see me..." 10 | -------------------------------------------------------------------------------- /test/integration/roles/test_postgresql/defaults/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # defaults file for test_postgresql_db 3 | db_name: 'ansible_db' 4 | db_user1: 'ansible_db_user1' 5 | db_user2: 'ansible_db_user2' 6 | 7 | tmp_dir: '/tmp' 8 | 9 | -------------------------------------------------------------------------------- /test/integration/roles/test_service/files/ansible.upstart: -------------------------------------------------------------------------------- 1 | description "ansible test daemon" 2 | 3 | start on runlevel [345] 4 | stop on runlevel [!345] 5 | 6 | expect daemon 7 | 8 | exec ansible_test_service 9 | 10 | -------------------------------------------------------------------------------- /test/integration/roles/test_template/files/foo-py26.txt: -------------------------------------------------------------------------------- 1 | templated_var_loaded 2 | 3 | { 4 | "bool": true, 5 | "multi_part": "1Foo", 6 | "null_type": null, 7 | "number": 5, 8 | "string_num": "5" 9 | } 10 | -------------------------------------------------------------------------------- /test/integration/roles/test_template/files/foo.txt: -------------------------------------------------------------------------------- 1 | templated_var_loaded 2 | 3 | { 4 | "bool": true, 5 | "multi_part": "1Foo", 6 | "null_type": null, 7 | "number": 5, 8 | "string_num": "5" 9 | } 10 | -------------------------------------------------------------------------------- /test/samples/test_role.yml: -------------------------------------------------------------------------------- 1 | - hosts: localhost 2 | connection: local 3 | gather_facts: no 4 | vars: 5 | foo: "BAD!!" 6 | roles: 7 | - { role: test_role, foo: bar } 8 | tasks: 9 | - debug: msg="done" 10 | -------------------------------------------------------------------------------- /test/integration/gce.yml: -------------------------------------------------------------------------------- 1 | - hosts: testhost 2 | gather_facts: true 3 | roles: 4 | - { role: test_gce, tags: test_gce } 5 | - { role: test_gce_pd, tags: test_gce_pd } 6 | # TODO: tests for gce_lb, gce_net, gc_storage 7 | -------------------------------------------------------------------------------- /test/integration/roles/test_bad_parsing/tasks/scenario4.yml: -------------------------------------------------------------------------------- 1 | - name: test that we can't go all Little Bobby Droptables on a quoted var to add more 2 | file: "name={{ bad_var }}" 3 | failed_when: False 4 | tags: scenario4 5 | 6 | -------------------------------------------------------------------------------- /test/integration/roles/test_cs_configuration/defaults/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | test_cs_configuration_storage: PS0 3 | test_cs_configuration_cluster: C0 4 | test_cs_configuration_account: admin 5 | test_cs_configuration_zone: Sandbox-simulator 6 | -------------------------------------------------------------------------------- /test/integration/roles/test_win_service/defaults/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | 3 | # Service is commonly available and usually disabled/stopped by default. 4 | test_win_service_name: SSDPSRV 5 | test_win_service_display_name: "SSDP Discovery" 6 | -------------------------------------------------------------------------------- /test/units/plugins/action/fixtures/synchronize/basic_become/task_args_out.json: -------------------------------------------------------------------------------- 1 | { 2 | "dest": "root@el6host:/tmp/deleteme", 3 | "src": "/tmp/deleteme", 4 | "rsync_path": "\"sudo rsync\"", 5 | "_local_rsync_path": "rsync" 6 | } -------------------------------------------------------------------------------- /test/units/plugins/action/fixtures/synchronize/delegate_remote_su/task_args_out.json: -------------------------------------------------------------------------------- 1 | { 2 | "dest": "el6host:/tmp/deleteme", 3 | "src": "/tmp/deleteme", 4 | "rsync_path": "\"sudo rsync\"", 5 | "_local_rsync_path": "rsync" 6 | } -------------------------------------------------------------------------------- /test/integration/roles/test_var_blending/defaults/main.yml: -------------------------------------------------------------------------------- 1 | etest: "from role defaults" 2 | role_var_beats_default: "shouldn't see this" 3 | parameterized_beats_default: "shouldn't see this" 4 | inventory_beats_default: "shouldn't see this" 5 | -------------------------------------------------------------------------------- /test/units/plugins/action/fixtures/synchronize/basic_become_cli/task_args_out.json: -------------------------------------------------------------------------------- 1 | { 2 | "dest": "root@el6host:/tmp/deleteme", 3 | "src": "/tmp/deleteme", 4 | "rsync_path": "\"sudo rsync\"", 5 | "_local_rsync_path": "rsync" 6 | } -------------------------------------------------------------------------------- /test/integration/roles/test_var_precedence_role2/defaults/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # should be overridden by vars_files in the main play 3 | vars_files_var: "BAD!" 4 | # should be overridden by the vars file in role2 5 | defaults_file_var_role2: "BAD!" 6 | -------------------------------------------------------------------------------- /test/integration/roles/test_win_script/files/test_script_with_args.ps1: -------------------------------------------------------------------------------- 1 | # Test script to make sure the Ansible script module works when arguments are 2 | # passed to the script. 3 | 4 | foreach ($i in $args) 5 | { 6 | Write-Host $i; 7 | } 8 | -------------------------------------------------------------------------------- /test/samples/include.yml: -------------------------------------------------------------------------------- 1 | - debug: msg="this is the include, a=={{a}}" 2 | tags: 3 | - included 4 | #- debug: msg="this is the second debug in the include" 5 | - debug: msg="this is the third debug in the include, and a is still {{a}}" 6 | 7 | -------------------------------------------------------------------------------- /contrib/inventory/zabbix.ini: -------------------------------------------------------------------------------- 1 | # Ansible Zabbix external inventory script settings 2 | # 3 | 4 | [zabbix] 5 | 6 | # Server location 7 | server = http://zabbix.example.com/zabbix 8 | 9 | # Login 10 | username = admin 11 | password = zabbix 12 | -------------------------------------------------------------------------------- /test/integration/roles/test_apache2_module/tasks/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | 3 | - name: include only on supported systems 4 | include: actualtest.yml 5 | when: ansible_os_family in ['Debian', 'Suse'] 6 | # centos/RHEL does not have a2enmod/a2dismod 7 | -------------------------------------------------------------------------------- /test/integration/roles/test_bad_parsing/tasks/scenario1.yml: -------------------------------------------------------------------------------- 1 | - name: test that we cannot insert arguments 2 | file: path={{ test_file }} {{ test_input }} 3 | failed_when: False # ignore the module, just test the parser 4 | tags: scenario1 5 | 6 | -------------------------------------------------------------------------------- /test/integration/roles/test_includes/tasks/included_task1.yml: -------------------------------------------------------------------------------- 1 | - set_fact: 2 | ca: "{{ a }}" 3 | - debug: var=ca 4 | - set_fact: 5 | cb: "{{b}}" 6 | - debug: var=cb 7 | - set_fact: 8 | cc: "{{ c }}" 9 | - debug: var=cc 10 | 11 | -------------------------------------------------------------------------------- /test/integration/roles/test_service/files/ansible-broken.upstart: -------------------------------------------------------------------------------- 1 | description "ansible test daemon" 2 | 3 | start on runlevel [345] 4 | stop on runlevel [!345] 5 | 6 | expect daemon 7 | 8 | exec ansible_test_service 9 | 10 | manual 11 | -------------------------------------------------------------------------------- /test/integration/roles/test_uri/files/testserver.py: -------------------------------------------------------------------------------- 1 | import mimetypes 2 | 3 | if __name__ == '__main__': 4 | mimetypes.init() 5 | mimetypes.add_type('application/json', '.json') 6 | import SimpleHTTPServer 7 | SimpleHTTPServer.test() 8 | -------------------------------------------------------------------------------- /test/samples/with_items.yml: -------------------------------------------------------------------------------- 1 | - hosts: localhost 2 | connection: local 3 | vars: 4 | my_list: 5 | - a 6 | - b 7 | - c 8 | gather_facts: no 9 | tasks: 10 | - debug: msg="item is {{item}}" 11 | with_items: my_list 12 | -------------------------------------------------------------------------------- /test/utils/tox/requirements-py3.txt: -------------------------------------------------------------------------------- 1 | # 2 | # Test requirements 3 | # 4 | 5 | nose 6 | mock >= 1.0.1, < 1.1 7 | passlib 8 | coverage 9 | coveralls 10 | unittest2 11 | redis 12 | python3-memcached 13 | python-systemd 14 | botocore 15 | boto3 16 | -------------------------------------------------------------------------------- /test/code-smell/required-and-default-attributes.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | BASEDIR=${1-"lib/ansible"} 4 | cd "$BASEDIR" 5 | grep -r FieldAttribute . |grep 'default' | grep 'required' 6 | if test $? -eq 0 ; then 7 | exit 1 8 | fi 9 | exit 0 10 | 11 | -------------------------------------------------------------------------------- /test/integration/roles/test_cs_instance/defaults/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | instance_number: 1 3 | test_cs_instance_template: CentOS 5.3(64-bit) no GUI (Simulator) 4 | test_cs_instance_offering_1: Small Instance 5 | test_cs_instance_offering_2: Medium Instance 6 | -------------------------------------------------------------------------------- /test/integration/roles/test_docker/tasks/docker-setup-debian.yml: -------------------------------------------------------------------------------- 1 | - name: Install docker packages (apt) 2 | apt: 3 | state: present 4 | # Note: add docker-registry when available 5 | name: docker.io,python-docker,netcat-openbsd,nginx 6 | 7 | -------------------------------------------------------------------------------- /test/integration/roles/test_var_precedence_dep/defaults/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # should be overridden by vars_files in the main play 3 | vars_files_var: "BAD!" 4 | # should be seen in role1 (no override) 5 | defaults_file_var_role1: "defaults_file_var_role1" 6 | -------------------------------------------------------------------------------- /test/integration/roles/test_var_precedence_role1/defaults/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # should be overridden by vars_files in the main play 3 | vars_files_var: "BAD!" 4 | # should be seen in role1 (no override) 5 | defaults_file_var_role1: "defaults_file_var_role1" 6 | -------------------------------------------------------------------------------- /test/integration/roles/test_win_script/files/test_script_with_errors.ps1: -------------------------------------------------------------------------------- 1 | # Test script to make sure we handle non-zero exit codes. 2 | 3 | trap 4 | { 5 | Write-Error -ErrorRecord $_ 6 | exit 1; 7 | } 8 | 9 | throw "Oh noes I has an error" 10 | -------------------------------------------------------------------------------- /test/utils/tox/requirements.txt: -------------------------------------------------------------------------------- 1 | # 2 | # Test requirements 3 | # 4 | 5 | nose 6 | mock >= 1.0.1, < 1.1 7 | passlib 8 | coverage 9 | coveralls 10 | unittest2 11 | redis 12 | python-memcached 13 | python-systemd 14 | pycrypto 15 | botocore 16 | boto3 17 | -------------------------------------------------------------------------------- /test/integration/roles/test_bad_parsing/tasks/scenario2.yml: -------------------------------------------------------------------------------- 1 | - name: test that we cannot duplicate arguments 2 | file: path={{ test_file }} owner=test2 {{ test_input }} 3 | failed_when: False # ignore the module, just test the parser 4 | tags: scenario2 5 | 6 | -------------------------------------------------------------------------------- /test/integration/inventory.remote.template: -------------------------------------------------------------------------------- 1 | [posix] 2 | remote 3 | 4 | [posix:vars] 5 | ansible_connection=ssh 6 | ansible_host=@ansible_host 7 | ansible_port=@ansible_port 8 | ansible_user=@ansible_user 9 | ansible_python_interpreter=/usr/local/bin/python2 10 | -------------------------------------------------------------------------------- /test/integration/roles/test_cs_securitygroup_rule/tasks/cleanup.yml: -------------------------------------------------------------------------------- 1 | - name: cleanup custom security group 2 | cs_securitygroup: name={{ cs_resource_prefix }}_sg state=absent 3 | register: sg 4 | - name: verify setup 5 | assert: 6 | that: 7 | - sg|success 8 | -------------------------------------------------------------------------------- /test/integration/roles/test_var_precedence_dep/vars/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # should override the global vars_files_var since it's local to the role 3 | # but will be set to the value in the last role included which defines it 4 | vars_files_var_role: "vars_files_var_dep" 5 | -------------------------------------------------------------------------------- /test/integration/roles/test_var_precedence_role1/vars/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # should override the global vars_files_var since it's local to the role 3 | # but will be set to the value in the last role included which defines it 4 | vars_files_var_role: "vars_files_var_role1" 5 | -------------------------------------------------------------------------------- /test/samples/with_first_found.yml: -------------------------------------------------------------------------------- 1 | - hosts: localhost 2 | connection: local 3 | gather_facts: no 4 | tasks: 5 | - debug: msg="file is {{item}}" 6 | with_first_found: 7 | - /etc/foo 8 | - /etc/bar 9 | - /etc/passwd 10 | - /etc/shadow 11 | -------------------------------------------------------------------------------- /test/integration/roles/setup_postgresql_db/vars/default.yml: -------------------------------------------------------------------------------- 1 | postgresql_service: "postgresql" 2 | 3 | postgresql_packages: 4 | - "postgresql-server" 5 | - "python-psycopg2" 6 | 7 | pg_hba_location: "/var/lib/pgsql/data/pg_hba.conf" 8 | pg_dir: "/var/lib/pgsql/data" 9 | -------------------------------------------------------------------------------- /test/integration/roles/test_gce/defaults/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # defaults file for test_gce 3 | instance_name: "{{ resource_prefix|lower }}" 4 | service_account_email: "{{ gce_service_account_email }}" 5 | pem_file: "{{ gce_pem_file }}" 6 | project_id: "{{ gce_project_id }}" 7 | -------------------------------------------------------------------------------- /test/integration/roles/test_gce_pd/defaults/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # defaults file for test_gce 3 | instance_name: "{{ resource_prefix|lower }}" 4 | service_account_email: "{{ gce_service_account_email }}" 5 | pem_file: "{{ gce_pem_file }}" 6 | project_id: "{{ gce_project_id }}" 7 | -------------------------------------------------------------------------------- /test/integration/roles/test_zypper/files/empty.spec: -------------------------------------------------------------------------------- 1 | Summary: Empty RPM 2 | Name: empty 3 | Version: 1 4 | Release: 0 5 | License: GPLv3 6 | Group: Applications/System 7 | BuildArch: noarch 8 | 9 | %description 10 | Empty RPM 11 | 12 | %files 13 | -------------------------------------------------------------------------------- /test/samples/ignore_errors.yml: -------------------------------------------------------------------------------- 1 | - hosts: localhost 2 | connection: local 3 | gather_facts: no 4 | tasks: 5 | - fail: 6 | ignore_errors: yes 7 | - debug: msg="you should still see this" 8 | - fail: 9 | - debug: msg="you should NOT see this" 10 | 11 | -------------------------------------------------------------------------------- /test/integration/integration_config.yml: -------------------------------------------------------------------------------- 1 | --- 2 | win_output_dir: 'C:\ansible_testing' 3 | output_dir: ~/ansible_testing 4 | non_root_test_user: ansible 5 | pip_test_package: epdb 6 | 7 | # variables used in precedence tests, here passed to -e 8 | etest: 'from -e' 9 | 10 | 11 | -------------------------------------------------------------------------------- /test/integration/roles/test_cs_loadbalancer_rule/defaults/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | test_cs_lb_public_ip: "1.2.3.4" 3 | test_cs_instance_template: CentOS 5.3(64-bit) no GUI (Simulator) 4 | test_cs_instance_offering_1: Small Instance 5 | test_cs_lb_member: "{{ cs_resource_prefix }}_member1" 6 | -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- 1 | [submodule "lib/ansible/modules/core"] 2 | path = lib/ansible/modules/core 3 | url = https://github.com/ansible/ansible-modules-core 4 | [submodule "lib/ansible/modules/extras"] 5 | path = lib/ansible/modules/extras 6 | url = https://github.com/ansible/ansible-modules-extras 7 | -------------------------------------------------------------------------------- /docsite/_static/bootstrap-sphinx.css: -------------------------------------------------------------------------------- 1 | /* 2 | * bootstrap-sphinx.css 3 | * ~~~~~~~~~~~~~~~~~~~~ 4 | * 5 | * Sphinx stylesheet -- Twitter Bootstrap theme. 6 | */ 7 | 8 | body { 9 | padding-top: 42px; 10 | } 11 | 12 | div.documentwrapper { 13 | float: left; 14 | width: 100%; 15 | } -------------------------------------------------------------------------------- /lib/ansible/test-requirements.txt: -------------------------------------------------------------------------------- 1 | # Ansible requirementss 2 | paramiko 3 | PyYAML 4 | jinja2 5 | httplib2 6 | passlib 7 | six 8 | 9 | # These are needed for various optional features 10 | #python-memcached 11 | #redis 12 | 13 | # Test requirements 14 | unittest2 15 | mock 16 | nose 17 | -------------------------------------------------------------------------------- /test/integration/host_vars/testhost: -------------------------------------------------------------------------------- 1 | a: 1 2 | b: 2 3 | c: 3 4 | d: 4 5 | role_var_beats_inventory: 'should_not_see_this' 6 | test_hash: 7 | host_vars_testhost: "this is in host_vars/testhost" 8 | 9 | # Var precedence testing 10 | defaults_file_var_role3: "overridden from inventory" 11 | -------------------------------------------------------------------------------- /test/integration/roles/test_var_precedence/meta/main.yml: -------------------------------------------------------------------------------- 1 | dependencies: 2 | - { role: test_var_precedence_role1, param_var: "param_var_role1" } 3 | - { role: test_var_precedence_role2, param_var: "param_var_role2" } 4 | - { role: test_var_precedence_role3, param_var: "param_var_role3" } 5 | -------------------------------------------------------------------------------- /docsite/.gitignore: -------------------------------------------------------------------------------- 1 | # Old compiled python stuff 2 | *.py[co] 3 | # package building stuff 4 | build 5 | # Emacs backup files... 6 | *~ 7 | .\#* 8 | .doctrees 9 | # Generated docs stuff 10 | ansible*.xml 11 | .buildinfo 12 | objects.inv 13 | .doctrees 14 | rst/modules/*.rst 15 | *.min.css 16 | -------------------------------------------------------------------------------- /test/utils/shippable/python3-test-tag-blacklist.txt: -------------------------------------------------------------------------------- 1 | test_apache2_module 2 | test_assemble 3 | test_authorized_key 4 | test_filters 5 | test_gem 6 | test_git 7 | test_hg 8 | test_lookups 9 | test_pip 10 | test_service 11 | test_subversion 12 | test_synchronize 13 | test_unarchive 14 | test_uri 15 | -------------------------------------------------------------------------------- /test/integration/roles/test_service/files/ansible.systemd: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=Ansible Test Service 3 | 4 | [Service] 5 | ExecStart=/usr/sbin/ansible_test_service "Test\nthat newlines in scripts\nwork" 6 | ExecReload=/bin/true 7 | Type=forking 8 | 9 | [Install] 10 | WantedBy=multi-user.target 11 | -------------------------------------------------------------------------------- /test/samples/with_random_choice.yml: -------------------------------------------------------------------------------- 1 | - hosts: localhost 2 | connection: local 3 | gather_facts: no 4 | tasks: 5 | - debug: msg={{ item }} 6 | with_random_choice: 7 | - "go through the door" 8 | - "drink from the goblet" 9 | - "press the red button" 10 | - "do nothing" 11 | -------------------------------------------------------------------------------- /contrib/inventory/libcloud.ini: -------------------------------------------------------------------------------- 1 | # Ansible Apache Libcloud Generic inventory script 2 | 3 | [driver] 4 | provider = CLOUDSTACK 5 | host = 6 | path = 7 | secure = True 8 | verify_ssl_cert = True 9 | 10 | key = 11 | secret = 12 | 13 | [cache] 14 | cache_path=/path/to/your/cache 15 | cache_max_age=60 16 | -------------------------------------------------------------------------------- /test/integration/good_parsing.yml: -------------------------------------------------------------------------------- 1 | - hosts: testhost 2 | 3 | # the following commands should all parse fine and execute fine 4 | # and represent quoting scenarios that should be legit 5 | 6 | gather_facts: False 7 | 8 | roles: 9 | - { role: test_good_parsing, tags: test_good_parsing } 10 | -------------------------------------------------------------------------------- /test/integration/roles/prepare_http_tests/vars/httptester.yml: -------------------------------------------------------------------------------- 1 | # these are fake hostnames provided by docker link for the httptester container 2 | badssl_host: fail.ansible.http.tests 3 | httpbin_host: ansible.http.tests 4 | sni_host: sni1.ansible.http.tests 5 | badssl_host_substring: HTTP Client Testing Service 6 | -------------------------------------------------------------------------------- /test/integration/roles/test_var_precedence_role2/vars/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # should override the global vars_files_var since it's local to the role 3 | vars_files_var_role: "vars_files_var_role2" 4 | # should override the value in defaults/main.yml for role 2 5 | defaults_file_var_role2: "overridden by role vars" 6 | -------------------------------------------------------------------------------- /test/samples/with_flattened.yml: -------------------------------------------------------------------------------- 1 | - hosts: localhost 2 | connection: local 3 | gather_facts: 4 | vars: 5 | list_a: 6 | - ['foo', 'bar'] 7 | list_b: 8 | - [['bam', 'baz']] 9 | tasks: 10 | - debug: msg="item is {{item}}" 11 | with_flattened: 12 | - list_a 13 | - list_b 14 | -------------------------------------------------------------------------------- /test/samples/with_indexed_items.yml: -------------------------------------------------------------------------------- 1 | - hosts: localhost 2 | connection: local 3 | gather_facts: no 4 | vars: 5 | some_list: 6 | - a 7 | - b 8 | - c 9 | tasks: 10 | - debug: msg="at array position {{ item.0 }} there is a value {{ item.1 }}" 11 | with_indexed_items: some_list 12 | -------------------------------------------------------------------------------- /test/samples/with_together.yml: -------------------------------------------------------------------------------- 1 | - hosts: localhost 2 | connection: local 3 | gather_facts: no 4 | vars: 5 | alpha: [ 'a', 'b', 'c', 'd' ] 6 | numbers: [ 1, 2, 3, 4 ] 7 | tasks: 8 | - debug: msg="{{ item.0 }} and {{ item.1 }}" 9 | with_together: 10 | - alpha 11 | - numbers 12 | -------------------------------------------------------------------------------- /test/integration/roles/test_embedded_module/tasks/main.yml: -------------------------------------------------------------------------------- 1 | - name: run the embedded dummy module 2 | test_integration_module: 3 | register: result 4 | 5 | - name: assert the embedded module ran 6 | assert: 7 | that: 8 | - "'msg' in result" 9 | - result.msg == "this is the embedded module" 10 | -------------------------------------------------------------------------------- /test/integration/roles/test_includes/handlers/more_handlers.yml: -------------------------------------------------------------------------------- 1 | - name: included_handler 2 | set_fact: 3 | ca: 4001 4 | cb: 4002 5 | cc: 4003 6 | 7 | - name: verify_handler 8 | assert: 9 | that: 10 | - "ca == 4001" 11 | - "cb == 4002" 12 | - "cc == 4003" 13 | 14 | 15 | -------------------------------------------------------------------------------- /test/integration/test_async.yml: -------------------------------------------------------------------------------- 1 | - hosts: localhost 2 | gather_facts: false 3 | tasks: 4 | # make sure non-JSON data before module output is ignored 5 | - name: async ping with invalid locale via ssh 6 | ping: 7 | async: 10 8 | poll: 1 9 | register: result 10 | - debug: var=result 11 | -------------------------------------------------------------------------------- /test/utils/shippable/ci.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash -eux 2 | 3 | set -o pipefail 4 | 5 | source_root=$(python -c "from os import path; print(path.abspath(path.join(path.dirname('$0'), '../../..')))") 6 | 7 | "${source_root}/test/utils/shippable/${TEST}.sh" 2>&1 | gawk '{ print strftime("%Y-%m-%d %H:%M:%S"), $0; fflush(); }' 8 | -------------------------------------------------------------------------------- /test/integration/roles/test_cs_volume/defaults/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | test_cs_instance_1: "{{ cs_resource_prefix }}-vm1" 3 | test_cs_instance_2: "{{ cs_resource_prefix }}-vm2" 4 | test_cs_instance_template: CentOS 5.3(64-bit) no GUI (Simulator) 5 | test_cs_instance_offering_1: Small Instance 6 | test_cs_disk_offering_1: Custom 7 | -------------------------------------------------------------------------------- /test/integration/roles/test_win_script/files/test_script_with_splatting.ps1: -------------------------------------------------------------------------------- 1 | # Test script to make sure the Ansible script module works when arguments are 2 | # passed via splatting (http://technet.microsoft.com/en-us/magazine/gg675931.aspx) 3 | 4 | Write-Host $args.This 5 | Write-Host $args.That 6 | Write-Host $args.Other 7 | -------------------------------------------------------------------------------- /test/utils/ansible-playbook_integration_runner/roles/ansible_test_deps/README.md: -------------------------------------------------------------------------------- 1 | [](https://travis-ci.org/chrismeyersfsu/ansible_test_deps) 2 | 3 | ansible_test_deps 4 | ========= 5 | 6 | Install needed packages to run ansible integration tests. 7 | -------------------------------------------------------------------------------- /test/samples/test_free.yml: -------------------------------------------------------------------------------- 1 | - hosts: all 2 | strategy: free 3 | gather_facts: no 4 | tasks: 5 | - debug: msg="all hosts should print this" 6 | - pause: seconds=5 7 | when: inventory_hostname == 'l2' 8 | - pause: seconds=10 9 | when: inventory_hostname == 'l3' 10 | - debug: msg="and we're done" 11 | -------------------------------------------------------------------------------- /test/units/plugins/action/fixtures/synchronize/basic_vagrant/task_args_out.json: -------------------------------------------------------------------------------- 1 | { 2 | "dest": "/tmp/deleteme", 3 | "src": "/tmp/deleteme", 4 | "private_key": "/home/jtanner/workspace/issues/AP-15905/.vagrant/machines/default/virtualbox/private_key", 5 | "dest_port": 2202, 6 | "_local_rsync_path": "rsync" 7 | } 8 | -------------------------------------------------------------------------------- /test/units/plugins/action/fixtures/synchronize/basic_vagrant_sudo/task_args_out.json: -------------------------------------------------------------------------------- 1 | { 2 | "dest": "/tmp/deleteme", 3 | "src": "/tmp/deleteme", 4 | "private_key": "/home/jtanner/workspace/issues/AP-15905/.vagrant/machines/default/virtualbox/private_key", 5 | "dest_port": 2202, 6 | "_local_rsync_path": "rsync" 7 | } -------------------------------------------------------------------------------- /test/integration/roles/setup_postgresql_db/vars/Debian-8.yml: -------------------------------------------------------------------------------- 1 | postgresql_service: "postgresql" 2 | 3 | postgresql_packages: 4 | - "postgresql" 5 | - "postgresql-common" 6 | - "python-psycopg2" 7 | 8 | pg_hba_location: "/etc/postgresql/9.4/main/pg_hba.conf" 9 | pg_dir: "/var/lib/postgresql/9.4/main" 10 | pg_ver: 9.4 11 | -------------------------------------------------------------------------------- /test/integration/roles/setup_postgresql_db/vars/Ubuntu-14.yml: -------------------------------------------------------------------------------- 1 | postgresql_service: "postgresql" 2 | 3 | postgresql_packages: 4 | - "postgresql" 5 | - "postgresql-common" 6 | - "python-psycopg2" 7 | 8 | pg_hba_location: "/etc/postgresql/9.3/main/pg_hba.conf" 9 | pg_dir: "/var/lib/postgresql/9.3/main" 10 | pg_ver: 9.3 11 | -------------------------------------------------------------------------------- /test/integration/roles/setup_postgresql_db/vars/Ubuntu-16.yml: -------------------------------------------------------------------------------- 1 | postgresql_service: "postgresql" 2 | 3 | postgresql_packages: 4 | - "postgresql" 5 | - "postgresql-common" 6 | - "python-psycopg2" 7 | 8 | pg_hba_location: "/etc/postgresql/9.5/main/pg_hba.conf" 9 | pg_dir: "/var/lib/postgresql/9.5/main" 10 | pg_ver: 9.5 11 | -------------------------------------------------------------------------------- /test/integration/roles/test_win_get_url/defaults/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | 3 | test_win_get_url_link: http://docs.ansible.com 4 | test_win_get_url_invalid_link: http://docs.ansible.com/skynet_module.html 5 | test_win_get_url_invalid_path: "Q:\\Filez\\Cyberdyne.html" 6 | test_win_get_url_path: "{{ test_win_get_url_dir_path }}\\docs_index.html" -------------------------------------------------------------------------------- /test/units/plugins/action/fixtures/synchronize/basic_vagrant_become_cli/task_args_out.json: -------------------------------------------------------------------------------- 1 | { 2 | "dest": "/tmp/deleteme", 3 | "src": "/tmp/deleteme", 4 | "private_key": "/home/jtanner/workspace/issues/AP-15905/.vagrant/machines/default/virtualbox/private_key", 5 | "dest_port": 2202, 6 | "_local_rsync_path": "rsync" 7 | } -------------------------------------------------------------------------------- /test/integration/consul_running.py: -------------------------------------------------------------------------------- 1 | ''' Checks that the consul agent is running locally. ''' 2 | 3 | if __name__ == '__main__': 4 | 5 | try: 6 | import consul 7 | consul = consul.Consul(host='0.0.0.0', port=8500) 8 | consul.catalog.nodes() 9 | print("True") 10 | except: 11 | pass 12 | -------------------------------------------------------------------------------- /test/integration/roles/test_cs_instance/tasks/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - include: setup.yml 3 | - include: present.yml 4 | - include: tags.yml 5 | - include: absent.yml 6 | - include: cleanup.yml 7 | 8 | - include: setup.yml 9 | - include: present_display_name.yml 10 | - include: absent_display_name.yml 11 | - include: cleanup.yml 12 | -------------------------------------------------------------------------------- /test/integration/roles/test_var_precedence_role3/defaults/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # should be overridden by vars_files in the main play 3 | vars_files_var: "BAD!" 4 | # should override the defaults var for role 1 and 2 5 | defaults_file_var: "last one wins" 6 | # should be overridden from the inventory value 7 | defaults_file_var_role3: "BAD!" 8 | -------------------------------------------------------------------------------- /test/integration/roles/test_win_msi/defaults/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | 3 | msi_url: https://ansible-ci-files.s3.amazonaws.com/test/integration/roles/test_win_msi/7z922-x64.msi 4 | msi_download_path: "C:\\Program Files\\7z922-x64.msi" 5 | msi_install_path: "C:\\Program Files\\7-Zip" 6 | msi_product_code: "{23170F69-40C1-2702-0922-000001000000}" 7 | -------------------------------------------------------------------------------- /test/integration/roles/setup_postgresql_db/vars/Ubuntu-12.yml: -------------------------------------------------------------------------------- 1 | postgresql_service: "postgresql" 2 | 3 | postgresql_packages: 4 | - "postgresql" 5 | - "postgresql-common" 6 | - "python-psycopg2" 7 | 8 | pg_hba_location: "/etc/postgresql/9.1/main/pg_hba.conf" 9 | pg_dir: "/var/lib/postgresql/9.1/main" 10 | pg_ver: 9.1 11 | 12 | -------------------------------------------------------------------------------- /test/integration/roles/test_win_package/defaults/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | 3 | msi_url: https://ansible-ci-files.s3.amazonaws.com/test/integration/roles/test_win_msi/7z922-x64.msi 4 | msi_download_path: "C:\\Program Files\\7z922-x64.msi" 5 | msi_install_path: "C:\\Program Files\\7-Zip" 6 | msi_product_code: "{23170F69-40C1-2702-0922-000001000000}" 7 | -------------------------------------------------------------------------------- /test/integration/test_win_group3.yml: -------------------------------------------------------------------------------- 1 | - hosts: windows 2 | gather_facts: false 3 | roles: 4 | - { role: test_win_service, tags: test_win_service } 5 | - { role: test_win_feature, tags: test_win_feature } 6 | - { role: test_win_user, tags: test_win_user } 7 | - { role: test_win_async_wrapper, tags: test_win_async_wrapper } 8 | -------------------------------------------------------------------------------- /test/samples/lookup_password.yml: -------------------------------------------------------------------------------- 1 | - hosts: localhost 2 | gather_facts: no 3 | #vars: 4 | # my_password: "{{ lookup('password', '/tmp/test_lookup_password length=15') }}" 5 | tasks: 6 | #- debug: msg="the password is {{my_password}}" 7 | - debug: msg="the password is {{ lookup('password', '/tmp/test_lookup_password length=15') }}" 8 | -------------------------------------------------------------------------------- /test/samples/with_nested.yml: -------------------------------------------------------------------------------- 1 | - hosts: localhost 2 | connection: local 3 | gather_facts: no 4 | vars: 5 | users: 6 | - foo 7 | - bar 8 | - bam 9 | tasks: 10 | - debug: msg="item.0={{ item[0] }} item.1={{ item[1] }}" 11 | with_nested: 12 | - users 13 | - [ 'clientdb', 'employeedb', 'providerdb' ] 14 | -------------------------------------------------------------------------------- /packaging/debian/rules: -------------------------------------------------------------------------------- 1 | #!/usr/bin/make -f 2 | # -- makefile -- 3 | 4 | DEB_PYTHON2_MODULE_PACKAGES=ansible 5 | ifneq ($(shell dpkg-query -f '$${Version}' -W python-support 2>/dev/null),) 6 | DEB_PYTHON_SYSTEM=pysupport 7 | endif 8 | 9 | include /usr/share/cdbs/1/rules/debhelper.mk 10 | include /usr/share/cdbs/1/class/python-distutils.mk 11 | -------------------------------------------------------------------------------- /test/integration/roles/test_conditionals/vars/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # foo is a dictionary that will be used to check that 3 | # a conditional passes a with_items loop on a variable 4 | # with a missing attribute (ie. foo.results) 5 | cond_bad_attribute: 6 | bar: a 7 | 8 | cond_list_of_items: 9 | results: 10 | - a 11 | - b 12 | - c 13 | 14 | -------------------------------------------------------------------------------- /test/integration/vars_file.yml: -------------------------------------------------------------------------------- 1 | # this file is here to support testing vars_files in the blending tests only. 2 | # in general define test data in the individual role: 3 | # roles/role_name/vars/main.yml 4 | 5 | foo: "Hello" 6 | things1: 7 | - 1 8 | - 2 9 | things2: 10 | - "{{ foo }}" 11 | - "{{ foob }}" 12 | vars_file_var: 321 13 | -------------------------------------------------------------------------------- /test/integration/roles/test_mysql_user/defaults/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # defaults file for test_mysql_user 3 | db_name: 'data' 4 | user_name_1: 'db_user1' 5 | user_name_2: 'db_user2' 6 | 7 | user_password_1: '12345' 8 | user_password_2: '98765' 9 | 10 | db_names: 11 | - clientdb 12 | - employeedb 13 | - providerdb 14 | 15 | tmp_dir: '/tmp' 16 | 17 | -------------------------------------------------------------------------------- /test/integration/galaxy_rolesfile: -------------------------------------------------------------------------------- 1 | # deliberate non-empty whitespace line to follow 2 | 3 | 4 | git+https://bitbucket.org/willthames/git-ansible-galaxy,pr-10620 5 | hg+https://bitbucket.org/willthames/hg-ansible-galaxy 6 | https://bitbucket.org/willthames/http-ansible-galaxy/get/master.tar.gz,,http-role 7 | # comment 8 | git+git@github.com:geerlingguy/ansible-role-php.git 9 | -------------------------------------------------------------------------------- /test/integration/roles/test_special_vars/templates/foo.j2: -------------------------------------------------------------------------------- 1 | test_template_host: "{{template_host}}" 2 | test_template_path: "{{template_path}}" 3 | test_template_mtime: "{{template_mtime}}" 4 | test_template_uid: "{{template_uid}}" 5 | test_template_fullpath: "{{template_fullpath}}" 6 | test_template_run_date: "{{template_run_date}}" 7 | test_ansible_managed: "{{ansible_managed}}" 8 | -------------------------------------------------------------------------------- /test/integration/bad_parsing.yml: -------------------------------------------------------------------------------- 1 | - hosts: testhost 2 | 3 | # the following commands should all parse fine and execute fine 4 | # and represent quoting scenarios that should be legit 5 | 6 | gather_facts: False 7 | 8 | roles: 9 | 10 | # this one has a lot of things that should fail, see makefile for operation w/ tags 11 | 12 | - { role: test_bad_parsing } 13 | -------------------------------------------------------------------------------- /test/code-smell/use-compat-six.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # Do we want to check dynamic inventory, bin, etc? 4 | BASEDIR=${1-"lib"} 5 | 6 | SIX_USERS=$(find "$BASEDIR" -name '*.py' -exec grep -wH six \{\} \;|grep import |grep -v ansible.compat| grep -v ansible.module_utils.six) 7 | if test -n "$SIX_USERS" ; then 8 | printf "$SIX_USERS" 9 | exit 1 10 | else 11 | exit 0 12 | fi 13 | -------------------------------------------------------------------------------- /test/integration/test_tags.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - name: verify tags work as expected 3 | hosts: localhost 4 | gather_facts: False 5 | connection: local 6 | tasks: 7 | - name: Task_with_tag 8 | debug: msg= 9 | tags: tag 10 | - name: Task_with_always_tag 11 | debug: msg= 12 | tags: always 13 | - name: Task_without_tag 14 | debug: msg= 15 | 16 | -------------------------------------------------------------------------------- /test/integration/roles/test_var_precedence/tasks/main.yml: -------------------------------------------------------------------------------- 1 | - debug: var=extra_var 2 | - debug: var=vars_var 3 | - debug: var=vars_files_var 4 | - debug: var=vars_files_var_role 5 | - assert: 6 | that: 7 | - 'extra_var == "extra_var"' 8 | - 'vars_var == "vars_var"' 9 | - 'vars_files_var == "vars_files_var"' 10 | - 'vars_files_var_role == "vars_files_var_role3"' 11 | -------------------------------------------------------------------------------- /test/integration/roles/test_service/tasks/sysv_cleanup.yml: -------------------------------------------------------------------------------- 1 | - name: remove the sysV init file 2 | file: path=/etc/init.d/ansible_test state=absent 3 | register: remove_sysv_result 4 | 5 | - name: assert that the sysV init file was removed 6 | assert: 7 | that: 8 | - "remove_sysv_result.path == '/etc/init.d/ansible_test'" 9 | - "remove_sysv_result.state == 'absent'" 10 | 11 | -------------------------------------------------------------------------------- /test/samples/test_become.yml: -------------------------------------------------------------------------------- 1 | - hosts: all 2 | gather_facts: no 3 | remote_user: root 4 | roles: 5 | - { role: test_become_r2 } 6 | - { role: test_become_r2, sudo_user: testing } 7 | tasks: 8 | - command: whoami 9 | - command: whoami 10 | become_user: testing 11 | - block: 12 | - command: whoami 13 | - block: 14 | - command: whoami 15 | become_user: testing 16 | -------------------------------------------------------------------------------- /test/integration/vault-secret.txt: -------------------------------------------------------------------------------- 1 | $ANSIBLE_VAULT;1.1;AES256 2 | 39303432393062643236616234306333383838333662386165616633303735336537613337396337 3 | 6662666233356462326631653161663663363166323338320a653131656636666339633863346530 4 | 32326238646631653133643936306666643065393038386234343736663239363665613963343661 5 | 3230353633643361650a363034323631613864326438396665343237383566336339323837326464 6 | 3930 7 | -------------------------------------------------------------------------------- /test/integration/roles/test_task_ordering/tasks/main.yml: -------------------------------------------------------------------------------- 1 | - shell: mktemp 2 | register: temppath 3 | - include: taskorder-include.yml 4 | with_items: 5 | - 1 6 | - 2 7 | - 3 8 | 9 | - assert: 10 | that: lookup('file', temppath.stdout) == "one.1.two.1.three.1.four.1.one.2.two.2.three.2.four.2.one.3.two.3.three.3.four.3." 11 | 12 | - file: path="{{temppath.stdout}}" state=absent 13 | 14 | -------------------------------------------------------------------------------- /test/integration/roles/test_template/vars/main.yml: -------------------------------------------------------------------------------- 1 | templated_var: templated_var_loaded 2 | 3 | number_var: 5 4 | string_num: "5" 5 | bool_var: true 6 | part_1: 1 7 | part_2: "Foo" 8 | null_type: !!null 9 | 10 | templated_dict: 11 | number: "{{ number_var }}" 12 | string_num: "{{ string_num }}" 13 | null_type: "{{ null_type }}" 14 | bool: "{{ bool_var }}" 15 | multi_part: "{{ part_1 }}{{ part_2 }}" 16 | 17 | -------------------------------------------------------------------------------- /test/integration/roles/test_filters/vars/main.yml: -------------------------------------------------------------------------------- 1 | some_structure: 2 | - "this is a list element" 3 | - 4 | this: "is a hash element in a list" 5 | warp: 9 6 | where: endor 7 | 8 | users: 9 | - name: steve 10 | hosts: 11 | - host: host_a 12 | password: abc 13 | - host: host_b 14 | - name: bill 15 | hosts: 16 | - host: host_c 17 | password: default 18 | - host: host_d 19 | -------------------------------------------------------------------------------- /contrib/inventory/nagios_ndo.ini: -------------------------------------------------------------------------------- 1 | # Ansible Nagios external inventory script settings 2 | # 3 | 4 | [ndo] 5 | # NDO database URI 6 | # Make sure that data is returned as strings and not bytes if using python 3. 7 | # See http://docs.sqlalchemy.org/en/rel_1_0/core/engines.html 8 | # for supported databases and URI format. 9 | # Example for mysqlclient module : 10 | database_uri=mysql+mysqldb://user:passwd@hostname/ndo?charset=utf8&use_unicode=1 11 | -------------------------------------------------------------------------------- /test/utils/docker/ubuntu1204/init-fake.conf: -------------------------------------------------------------------------------- 1 | # fake some events needed for correct startup other services 2 | 3 | description "In-Container Upstart Fake Events" 4 | 5 | start on startup 6 | 7 | script 8 | rm -rf /var/run/*.pid 9 | rm -rf /var/run/network/* 10 | /sbin/initctl emit stopped JOB=udevtrigger --no-wait 11 | /sbin/initctl emit started JOB=udev --no-wait 12 | /sbin/initctl emit runlevel RUNLEVEL=3 --no-wait 13 | end script 14 | -------------------------------------------------------------------------------- /test/utils/docker/ubuntu1404/init-fake.conf: -------------------------------------------------------------------------------- 1 | # fake some events needed for correct startup other services 2 | 3 | description "In-Container Upstart Fake Events" 4 | 5 | start on startup 6 | 7 | script 8 | rm -rf /var/run/*.pid 9 | rm -rf /var/run/network/* 10 | /sbin/initctl emit stopped JOB=udevtrigger --no-wait 11 | /sbin/initctl emit started JOB=udev --no-wait 12 | /sbin/initctl emit runlevel RUNLEVEL=3 --no-wait 13 | end script 14 | -------------------------------------------------------------------------------- /docsite/rst_common/ansible_ssh_changes_note.rst: -------------------------------------------------------------------------------- 1 | .. note:: 2 | 3 | Ansible 2.0 has deprecated the “ssh” from ``ansible_ssh_user``, ``ansible_ssh_host``, and ``ansible_ssh_port`` to become ``ansible_user``, ``ansible_host``, and ``ansible_port``. If you are using a version of Ansible prior to 2.0, you should continue using the older style variables (``ansible_ssh_*``). These shorter variables are ignored, without warning, in older versions of Ansible. 4 | -------------------------------------------------------------------------------- /packaging/arch/README.md: -------------------------------------------------------------------------------- 1 | Arch Packaging Files 2 | -------------------- 3 | 4 | The PKGBUILD in this directory is here for reference. 5 | You should use AUR to install [ansible-git][1], using `yaourt` for instance: 6 | 7 | yaourt -S ansible-git 8 | 9 | You can also use a AUR package for the stable version of [ansible][2]. 10 | 11 | [1]: https://aur.archlinux.org/packages/ansible-git/ 12 | [2]: https://aur.archlinux.org/packages/ansible/ 13 | 14 | -------------------------------------------------------------------------------- /docsite/rst/quickstart.rst: -------------------------------------------------------------------------------- 1 | Quickstart Video 2 | ```````````````` 3 | 4 | We've recorded a short video that shows how to get started with Ansible that you may like to use alongside the documentation. 5 | 6 | The `quickstart video