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

Dockerfile for ansible 2.9 take the latest mitogen version #43

Closed
lirany1 opened this issue Nov 1, 2021 · 3 comments
Closed

Dockerfile for ansible 2.9 take the latest mitogen version #43

lirany1 opened this issue Nov 1, 2021 · 3 comments

Comments

@lirany1
Copy link

lirany1 commented Nov 1, 2021

pip3 install mitogen ansible-lint jmespath && \

from mitogen site:

v0.3.0 (unreleased)
This release separates itself from the v0.2.X releases. Ansible’s API changed too much to support backwards compatibility so from now on, v0.2.X releases will be for Ansible < 2.10 and v0.3.X will be for Ansible 2.10+. See here for details.

how can we use a specific version of mitogen with this ansible image?

    - name: ansible
      image: willhallonline/ansible:2.9-alpine-3.13
      command: [cat]
      tty: true
      imagePullPolicy: Always
      env:
        - name: ANSIBLE_FORKS
          value: 20
        - name: ANSIBLE_STRATEGY
          value: mitogen_linear
        - name: ANSIBLE_PIPELINING
          value: True
        - name: ANSIBLE_STRATEGY_PLUGINS
          value: /usr/lib/python3.8/site-packages/ansible_mitogen/plugins/strategy
        - name: ANSIBLE_SSH_PIPELINING
          value: True
        - name: ANSIBLE_HOST_KEY_CHECKING
          value: False
        - name: ANSIBLE_GATHERING
          value: smart
        - name: ANSIBLE_CACHE_PLUGIN_CONNECTION
          value: /tmp/facts_cache
        - name: ANSIBLE_CACHE_PLUGIN
          value: jsonfile
        - name: ANSIBLE_CACHE_PLUGIN_TIMEOUT
          value: 7200
        - name: ANSIBLE_SSH_RETRIES
          value: 3
        - name: ANSIBLE_TIMEOUT
          value: 60
@willhallonline
Copy link
Owner

I've not thought about adding these all in as variables, that is really nice. No, at the moment, I haven't made the Mitogen version a variable, it shouldn't be too hard to achieve, I believe it just needs to be ==v0.2.X ("v0.2.X releases will be for Ansible < 2.10").

@lirany1
Copy link
Author

lirany1 commented Nov 23, 2021

Cool mate 10x :)

@Lusitaniae
Copy link

mitogen==v0.2.10
ansible-lint==v5.4.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants