[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v5 2/4] Jobs based on custom runners: build environment docs
From: |
Alex Bennée |
Subject: |
Re: [PATCH v5 2/4] Jobs based on custom runners: build environment docs and playbook |
Date: |
Tue, 23 Feb 2021 15:01:50 +0000 |
User-agent: |
mu4e 1.5.8; emacs 28.0.50 |
Alex Bennée <alex.bennee@linaro.org> writes:
> Cleber Rosa <crosa@redhat.com> writes:
>
>> To run basic jobs on custom runners, the environment needs to be
>> properly set up. The most common requirement is having the right
>> packages installed.
>>
<snip>
>
> So I got somewhat there with a direct command line invocation:
>
> ansible-playbook -u root -i 192.168.122.24,192.168.122.45
> scripts/ci/setup/build-environment.yml -e
> 'ansible_python_interpreter=/usr/bin/python3'
>
> although for some reason a single host -i fails...
>
>> diff --git a/scripts/ci/setup/build-environment.yml
>> b/scripts/ci/setup/build-environment.yml
>> new file mode 100644
>> index 0000000000..0197e0a48b
>> --- /dev/null
>> +++ b/scripts/ci/setup/build-environment.yml
>> @@ -0,0 +1,76 @@
>> +---
>> +- name: Installation of basic packages to build QEMU
>> + hosts: all
>> + tasks:
>> + - name: Update apt cache
>> + apt:
>> + update_cache: yes
>> + when:
>> + - ansible_facts['distribution'] == 'Ubuntu'
>
> So are we limiting to Ubuntu here rather than say a Debian base?
Also I'm getting:
TASK [Update apt cache]
*****************************************************************************************************************************************************
fatal: [hackbox-ubuntu-2004]: FAILED! => {"msg": "The conditional check
'ansible_facts['distribution'] == 'Ubuntu'' failed. The error was: error while
evaluating conditional (ansible_facts['distribution'] == 'Ubuntu'): 'dict
object' has no attribute 'distribution'\n\nThe error appears to have been in
'/home/alex/lsrc/qemu.git/scripts/ci/setup/build-environment.yml': line 5,
column 7, but may\nbe elsewhere in the file depending on the exact syntax
problem.\n\nThe offending line appears to be:\n\n tasks:\n - name: Update
apt cache\n ^ here\n"}
which is odd given that machine is definitely an Ubuntu one.
--
Alex Bennée
- [PATCH v5 0/4] GitLab Custom Runners and Jobs (was: QEMU Gating CI), Cleber Rosa, 2021/02/19
- Re: [PATCH v5 2/4] Jobs based on custom runners: build environment docs and playbook,
Alex Bennée <=
- Re: [PATCH v5 2/4] Jobs based on custom runners: build environment docs and playbook, Cleber Rosa, 2021/02/23
- Re: [PATCH v5 2/4] Jobs based on custom runners: build environment docs and playbook, Alex Bennée, 2021/02/23
- Re: [PATCH v5 2/4] Jobs based on custom runners: build environment docs and playbook, Cleber Rosa, 2021/02/23
- Re: [PATCH v5 2/4] Jobs based on custom runners: build environment docs and playbook, Cleber Rosa, 2021/02/23
- Re: [PATCH v5 2/4] Jobs based on custom runners: build environment docs and playbook, Alex Bennée, 2021/02/23
[PATCH v5 1/4] Jobs based on custom runners: documentation and configuration placeholder, Cleber Rosa, 2021/02/19