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

Add slaves parameter for module alternatives. Bug #24278 #52732

Open
wants to merge 1 commit into
base: devel
from

Conversation

Projects
None yet
2 participants
@jiuka
Copy link
Contributor

jiuka commented Feb 21, 2019

SUMMARY

Add a slaves parameter for the alternatives module. This helps creating groups of commands which should be switched together. For example if you switch the ansible version there is more then one binary which should change.

Fixes #24278

ISSUE TYPE
  • Feature Pull Request
COMPONENT NAME

alternatives

ADDITIONAL INFORMATION

Example of how to use it.

- name: keytool is a slave of java
  alternatives:
    name: ansible
    link: /usr/bin/ansible
    path: /opt/ansible2.7.7/bin/ansible
    slaves:
      - name: ansible-playbook
        link: /usr/bin/ansible-playbook
        path: /opt/ansible-2.7.7/bin/ansible-playbook
@ansibot

This comment has been minimized.

Copy link
Contributor

ansibot commented Feb 21, 2019

@ansibot

This comment has been minimized.

Copy link
Contributor

ansibot commented Feb 21, 2019

The test ansible-test sanity --test validate-modules [explain] failed with 1 error:

lib/ansible/modules/system/alternatives.py:0:0: E309 version_added for new option (slaves) should be '2.8'. Currently StrictVersion ('0.0')

click here for bot help

@jiuka jiuka force-pushed the jiuka:24278_alternatives_slaves branch 4 times, most recently from b3227d7 to 6c7e96f Feb 21, 2019

@jiuka jiuka force-pushed the jiuka:24278_alternatives_slaves branch from 6c7e96f to 45e0462 Feb 21, 2019

@ansibot ansibot added the stale_ci label Mar 1, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.