Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New ansible runner #432

Merged
merged 5 commits into from
May 5, 2019
Merged

New ansible runner #432

merged 5 commits into from
May 5, 2019

Commits on May 4, 2019

  1. Rewrite test_ansible_hosts_expand()

    Use a custom inventory so the test does not depend on "host" fixture and
    run faster.
    Also use AnsibleRunner instead of AnsibleBackend.
    philpep committed May 4, 2019
    Configuration menu
    Copy the full SHA
    6553efd View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    19ac525 View commit details
    Browse the repository at this point in the history
  3. Implement tempfile.TemporaryDirectory for py2

    This will be used in next commit.
    philpep committed May 4, 2019
    Configuration menu
    Copy the full SHA
    5ae2253 View commit details
    Browse the repository at this point in the history
  4. Implement a new Ansible Runner

    Following specification on #431
    
    * Use ansible-inventory cli to parse inventory, group and host variables
    
    * Ansible backend re-use existing backend (local, ssh) to run commands.
      This is a breaking change because we do not support all connection
      backends from ansible.
    
    * The Ansible module run with the ansible cli.
    
    * Add more tests
    
    * Fix the skipped "encoding" test which pass now.
    
    This fix maintainability issue with ansible and the license issue
    (ansible is GPL).
    
    Closes #431
    philpep committed May 4, 2019
    Configuration menu
    Copy the full SHA
    6ff3c40 View commit details
    Browse the repository at this point in the history

Commits on May 5, 2019

  1. ansible: handle inventory group of groups

    Group can be nested with the ":children" notation.
    https://docs.ansible.com/ansible/latest/user_guide/intro_inventory.html#groups-of-groups-and-group-variables
    
    Also handle "all" like a normal group since "ansible-inventory" output
    all groups (including "ungrouped") to be a children of "all".
    philpep committed May 5, 2019
    Configuration menu
    Copy the full SHA
    f04689b View commit details
    Browse the repository at this point in the history