mirror of https://github.com/ansible/ansible.git
Mirror of https://github.com/ansible/ansible.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
f8fb391548
* new connection plugin aws_ssm Return code may be at the end of the last command output line. Marking regex. Ensure command status code is on it's owm line - last 3 lines are not part of command stdout. * Adding timeout parameter - aws_ssm_timeout Default 10 second timeout (https://docs.ansible.com/ansible/2.4/intro_configuration.html#timeout) is marginal. This avoids changing this default and allowing the SSM timeout to be controlled via inventory. This change wraps commands so commands which may never return do timeout. * Added integration tests Added AWS SSM Executor, target and config functions Fixed more code for integration tests Improved execution Added S3 bucket name Fixed pylint Reverted lib changes Reverted few more changes Improved support for integration test execution added ansible role for aws_ssm_integration_test setup and teardown and modifiled runme.sh Reset to 17fa565 commit inventory file location changed change inventory file location deleted meta and handlers folder as it is not required deleted main.yml inside vars, removed extra space from tasks/main.yml, Added appropriate tags for ec2 and delete test folder as it is not required deleted main.yml inside vars, removed extra space from tasks/main.yml, Added appropriate tags for ec2 and delete test folder as it is not required modified task/main.yml added region variable and fixed pattern for using variable modified policy for IAM role moved to first line of scrip set -eux Updated Session Manager plugin installation edited custme policy Included tags for Session Manager plugin installation Added README.md Upddated README and added support for ssm-plugin for Amazon-Linux Added Windows Integration test support Improved user data for Linux Added random value generation for the role and policy,delete vars_to_delete.yml upadte README in vars fixed typo update policy Updated IAM policy file update playbook Updated playbook to include ssm-agent userdata modified jing2 template modified jing2 template modified jing2 template and fixed role deletion fixed role name issue while deleting and task name Updated playbook to include wait_connection for ec2 Corrected Synatx changes and updated ssm-plugin debian file Changed region variable to us-east-1 Removed vars file and updated to /tmp dir fixed typo Improved setup Fixed boto3 dependency Fixed missing tag Added boto as dependency as well Improved execution workflow Trying other way of defining tags Fixed undefined var Changed AMI ID to Amazon Linux Improved Tags Ok, created different directory for WIndows test execution Fixed IAM Role Name for Windows Fixed inventory not found Improved integration test execution Fixed Windows Inventory path Fixed wrong Windows AMI ID Fixes issue for windows test execution * Don't attempt to terminate sessions without a session id. * Added Unit test cases file for AWS SSM Connection plugin updated test file with close updated unit test file with start_session updated test files * Eliminate AWS CLI dependency for terminal session. * Removing unused code, cleanup logic. Reduce mark length - 52^26 should be plenty Be explicit about subprocess.Popen options Simplify if/else for mark end _stdin_readline is not used now * updated test file Added exec command and fixed close session unit tests updated test files Improved ansible ssm test command updated file for lint checks updated for pylint checks New Unit_testcases for pre-signed URL file removing additonal spaces and white spaces remaning error changes fixed changes fixed spaces issues python 2.7 version and whitespaces python 2.7 version and whitespaces python 2.7 skip if space issue with 16:1 Unit test cases for windows and linux Unit test cases for windows and linux with issues fixed issues Unit test cases for windows and linux with issues fixed issues1 * Added support for S3 Pre-signed URLs * Updated documentation and comments * Documentation and curl dependency removal for controller machine Fixing lint errors and removing requirements. * Adding support for Windows remote EC2 instances. * Added Encoding fixes * Updating author section and adding obvious requirement for the SSM agent. * Refactor stdout post processing Attempt to get real return code on error (test using ansible -m raw -a 'cmd /c exit 99'. Fixes problem at terminal width (ansible windows -i ./hosts.yml -m setup). * Refactor back to a single module. * Fixed fetch file for windows * ssm usage examples for linux and windows * Update aws_ssm.py Service state corrected. * Strip line continuation when at terminal width - otherwise replace. Strip ANSI control sequences only for Windows. Test playbook: --- - name: test hosts: windows gather_facts: False vars: small: 'abc' tasks: - name: set_fact: large: "{{ lookup('password', '/dev/null length=2000 chars=ascii_letters,digits,hexdigits,punctuation') }}" - name: small fixed raw: echo '{{ small }}' register: small_result changed_when: False - name: check assert: that: - "(item | length) == (small | length)" - "item == small" msg: "'{{ item | length }} must equal '{{ small | length }}' and '{{ item }}' must match '{{ small }}'" with_items: - "{{ small_result.stdout_lines[0] }}" - name: large random raw: echo '{{ large }}' register: large_result changed_when: False - name: check assert: that: - "(item | length) == (large | length)" - "item == large" msg: "'{{ item | length }} must equal '{{ large | length }}' and '{{ item }}' must match '{{ large }}'" with_items: - "{{ large_result.stdout_lines[0] }}" - name: gather facts setup: * Correct module parameter names. * Updated Windows Executable variable. Updated Windows Executable variable to "ansible_shell_type". Fixing Examples with raw declaration Updated the plugin timeout variable. * Fix to work with dynamic inventory plug-in * IntegrationTest template updates * Removing unsupported flag for integration tests. Fixing unit test. * Adding shippable group. * SSM Usage examples with dynamic inventory plugin * Fixing yamllint errors. * Fixed Integration tests * Fixed Integration tests * Updates for python3. Removing python3 restriction. * Remove python3 restriction. Change block from retry to always * Fixed Integration tests with Python 3 * Fixed shellcheck * Fix for Windows which could pick up end mark prematurely Move debug to _wrap_command and use a single return point Single-quotes not needed around linux marks Fix typo in comment End mark to new command. * Unit test cases now works on Python2 and Python3 * Skip tests on Python 2.6 * Fix for wait_for_connection module for windows. * Updated changes as per review comments * Fixing broken pipe error seen with session-manager-plugin version 1.1.17.0. Eliminating sleep as this looks to be fixed in session-manager-plugin version 1.1.17.0. * Adding back delays for Windows with session-manager-plugin 1.1.17.0. * Updating Windows AMI ID for integration Test * Upgrading windows ssm agent to the latest * Adding boilerplate code. * Windows ami and integration test updates * Revert "Windows ami and integration test updates" This reverts commit cd6ca3579b7cda584bd9c065f9c0835bddb23627. * Updating windows ami for Integration tests * Integration test suite updates and fixes. * Updates and fixes * Eliminate duplicate processing for exit code on failed command. * Add powershell wrap. * Refactor windows post_process. * AMI Lookup, aliases, OSC filter, test suite updates Co-authored-by: Gaurav Ashtikar <gau1991@gmail.com> Co-authored-by: Deepak Choudhary <40276333+deepsvc@users.noreply.github.com> Co-authored-by: Hanumanth <46720371+hanumantharaomvl@users.noreply.github.com> Co-authored-by: KUMAR MAYANK <mayank@flux7.com> |
5 years ago | |
---|---|---|
.github | 5 years ago | |
bin | 5 years ago | |
changelogs | 5 years ago | |
contrib | 5 years ago | |
docs | 5 years ago | |
examples | 5 years ago | |
hacking | 5 years ago | |
lib/ansible | 5 years ago | |
licenses | 6 years ago | |
packaging | 5 years ago | |
test | 5 years ago | |
.cherry_picker.toml | 6 years ago | |
.gitattributes | 6 years ago | |
.gitignore | 5 years ago | |
.mailmap | 7 years ago | |
CODING_GUIDELINES.md | 6 years ago | |
COPYING | 12 years ago | |
MANIFEST.in | 5 years ago | |
MODULE_GUIDELINES.md | 6 years ago | |
Makefile | 5 years ago | |
README.rst | 5 years ago | |
requirements.txt | 5 years ago | |
setup.py | 5 years ago | |
shippable.yml | 5 years ago |
README.rst
|PyPI version| |Docs badge| |Chat badge| |Build Status| |Code Of Conduct| |Mailing Lists| |License| ******* Ansible ******* Ansible is a radically simple IT automation system. It handles configuration management, application deployment, cloud provisioning, ad-hoc task execution, network automation, and multi-node orchestration. Ansible makes complex changes like zero-downtime rolling updates with load balancers easy. More information on `the Ansible website <https://ansible.com/>`_. Design Principles ================= * Have a dead simple setup process and a minimal learning curve. * Manage machines very quickly and in parallel. * Avoid custom-agents and additional open ports, be agentless by leveraging the existing SSH daemon. * Describe infrastructure in a language that is both machine and human friendly. * Focus on security and easy auditability/review/rewriting of content. * Manage new remote machines instantly, without bootstrapping any software. * Allow module development in any dynamic language, not just Python. * Be usable as non-root. * Be the easiest IT automation system to use, ever. Use Ansible =========== You can install a released version of Ansible via ``pip``, a package manager, or our `release repository <https://releases.ansible.com/ansible/>`_. See our `installation guide <https://docs.ansible.com/ansible/latest/installation_guide/intro_installation.html>`_ for details on installing Ansible on a variety of platforms. Red Hat offers supported builds of `Ansible Engine <https://www.ansible.com/ansible-engine>`_. Power users and developers can run the ``devel`` branch, which has the latest features and fixes, directly. Although it is reasonably stable, you are more likely to encounter breaking changes when running the ``devel`` branch. We recommend getting involved in the Ansible community if you want to run the ``devel`` branch. Get Involved ============ * Read `Community Information <https://docs.ansible.com/ansible/latest/community>`_ for all kinds of ways to contribute to and interact with the project, including mailing list information and how to submit bug reports and code to Ansible. * Join a `Working Group <https://github.com/ansible/community/wiki>`_, an organized community devoted to a specific technology domain or platform. * Submit a proposed code update through a pull request to the ``devel`` branch. * Talk to us before making larger changes to avoid duplicate efforts. This not only helps everyone know what is going on, it also helps save time and effort if we decide some changes are needed. * For a list of email lists, IRC channels and Working Groups, see the `Communication page <https://docs.ansible.com/ansible/latest/community/communication.html>`_ Branch Info =========== * The ``devel`` branch corresponds to the release actively under development. * The ``stable-2.X`` branches correspond to stable releases. * Create a branch based on ``devel`` and set up a `dev environment <https://docs.ansible.com/ansible/latest/dev_guide/developing_modules_general.html#common-environment-setup>`_ if you want to open a PR. * See the `Ansible release and maintenance <https://docs.ansible.com/ansible/latest/reference_appendices/release_and_maintenance.html>`_ page for information about active branches. Roadmap ======= Based on team and community feedback, an initial roadmap will be published for a major or minor version (ex: 2.7, 2.8). The `Ansible Roadmap page <https://docs.ansible.com/ansible/devel/roadmap/>`_ details what is planned and how to influence the roadmap. Authors ======= Ansible was created by `Michael DeHaan <https://github.com/mpdehaan>`_ and has contributions from over 4700 users (and growing). Thanks everyone! `Ansible <https://www.ansible.com>`_ is sponsored by `Red Hat, Inc. <https://www.redhat.com>`_ License ======= GNU General Public License v3.0 or later See `COPYING <COPYING>`_ to see the full text. .. |PyPI version| image:: https://img.shields.io/pypi/v/ansible.svg :target: https://pypi.org/project/ansible .. |Docs badge| image:: https://img.shields.io/badge/docs-latest-brightgreen.svg :target: https://docs.ansible.com/ansible/latest/ .. |Build Status| image:: https://api.shippable.com/projects/573f79d02a8192902e20e34b/badge?branch=devel :target: https://app.shippable.com/projects/573f79d02a8192902e20e34b .. |Chat badge| image:: https://img.shields.io/badge/chat-IRC-brightgreen.svg :target: https://docs.ansible.com/ansible/latest/community/communication.html .. |Code Of Conduct| image:: https://img.shields.io/badge/code%20of%20conduct-Ansible-silver.svg :target: https://docs.ansible.com/ansible/latest/community/code_of_conduct.html :alt: Ansible Code of Conduct .. |Mailing Lists| image:: https://img.shields.io/badge/mailing%20lists-Ansible-orange.svg :target: https://docs.ansible.com/ansible/latest/community/communication.html#mailing-list-information :alt: Ansible mailing lists .. |License| image:: https://img.shields.io/badge/license-GPL%20v3.0-brightgreen.svg :target: COPYING :alt: Repository License