CI: Specify ANSIBLE_STRATEGY in tasks that run ansible or ansible-playbook

This makes the behaviour more consistent across jobs that run with
`mitogen_linear` or plain `linear`.
pull/1268/head
Alex Willmer 6 months ago
parent a9048f0f7d
commit 4c41bf02f1

@ -13,6 +13,7 @@
vars:
ansible_python_interpreter: "{{ ansible_playbook_python }}"
environment:
ANSIBLE_STRATEGY: "{{ lookup('env', 'ANSIBLE_STRATEGY') | mandatory }}"
ANSIBLE_VERBOSITY: "{{ ansible_verbosity }}"
command: |
ansible-playbook

@ -5,6 +5,7 @@
- name: Run missing_module
connection: local
environment:
ANSIBLE_STRATEGY: "{{ lookup('env', 'ANSIBLE_STRATEGY') | mandatory }}"
ANSIBLE_VERBOSITY: "{{ ansible_verbosity }}"
vars:
ansible_python_interpreter: "{{ ansible_playbook_python }}"

@ -14,6 +14,7 @@
connection: local
environment:
ANSIBLE_SSH_TIMEOUT: 10
ANSIBLE_STRATEGY: "{{ lookup('env', 'ANSIBLE_STRATEGY') | mandatory }}"
ANSIBLE_VERBOSITY: "{{ ansible_verbosity }}"
vars:
ansible_python_interpreter: "{{ ansible_playbook_python }}"

@ -15,6 +15,7 @@
- name: Run stub-lxc-info.py
environment:
ANSIBLE_STRATEGY: "{{ lookup('env', 'ANSIBLE_STRATEGY') | mandatory }}"
ANSIBLE_VERBOSITY: "{{ ansible_verbosity }}"
command: |
sudo -nE "{{lookup('env', 'VIRTUAL_ENV')}}/bin/ansible"

@ -15,6 +15,7 @@
- name: Run ansible stub-lxc.py
environment:
ANSIBLE_STRATEGY: "{{ lookup('env', 'ANSIBLE_STRATEGY') | mandatory }}"
ANSIBLE_VERBOSITY: "{{ ansible_verbosity }}"
command: |
sudo -nE "{{lookup('env', 'VIRTUAL_ENV')}}/bin/ansible"

@ -2,7 +2,6 @@
hosts: test-targets:&linux_containers
become: true
become_user: mitogen__pw_required
strategy: mitogen_linear
tasks:
- command: whoami
changed_when: false

@ -20,6 +20,7 @@
vars:
ansible_python_interpreter: "{{ ansible_playbook_python }}"
environment:
ANSIBLE_STRATEGY: "{{ lookup('env', 'ANSIBLE_STRATEGY') | mandatory }}"
ANSIBLE_VERBOSITY: "{{ ansible_verbosity }}"
command:
cmd: >

@ -9,6 +9,7 @@
vars:
ansible_python_interpreter: "{{ ansible_playbook_python }}"
environment:
ANSIBLE_STRATEGY: "{{ lookup('env', 'ANSIBLE_STRATEGY') | mandatory }}"
ANSIBLE_VERBOSITY: "{{ ansible_verbosity }}"
expect:
command: >

Loading…
Cancel
Save