libbpf / ci

BPF CI
Other
10 stars 23 forks source link

ansible: move docker pruning service in main.yml #70

Closed chantra closed 1 year ago

chantra commented 1 year ago

This is useful for both AWS (to come in libbpf/ci#69) and s390x.

Moving it into main.yml so it gets applied to both.

Test run shows it will still be installed on s390x

$ ansible-playbook   -i ./inventory.yml ./playbook.yml  --limit bpf-ci-runner-s390x-5 --tag runner  -C -D

PLAY [all] ***********************************************************************************************************************************************************************************

TASK [Gathering Facts] ***********************************************************************************************************************************************************************
ok: [bpf-ci-runner-s390x-5]

TASK [runner : Create runner directory] ******************************************************************************************************************************************************
ok: [bpf-ci-runner-s390x-5]

TASK [runner : include_tasks] ****************************************************************************************************************************************************************
included: /home/chantra/devel/libbpf/ci/ansible/roles/runner/tasks/main-s390x.yml for bpf-ci-runner-s390x-5

TASK [runner : Get account $HOME] ************************************************************************************************************************************************************
ok: [bpf-ci-runner-s390x-5]

TASK [runner : Generate runners facts] *******************************************************************************************************************************************************
ok: [bpf-ci-runner-s390x-5] => (item={'name': 'kernel-patches/bpf', 'instances': 2})

TASK [runner : Sync libbpf/ci repo] **********************************************************************************************************************************************************
ok: [bpf-ci-runner-s390x-5]

TASK [runner : Build runner docker image] ****************************************************************************************************************************************************
skipping: [bpf-ci-runner-s390x-5] => (item={'normalized': 'kernel-patches-bpf', 'workers': [0, 1], 'name': 'kernel-patches/bpf', 'instances': 2})

TASK [runner : Runner configuration file] ****************************************************************************************************************************************************
ok: [bpf-ci-runner-s390x-5] => (item=[{'normalized': 'kernel-patches-bpf', 'workers': [0, 1], 'name': 'kernel-patches/bpf', 'instances': 2}, 0])
ok: [bpf-ci-runner-s390x-5] => (item=[{'normalized': 'kernel-patches-bpf', 'workers': [0, 1], 'name': 'kernel-patches/bpf', 'instances': 2}, 1])

TASK [runner : Runner systemd unit] **********************************************************************************************************************************************************
ok: [bpf-ci-runner-s390x-5] => (item={'normalized': 'kernel-patches-bpf', 'workers': [0, 1], 'name': 'kernel-patches/bpf', 'instances': 2})

TASK [runner : Enable runner service] ********************************************************************************************************************************************************
ok: [bpf-ci-runner-s390x-5] => (item=[{'normalized': 'kernel-patches-bpf', 'workers': [0, 1], 'name': 'kernel-patches/bpf', 'instances': 2}, 0])
ok: [bpf-ci-runner-s390x-5] => (item=[{'normalized': 'kernel-patches-bpf', 'workers': [0, 1], 'name': 'kernel-patches/bpf', 'instances': 2}, 1])

TASK [runner : Actions runner watchdog script] ***********************************************************************************************************************************************
ok: [bpf-ci-runner-s390x-5]

TASK [runner : Set actions runner watchdog service] ******************************************************************************************************************************************
ok: [bpf-ci-runner-s390x-5]

TASK [runner : Set actions runner watchdog timer] ********************************************************************************************************************************************
ok: [bpf-ci-runner-s390x-5]

TASK [runner : Enable actions runner watchdog timer] *****************************************************************************************************************************************
ok: [bpf-ci-runner-s390x-5]

TASK [runner : include_tasks] ****************************************************************************************************************************************************************
skipping: [bpf-ci-runner-s390x-5]

TASK [runner : Set docker pruning service] ***************************************************************************************************************************************************
ok: [bpf-ci-runner-s390x-5]

TASK [runner : Set docker pruning timer] *****************************************************************************************************************************************************
ok: [bpf-ci-runner-s390x-5]

TASK [runner : Enable docker pruning timer] **************************************************************************************************************************************************
ok: [bpf-ci-runner-s390x-5]

PLAY RECAP ***********************************************************************************************************************************************************************************
bpf-ci-runner-s390x-5      : ok=16   changed=0    unreachable=0    failed=0    skipped=2    rescued=0    ignored=0

Signed-off-by: Manu Bretelle chantr4@gmail.com